Hi
Can anyone advise how can I program and upload hex data to the Adafruit trinket by Flowcode 7 ??
Thanks
Amrat
Adafruit Trinket - Mini Microcontroller - 5V Logic
Moderator: Benj
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: Adafruit Trinket - Mini Microcontroller - 5V Logic
Hello Amrat,
Let me look into this for you, can you tell me if you get a COM port in device manager when you connect the board to your PC via the USB connection?
Let me look into this for you, can you tell me if you get a COM port in device manager when you connect the board to your PC via the USB connection?
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: Adafruit Trinket - Mini Microcontroller - 5V Logic
Hmm it looks like you should simply have to connect the board to the USB, ensure the Red LED is flashing and click compile to chip.
https://learn.adafruit.com/introducing- ... dows-setup
Everything else looks to be ok but I don't have one here at the minute to test for you.
Let us know how you get on.
If that fails then you may be missing the USB driver?Now plug in the Trinket into the computer's USB port and/or press the reset button to enter the bootloader. You should see the red LED pulsing. Now press return, you should get the same response as shown here:
https://learn.adafruit.com/introducing- ... dows-setup
Everything else looks to be ok but I don't have one here at the minute to test for you.
Let us know how you get on.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
-
- Posts: 34
- Joined: Mon May 16, 2016 2:03 pm
- Has thanked: 6 times
- Been thanked: 9 times
- Contact:
Re: Adafruit Trinket - Mini Microcontroller - 5V Logic
Hello Benj
I have done all step but got error code.
as below...
------------------------------------------------------------------------------------------------------------------------------
avrdude.exe: reading input file ""
avrdude.exe: error opening : Invalid argument
avrdude.exe: input file auto detected as invalid format
avrdude.exe: can't open input file : Invalid argument
avrdude.exe: read from file '' failed
avrdude.exe done. Thank you.
Error returned from [avrdude]
C:\Program Files (x86)\Flowcode 7\compilers\avr\batchfiles\avrc_usbtiny.bat reported error code 1
-------------------------------------------------------------------------------------------------------------------------------
Please advise.
Thanks
Amrat
I have done all step but got error code.
as below...
------------------------------------------------------------------------------------------------------------------------------
avrdude.exe: reading input file ""
avrdude.exe: error opening : Invalid argument
avrdude.exe: input file auto detected as invalid format
avrdude.exe: can't open input file : Invalid argument
avrdude.exe: read from file '' failed
avrdude.exe done. Thank you.
Error returned from [avrdude]
C:\Program Files (x86)\Flowcode 7\compilers\avr\batchfiles\avrc_usbtiny.bat reported error code 1
-------------------------------------------------------------------------------------------------------------------------------
Please advise.
Thanks
Amrat
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: Adafruit Trinket - Mini Microcontroller - 5V Logic
Hi Amrat,
Please can you try this updated definition file and see if it solves the problem for you. I've updated the programmer script so that hopefully it should work as expected now.
Simply copy to your "Flowcode 7/FCD/AVR" directory and restart Flowcode to load the changes.
Please can you try this updated definition file and see if it solves the problem for you. I've updated the programmer script so that hopefully it should work as expected now.
Simply copy to your "Flowcode 7/FCD/AVR" directory and restart Flowcode to load the changes.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
-
- Posts: 34
- Joined: Mon May 16, 2016 2:03 pm
- Has thanked: 6 times
- Been thanked: 9 times
- Contact:
Re: Adafruit Trinket - Mini Microcontroller - 5V Logic
Hi Benj,
Thanks for your advise, now can program Trinket from Flowcode 7 .
By the way, it seem help documentation on Flowcode is still lacking, ie I just found out that Component Macro is kind of INCLUDE library that can use to program hardware as well !! Before I thought it is just for simulation purpose only !! More detail documentation is needed.
Thanks
Amrat
Thanks for your advise, now can program Trinket from Flowcode 7 .
By the way, it seem help documentation on Flowcode is still lacking, ie I just found out that Component Macro is kind of INCLUDE library that can use to program hardware as well !! Before I thought it is just for simulation purpose only !! More detail documentation is needed.
Thanks
Amrat