This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Keil download problem

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:0x9ae8
Flash Verify Done: 120492 bytes verified.

Parents
  • 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.

Reply
  • 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.

Children
No data