We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi
I have the following issue.
When I download my code (C8051 F126 mC) it says all ok below, but it is not functioning properly as I see from the LED when it should enter main loop (crashes somewhere).
When I run debug mode (using USB debug adapter from Silicon Labs) the code loads properly and works fine !
I have other codes that download fine. I don't understand why this will not load properly. The flash tool configuration look the same (screenshots below). Any ideas ?
*** AGDI-Msg: Attempting Connection.*** AGDI-Msg: Connection successful.Flash Erase Done.*** AGDI-Msg: AG_Init code 788*** AGDI-Msg: AG_Init Status: AG_STARTFLASHLOAD.*** AGDI-Msg: Attempting Connection.*** AGDI-Msg: Connection successful.Flash Image Update Complete. Beginning programming...Flash Program Done: 120492 bytes programmed.Checksum:0x9ae8Flash Verify Done: 120492 bytes verified.
Found the solution. It had to do with optimization level of a specific file (had higher optimization).
Code is close to max allowed and maybe there was some problem there but I had no warning.