How to debug stm32 using arduino IDE debug function?

Development environment specific, Arduino, Eclipse, VS2013, Em::Blocks etc
Post Reply
changlin1990
Posts: 7
Joined: Tue Jan 23, 2024 6:52 am

How to debug stm32 using arduino IDE debug function?

Post by changlin1990 »

When I use arduino IDE2.0, I always cannot use the debug function to debug the STM32 program, and the error indicates that I cannot understand it. May I ask who can give a detailed tutorial, thank you?
屏幕截图 2024-01-26 141026(1)(1).png
屏幕截图 2024-01-26 141026(1)(1).png (75.3 KiB) Viewed 1654 times
User avatar
fpiSTM
Posts: 1723
Joined: Wed Dec 11, 2019 7:11 pm
Answers: 91
Location: Le Mans
Contact:

Re: How to debug stm32 using arduino IDE debug function?

Post by fpiSTM »

You need to build with optimize for debug selected in the menu. A STlink with reset signal connected.
changlin1990
Posts: 7
Joined: Tue Jan 23, 2024 6:52 am

Re: How to debug stm32 using arduino IDE debug function?

Post by changlin1990 »

I tried, but it didn't work
My steps are as follows:
屏幕截图 2024-01-26 154104(1)(1).png
屏幕截图 2024-01-26 154104(1)(1).png (55.24 KiB) Viewed 1638 times
User avatar
fpiSTM
Posts: 1723
Joined: Wed Dec 11, 2019 7:11 pm
Answers: 91
Location: Le Mans
Contact:

Re: How to debug stm32 using arduino IDE debug function?

Post by fpiSTM »

Normally step 5 is enough. 6 and 7 are not properly managed by IDE.
changlin1990
Posts: 7
Joined: Tue Jan 23, 2024 6:52 am

Re: How to debug stm32 using arduino IDE debug function?

Post by changlin1990 »

It still doesn't work.
Post Reply

Return to “IDE's”