I made a small ATTiny4313 dev board. The MCI can run at up to 20MHz (or 8MHz internal)
I breadboarded and it worked well, although the connection to the programmer was a little 'delicate'
So using an ElectroCookie solderable breadboard i set to make a version with an ICSP header.
This entailed cutting three tracks - and i also added a jumper to allow external power. Originally i had a 10K pull up resistor to pin 1 (reset) bit I removed, when testing failed. It seems okay on the internal pull-up but might be good to re-add.
ATTiny2313/4313 Flowcode development board
-
mnfisher
- Valued Contributor
- Posts: 2004
- http://meble-kuchenne.info.pl
- Joined: Wed Dec 09, 2020 9:37 pm
- Has thanked: 158 times
- Been thanked: 943 times
-
mnfisher
- Valued Contributor
- Posts: 2004
- Joined: Wed Dec 09, 2020 9:37 pm
- Has thanked: 158 times
- Been thanked: 943 times
Re: ATTiny2313/4313 Flowcode development board
I had most difficulty soldering the header pins - some melting has occurred on my VCC jumper 
I hit two problems - it didn't work ( a biggy) - i checked the board carefully and I hadn't bridged the links in the power/ground rails..
Still no joy - and attaching a scope, I see that reset doesn't pull low. I removed the 10K resistor
Programming the chip separately (I knew the socket was a good idea) convinced me that the MCU was running okay (blinkie) - so I checked the wiring again!
Then I noticed that I had plugged the programmer cable into the UDP port - doh..
I wrote a small batch file for Flowcode (I used a Diamex programmer) - and all works well....
I'll post after I've polished it a bit... FC doesn't allow a USB port to be specified for ATTiny chips - and hardcoding it seems excessive ('USB' doesn't do it)
So I'll peek at the definition file (and maybe get some pointers from Steve?) to allow this to be set!
Martin
I hit two problems - it didn't work ( a biggy) - i checked the board carefully and I hadn't bridged the links in the power/ground rails..
Still no joy - and attaching a scope, I see that reset doesn't pull low. I removed the 10K resistor
Programming the chip separately (I knew the socket was a good idea) convinced me that the MCU was running okay (blinkie) - so I checked the wiring again!
Then I noticed that I had plugged the programmer cable into the UDP port - doh..
I wrote a small batch file for Flowcode (I used a Diamex programmer) - and all works well....
I'll post after I've polished it a bit... FC doesn't allow a USB port to be specified for ATTiny chips - and hardcoding it seems excessive ('USB' doesn't do it)
So I'll peek at the definition file (and maybe get some pointers from Steve?) to allow this to be set!
Martin
-
Steve-Matrix
- Matrix Staff
- Posts: 1896
- Joined: Sat Dec 05, 2020 10:32 am
- Has thanked: 278 times
- Been thanked: 445 times
Re: ATTiny2313/4313 Flowcode development board
Ben is more familiar with that part of FCD files than I am, but I think it's one or both of these 2 sections you need to pay attention to:
The first is the use of the batch files and the "UsesComm" and "$(comport)" of the <programmer> section within <build>.
The second is the <comminfo> entries which allow you to specify a VID/PID pairing
The first is the use of the batch files and the "UsesComm" and "$(comport)" of the <programmer> section within <build>.
The second is the <comminfo> entries which allow you to specify a VID/PID pairing
-
mnfisher
- Valued Contributor
- Posts: 2004
- Joined: Wed Dec 09, 2020 9:37 pm
- Has thanked: 158 times
- Been thanked: 943 times
Re: ATTiny2313/4313 Flowcode development board
I think I'm almost there - I created a fcd file AT4313_Dev_Board - and copied across the 'programmer' lines from a device that has a COM port (I used Arduino Uno) - this seems good - with the proviso that 'upload configuration now' gives fuse memory is undefined. I've not altered the fuse settings - and only one byte is offered in configuration. Should there be a H(igh) and a L(ow) byte?
Martin
Martin
-
Steve-Matrix
- Matrix Staff
- Posts: 1896
- Joined: Sat Dec 05, 2020 10:32 am
- Has thanked: 278 times
- Been thanked: 445 times
Re: ATTiny2313/4313 Flowcode development board
Sorry, I don't know about this particular chip. But the "E-Blocks2 AVR Programmer" fcd might hold a clue. This one has the following section and maybe you need something similar:
Code: Select all
<configuration address='0x0000' mult='1' progonly='1' >
<format><byte address='Low' value='0xFF' /><byte address='High' value='0xDF' /><byte address='Extended' value='0xFF' /></format>
<setting />
<settings >
<setting name='SUT_CKSEL' offset='0' mask='63' bits='6' hint='Select Clock Source' >
<option name='Ext. Clock, Start-up time PWRDWN/RESET: 6 CK/14 CK + 0 ms' value='0' />
<option name='Ext. Clock, Start-up time PWRDWN/RESET: 6 CK/14 CK + 4.1 ms' value='16' />
...etc...
-
mnfisher
- Valued Contributor
- Posts: 2004
- Joined: Wed Dec 09, 2020 9:37 pm
- Has thanked: 158 times
- Been thanked: 943 times
Re: ATTiny2313/4313 Flowcode development board
Thanks, I'll have another rummage through the fcd files.
It all seems to work quite smoothly for programs which is good.
Auto-detect doesn't pick the com port, but manually selecting it is fine. Using a long name looks a bit odd on the 'quick start' buttons - so a better name is needed.
Martin
It all seems to work quite smoothly for programs which is good.
Auto-detect doesn't pick the com port, but manually selecting it is fine. Using a long name looks a bit odd on the 'quick start' buttons - so a better name is needed.
Martin