cancel
Showing results for 
Search instead for 
Did you mean: 

Code only executes when semihosting

botmail242
Associate II
Posted on June 28, 2016 at 21:11

I have a STM32F4 Discovery board. I have GDB connected to OpenOCD and when I run my program on GDB it executes perfectly. When I disconnect the board and program it via ST-Link nothing happens. I tried and older program that I wrote and it worked on both GDB and ST-Link. What could be causing it to work on GDB in semihosting mode? And when I stop semihosting, the program stops running...

11 REPLIES 11
botmail242
Associate II
Posted on June 30, 2016 at 22:02

Thanks for the responses. They fixed my old project.

cnoviello I liked your book 🙂

carmine
Associate II
Posted on July 01, 2016 at 07:51

Thanks <3