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.
Hello,
I am starting to get into uC programming with the Keil MCBSTR9. First step was to rewrite their example Blinky using the ST Software Lib. Compiling, linking worked and so did uploading.
But nothing is happening on the board. So I tried to debug. For some reasons the debugger gets stuck in the Startup file... Any hints?
Help appreciated.
Cheers Nik
Does the standard Blinky work OK?
Yes, it does. What I find mostly confusing is that the STR91x.s is directly copied from the original version. So I do not see a reason, why the debugger gets stuck in it.
Also, I cannot see the current statement that is being processed by the debugger.
Would it help you if I included the source code?
So what is the real difference in your setup then?
Keep in mind: this is not a support forum. It primarily allows you to exchange information with other users.
Hm. Obviously, my code is wrong. I have now mixed the two codes: initialisation is done by the original, LEDs on/off by my code. That works.
Still, in debugging mode, I cannot see, which part of the code is being processed. ???
Did you also copy Retarget.c from the Blinky example to your project?
Hi,
thanks for the help.
I have absolutely no clue, what was wrong, but fact is, it works now.
@Keil-Team: May be you could check the following issue: when the program runs into separate files (i.e. 91x_gpio.c) the debug arrow is not displayed any more. The program still works, but it is very difficult to debug. Does this happen everywhere or just on my setup?