Adafruit Trinket - Mini Microcontroller - 5V Logic

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 7.

Moderator: Benj

Post Reply
AqaFlow
Posts: 32
Joined: Mon May 16, 2016 2:03 pm
Contact:

Adafruit Trinket - Mini Microcontroller - 5V Logic

Post by AqaFlow »

Hi
Can anyone advise how can I program and upload hex data to the Adafruit trinket by Flowcode 7 ??

Thanks
Amrat

User avatar
Benj
Matrix Staff
Posts: 15014
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Contact:

Re: Adafruit Trinket - Mini Microcontroller - 5V Logic

Post 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?

User avatar
Benj
Matrix Staff
Posts: 15014
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Contact:

Re: Adafruit Trinket - Mini Microcontroller - 5V Logic

Post 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.

AqaFlow
Posts: 32
Joined: Mon May 16, 2016 2:03 pm
Contact:

Re: Adafruit Trinket - Mini Microcontroller - 5V Logic

Post 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

User avatar
Benj
Matrix Staff
Posts: 15014
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Contact:

Re: Adafruit Trinket - Mini Microcontroller - 5V Logic

Post 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 102 times

AqaFlow
Posts: 32
Joined: Mon May 16, 2016 2:03 pm
Contact:

Re: Adafruit Trinket - Mini Microcontroller - 5V Logic

Post 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

Post Reply