energia / Energia

Fork of Arduino for the Texas Instruments LaunchPad's
http://energia.nu
Other
795 stars 672 forks source link

CC3200 : "Failed to trigger boot loader" Error When Uploading #624

Closed rei-vilo closed 9 years ago

rei-vilo commented 9 years ago

When uploading to the CC3200 LaunchPad,

/Applications/Energia.app/Contents/Resources/Java/hardware/tools/lm4f/bin/cc3200prog /dev/cu.usbserial-cc3200B Builds/embeddedcomputing.bin

it fails in 90% of the cases with the following error message:

Open UART /dev/cu.usbserial-cc3200B open UART success Read ACK failed Failed to trigger boot loader

How to improve the reliability and capability of the upload process?

flety-emmanuel commented 9 years ago

good point. I think it's due to what robertinant mentioned, a ACK timeout on the UART that is a bit short. The reset of the launchpad seems to be a bit different than with the CC3200 mod. We forced the reset to be a bit faster to match the ACK most of the time but we still have issues about this. I believe that it totally depend on how fast the chip resets, an average has to be found I suppose. I longer timeout is better to match more different cases / board designs.

robertinant commented 9 years ago

What is the size of the binary?

rei-vilo commented 9 years ago

The blinky

Estimated Flash: 2976 bytes used

A web-server

Estimated Flash: 47952 bytes used

flety-emmanuel commented 9 years ago

similar on my end, tried various example codes of similar size, and up to 101 kb for my "full" program. Sometimes a fix to this is to keep the CC3200 in reset until energia says uploading, then manually release from reset. Most of the time the auto reset works. Also, sometimes the upload time is a blitz (even for 100 kb), sometimes it will take ages for the very same binary

robertinant commented 9 years ago

I have increased the uart receive timeout and this seems to have fixed the issue in most cases. This fix is available in Energia 16. If you are still seeing the issue then please reopen.

flety-emmanuel commented 9 years ago

Thanks a lot Robert, that will help for sure ! I'll give a try to energia v16 !

cheers, Manu

Le 24/09/2015 22:40, robertinant a écrit :

I have increased the uart receive timeout and this seems to have fixed the issue in most cases. This fix is available in Energia 16. If you are still seeing the issue then please reopen.

— Reply to this email directly or view it on GitHub https://github.com/energia/Energia/issues/624#issuecomment-143044686.

scopedial commented 9 years ago

I have downloaded energia 16 and I am having the same problem as above. I was uploading just "Blinky".

flety-emmanuel commented 9 years ago

works for us both on mac and windows

rickenbroc commented 9 years ago

I also still have the problem too with max osx 10.6.8 both with energia 16 stand alone and CCS cloud Please reopen.

nickstoughton commented 9 years ago

I still see this issue with Energia 0101E0016 and Mac OS/X El Capitan (10.11). I can upload successfully about 1 time in 100. For the rest, the commonest problem (~90%) is "Failed to trigger bootloader". I also see UART Receive Timeout (~8%) and Timeout during upload (~2%) (?not sure about the spelling of this one). The binary is small (Downloading file "/sys/mcuimg.bin" with size 25776).

Jason0416 commented 8 years ago

CC3200MOD LaunchPad,Stillllllll "Failed to trigger boot loader"

rei-vilo commented 8 years ago

@Jason0416 Please, which operating system and Energia releases do you use?

robertinant commented 8 years ago

Have you followed the guide posted here? http://energia.nu/cc3200guide/ Also make sure that you have the drivers installed as per guide here:http://energia.nu/guide/ It would help if you could post the output in the little black window in Energia here.

val123456 commented 7 years ago

Note my daughter is seeing this same error while trying to get it running for a class . . . OS X 10.11.

fletcherbach-temboo commented 7 years ago

Having the same problem here, Issue should be reopened or a solution posted.

My System: MacOS 10.12.3 - Retina Macbook Pro - 2015 Energia 1.6.10E18 TI LaunchPadXL CC3200

I followed the launchpad setup guide for MacOS, but might be worth noting that is my first time working with the board and the IDE.

Console output: Sketch uses 29,848 bytes (11%) of program storage space. Maximum is 262,144 bytes. Open UART /dev/cu.usbserial-cc3200B open UART success Read ACK failed Failed to trigger bootloader An error occurred while uploading the sketch

rei-vilo commented 7 years ago

@fletcherbach-temboo

2978393_orig

Most of the times, this message is a false-positive.

In that case, you can ignore the message.

fletcherbach-temboo commented 7 years ago

@rei-vilo Success!

I jumped TCK to SOP2 per your suggestion and it solved the problem. Thanks for posting the solution and thanks for the quick attention.

rei-vilo commented 7 years ago

You're welcome!

Full explanation is available at http://energia.nu/cc3200guide/ (mentioned at https://github.com/energia/Energia/issues/624#issuecomment-180018100).