STM32L4 sometimes hangs after NVIC_SystemReset()
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2018-12-12 3:43 AM
About once over 10, the MCU seems to hang after NVIC_SystemReset() call. Notice that:
- The MCU restarts correctly after poweron reset,
- NRESET set to 0 then 1 does NOT restart the MCU
- When MCU is hung, the NRESET Level is correctly UP (thanks to internal pull-up)
- Labels:
-
RESET
-
STM32L4 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2018-12-12 4:17 AM
Is this a custom board? Is anything else driving NRESET?
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2018-12-12 4:56 AM
Yes it is a custom board.
NRESET is only connected through a 1nF capacitance toward 0v.
But notice that when the MCU is hung, the level at NRESET is 3.2 V
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2018-12-12 6:22 AM
New information.
I can systematically set my MCU in this "hung" mode after :
- Init of my board (HAL, Clock etc ...) and GPIOs THEN NVIC_SystemReset()
BUT this is systematically "hanging" ONLY if
- my software has just been reprogrammed and automatically restarted
- my board is attach to the programming STLink (obviously it has just been reprogrammed ;O),
This with a production (not debug) software that set :
- JTMS/JTCK/JTDI/JTDO in MODE ANALOG / NO PULL
- JNRESET in MODE INPUT / PULL UP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2018-12-12 2:34 PM
STLink connected to NRST?
JW
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2018-12-14 3:15 AM
Sometimes.
The problem can occur connected or not connected.
But for a while I thougt it was easyer to produce when connected and software has just been programmed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2024-11-06 9:35 PM
I ran into the exact same failure phenomenon, and I'm using an STM32L451CC.Is there a solution yet?
