Skip to main content
GAGGA.1
Associate III
December 21, 2019
Question

After flashing done and removing jtag, our application is not working

  • December 21, 2019
  • 2 replies
  • 694 views

I am using STM32F439NIHx MCU. After flashing the code, I removed ST-Link V2 from my PCand restart the MCU but our application is not working. But if I connect ST-Link V2 to my pc then my application is working. What is this problem? Please suggest any solution.

This topic has been closed for replies.

2 replies

Tesla DeLorean
Guru
December 21, 2019

Make sure BOOT0 is pulled low.

Find a UART to use for debug output.

Instrument HardFault_Handler and Error_Handler so it doesn't die silently.

Identify any other infinite while loops that you have, and instrument those or make sure the end up in the Error_Handler and identify the file/line of failure.

Lacking a USART, find a GPIO or LED you can use to signal reaching certain checkpoints or failures.

Enable USART/GPIO in Reset_Handler if failures occurs early in the boot process.

Check supplies and VCAP voltage/capacitors.

Check NRST line.​

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
GAGGA.1
GAGGA.1Author
Associate III
February 19, 2020

Thanks for your answer.

We have to remove emulator form JTAG port then it is working absolutely working fine.