2014-10-03 08:09 AM
Hello,
I'm trying to identify when program is on debug mode or not.As semihosting (interrupts) breaks the program when it calls printf(). I hope to read a flag to identify that i'm not on debug mode and with this I don't call the printf()..Any one have some idea?Thanks.. #debug #stm32f4 #status2014-10-03 08:19 AM
2014-10-03 08:24 AM
Look at SCB
http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ddi0337e/CEGCJAHJ.html
DEBUGENhttp://www.keil.com/appnotes/files/apnt209.pdf
http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ddi0337e/CEGCJAHJ.html
2014-10-03 12:06 PM
Many thanks!!!