cancel
Showing results for 
Search instead for 
Did you mean: 

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

VNara.1
Associate II

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.

1 ACCEPTED SOLUTION

Accepted Solutions
VNara.1
Associate II

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

View solution in original post

3 REPLIES 3
TDK
Guru

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
Associate II

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
Associate II

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