Page 1 of 1

Adafruit Trinket - Mini Microcontroller - 5V Logic

Posted: Mon Mar 19, 2018 4:38 pm
by AqaFlow
Hi
Can anyone advise how can I program and upload hex data to the Adafruit trinket by Flowcode 7 ??

Thanks
Amrat

Re: Adafruit Trinket - Mini Microcontroller - 5V Logic

Posted: Tue Mar 20, 2018 12:34 pm
by Benj
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?

Re: Adafruit Trinket - Mini Microcontroller - 5V Logic

Posted: Tue Mar 20, 2018 12:39 pm
by Benj
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.
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:
If that fails then you may be missing the USB driver?
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.

Re: Adafruit Trinket - Mini Microcontroller - 5V Logic

Posted: Thu Mar 22, 2018 4:38 pm
by AqaFlow
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

Re: Adafruit Trinket - Mini Microcontroller - 5V Logic

Posted: Thu Mar 22, 2018 5:30 pm
by Benj
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.
Arduino Trinket.fcdx
(14.61 KiB) Downloaded 228 times

Re: Adafruit Trinket - Mini Microcontroller - 5V Logic

Posted: Sun Mar 25, 2018 9:13 am
by AqaFlow
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