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

Program not running when Debuging

Hi All,
I have been using uV4 for a few months and wrote a couple of programs for the discovery board I bought which as an STM32F407VG. a few weeks back I wrote a program to test the Usart which it worked well sending some ADC data to the PC. I decided to do a few modifications relating to the way the uC handles the packets received via the USART and now the program will run through the initialisation part of the program but it seems not to go into main. I have now remove all the new parts of the program and it still will not run.
I have stepped through the program and it is going to setup of the system clk and memory relocation and so on, but when it gets to main it stops working.
I am at a bit of a loss on what is the issue as I have not modified anything in the program relating to main.
Just wandering if any of you as come across this problem before.

Best Regards Luis

Parents
  • I seem to remember that some library calls pull file IO code from the library. File IO is initialized prior to main(), so this would be consistent with what you are experiencing (_sys_open and all). IIRC, the easiesy way to solve the problem is to switch to microlib (there is a corresponding checkbox somewhere in the project settings).

Reply
  • I seem to remember that some library calls pull file IO code from the library. File IO is initialized prior to main(), so this would be consistent with what you are experiencing (_sys_open and all). IIRC, the easiesy way to solve the problem is to switch to microlib (there is a corresponding checkbox somewhere in the project settings).

Children
No data