why i wasn't able to debug the demo code while i can only flash it?

ChibiOS public support forum for all topics not covered by a specific support forum.

Moderators: RoccoMarco, lbednarz, tfAteba

Vimal
Posts: 10
Joined: Tue Jul 09, 2019 10:44 am

why i wasn't able to debug the demo code while i can only flash it?

Post by Vimal »

Hi,
i tried the demo program with STM32F767 Nucleo board.I'm not getting any error when compiling.then i opened the openOCD channel and clicked the debug icon.Now i getting error when debugging but the code is getting dumped into the device.I need to debug every steps to see how the program actually works?Is that possible and if yes ,How??
User avatar
Giovanni
Site Admin
Posts: 14893
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: why i wasn't able to debug the demo code while i can only flash it?

Post by Giovanni »

Hi,

Have you seen the tutorials here: https://www.playembedded.org/blog/categ ... g-started/ ?

Giovanni
Vimal
Posts: 10
Joined: Tue Jul 09, 2019 10:44 am

Re: why i wasn't able to debug the demo code while i can only flash it?

Post by Vimal »

Hi,
I saw the tutorials and tried the same as mentioned in the tutorial .i followed the following article https://www.playembedded.org/blog/devel ... ibistudio/
From the Debug Menu, i can now launch the flash and run procedure selecting the proper Launch Configuration but after clicking that debug button im getting this error.I have attached the screenshot please let me know anything i'm missing .
Im using STM32F767Zi-Nucleo Board ,here is what i'm getting in console.
"Cannot access memory at address 0x202e10
Cannot insert breakpoint 1.
Cannot access memory at address 0x2031bc"

Thanks,
Vimal
Attachments
Capture2.PNG
Capture1.PNG
User avatar
Giovanni
Site Admin
Posts: 14893
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: why i wasn't able to debug the demo code while i can only flash it?

Post by Giovanni »

That's strange, try erasing the board using the ST-Link utility then try again.

BTW, I see you have your email as name, it is visible to everybody, if you want it changed I can do that.

Giovanni
Vimal
Posts: 10
Joined: Tue Jul 09, 2019 10:44 am

Re: why i wasn't able to debug the demo code while i can only flash it?

Post by Vimal »

Hi,
I tried after erasing the board using ST-Link utility.Still i'm facing the same issue "Exception is suspended because of error"

Yes,I need to change my name ,How do i do that?

Thanks,
Vimal
User avatar
Giovanni
Site Admin
Posts: 14893
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: why i wasn't able to debug the demo code while i can only flash it?

Post by Giovanni »

I changed it for you.

About your problem, no ideas so far. Do you have another board to try?

Giovanni
Vimal
Posts: 10
Joined: Tue Jul 09, 2019 10:44 am

Re: why i wasn't able to debug the demo code while i can only flash it?

Post by Vimal »

Hi,
Thanks for changing the name.

I have only one board with me and i feel there is no issue with board.
I can run examples in my board ,only thing i cannot do is debugging step by step.
I feel there is some configuration issues with ChibiStudio.
is there anything i need to uninstall before using this??

Thanks,
Vimal
User avatar
Giovanni
Site Admin
Posts: 14893
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: why i wasn't able to debug the demo code while i can only flash it?

Post by Giovanni »

Try reinstalling ChibiStudio after uninstalling the antivirus, then reinstall the antivirus.

It sometime happens that AV software deletes files randomly (false positives) during copy.

Giovanni
Vimal
Posts: 10
Joined: Tue Jul 09, 2019 10:44 am

Re: why i wasn't able to debug the demo code while i can only flash it?

Post by Vimal »

I don't have any antivirus installed in my computer.any other things will cause the error??
mikeprotts
Posts: 166
Joined: Wed Jan 09, 2019 12:37 pm
Has thanked: 19 times
Been thanked: 31 times

Re: why i wasn't able to debug the demo code while i can only flash it?

Post by mikeprotts »

Using gdb manually, I need to use hb (hardware assisted break) rather than b (normal breaK) for the F767 board.

I don't know how to do that from ChibiStudio as I've not used it yet.

Mike
Post Reply