Skip to main content
VNara.1
Associate II
August 24, 2020
Solved

Firmware not running standalone in STM32L562QE-DK. It works when debugging through IAR. Any leads on this ?!

  • August 24, 2020
  • 3 replies
  • 1573 views

Powered the development kit via micro USB.

Running a simple LED toggle program.

Using IAR 8.5 the code runs and I see LED getting toggled.

If I generate hex and flash it via JLINK , I dont see the LED toggling.

Tried repowering, pressing reset button.. It doesn't help.

IAR optimization level is None.

This topic has been closed for replies.
Best answer by VNara.1

I was using printf in my code, that caused the problem. Once I removed all the printfs it was working fine !

3 replies

TDK
Super User
August 24, 2020

Is BOOT0 pulled down? Are the relevant option bits set so that things boot to user memory?

"If you feel a post has answered your question, please click ""Accept as Solution""."
VNara.1
VNara.1Author
Associate II
August 25, 2020

Thanks for the reply.

In the option bytes nSWBoot0 nBoot0 are checked.

In the hardware should I do any modifications ? I guess development kit will not require any hardware changes to make the hex work stand alone right ?

Please guide me on this. I have attached the OB config

VNara.1
VNara.1AuthorBest answer
Associate II
August 25, 2020

I was using printf in my code, that caused the problem. Once I removed all the printfs it was working fine !