Forum : ST7/STM8
Original Post
Post Information | Post |
---|---|
November 13, 2009 - 11:30am
|
Hi I´m new here I want to do a project with the STM8S207R8 and I have downloaded the Ride and Rkit. It works all fine, but when I try to debug it shows an error message: "error launching the debug session" Thank you very much! P.D. Sorry for my english |
Hi
Usually before the error message "error launching debug session" there is another error message
which explain what is going wrong.
If you do not get it then I suggest you try to find step by step where the problem is.
We would need to know if you are able to:
1. Debug using the simulator instead of the RLink on real board
2. Connect to RLink and read serial number from RLink advanced options
3. Connect to target from RLink advanced options
4. Erase target from RLink advanced options
5. Program target without debugging (uncheck Debug check box) in RLink advanced options.
Regards,
Matloub
Hi thank you for the answer,
Today when I have initialized the Ride7 the debugging works so I think maybe the last day the program had an internal conflict and didn´t work.
Now I have another problem :), when I try debugging something, in order to learn how it works, I make a simple program and it builds correctly:
When I debug it I try to see the variables and the watch window is:
epa -256 (0xFF00)
epa2 0 (0x0)
result 0 (0x0)
and the Debug Outbut is:
-starting debug process...
-loading...
-Run
-STACK UNDERFLOW //red colored
-write acces out of physical memory (address:FFFFH)
-write acces out of physical memory (address:FFFFH)
-Stop
-OUT OF CODE //red colored too
the ASM code is also very strange:
why is it? maybe I am doing some configuration wrongly?
P.D. This things occur when I set "No optimization" if I set it the debug output is the same but the variables are "error(3) undefined symbol"
P.P.D I am using: Ride7 7.24.09.0251
Rkit 2.24.09.0238 with de patch
Hi Alberto,
Even if you selected "No optimization", there is no code to be generated, as the compiler recognizes that you only have affectations.
This is why you variables do not have any real existence.
If you really use your variables they will re-appear in, the debugger.
Regards,
Bruno
thank you bruno,
I try a little more complex program and still happens the same, why in the debugging session when I run it says "stack underflow" and "write access out of physical memory (addres FF00H)"?
maybe I have to change some configuration?, thank you!
I think I know what my problem was, I have tried to do so simple program that I forget to put a "while" in the main function so the main ends and the simulator still runs and I think it is when it "fails". Now with a "while(1)" it seems to work fine, thank you very much!!