- This topic has 4 replies, 3 voices, and was last updated 7 years, 9 months ago by .
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 total)
- You must be logged in to reply to this topic.
Home › Forums › Mastering STM32 book support forum › Reset to factory settings
Hi,
I made a huge mistake playing with CubeMX (please let me know if I am wrong).
I reset all pins I was not using “directly” ( I thought)> I mean all orange pins with UART OSC and JTxx settings.
Then I upload the debug/xx.elf file to my uncle board (L152RE). After that I was not able to run or upload another firmware.
I was able to fix it and reload a default firmware by pushing on both nucleo’s buttons (reset and user button) while I powered up the board (usb connection).
After I was able to load any “good” firmware with the procedure from the book using OpenOCD.
I don’t remember I read it from the book so maybe it could be a good tip addition for newbies like me.
Cheers
Olivier
Hi,
Thank you for suggesting me this. There is a paragraph in the troubleshooting appendix named “It is Not Possibile to Flash or to Debug the MCU“, which address a similar issue. However, I’ll describe this other source of issue in that paragraph.
Hi Carmine,
I looking in the book without success.
Is it a chapter describing those orange pins in CubeMX, especially the JTxx related pins.
I guess for OSC pins I will find something in clock related chapter.
Thanks
Hi,
JTAG pins are used for debugging or to upload the firmware on the MCU. They are mentioned in several parts of the book. Probably I’ve to add something clear about them in the CubeMX chapter.
In my case, need:
Put BOOT0 to 1
Press reset of MCU
With St Link Utility, press “Connect”
Upload firmware
Put BOOT0 to 0
and reset.