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

Code runs only in debug mode

Hi,

I built a bootloader for a STM32F107vc. The bootloader was stored at address 0x08000000 to 0x08009800 and the main application was saved at 0x08009800. Off course, I changed the Vector Table Address of the main application to 0x08009800. Well, everything worked fine but the code runs only if I am debugging (using ULINK2). I have noticed that if I click "Download and Execute" button in uVision the application works, as well.

Anyone can help me?

Parents
  • I don't work with your processor, but what makes the processor know that there is a boot loader at address 0x08000000? When debugging, Keil can make use of setup scripts etc to assign specific values to PC allowing programs to run in RAM etc - but that does not happen when processor is booted and trying to start a program without debugger involved.

Reply
  • I don't work with your processor, but what makes the processor know that there is a boot loader at address 0x08000000? When debugging, Keil can make use of setup scripts etc to assign specific values to PC allowing programs to run in RAM etc - but that does not happen when processor is booted and trying to start a program without debugger involved.

Children