A problem while using mcu STM32G031J6Mx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2019-12-27 12:59 AM
Hello,
I use STM32G031J6Mx pin4 as a output. But when I set this pin low, the mcu will be reset.
Somebody know why?
- Labels:
-
STM32G0 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-01-01 2:29 AM
Doesn't happen to me on a STM32G0316-DISCO board. Maybe NRST is active? See NRST_MODE in flash option register.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-01-06 8:10 AM
Please try to set pin4 as PA0,PA1 or PA2's output. Not PF2's. And then set the pin low.Looking forward to your reply!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-01-06 8:21 AM
What is the value of your NRST_MODE in flash option register? You may use STM32CubeProgrammer to find that out. The factory default is 3, which enables NRST IO. Set the NRST_MODE to 2, does the chip still reset?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-01-06 10:14 AM
Thx KnarfB,I have solved the problem according to your method.But I still have a question.Why I set this pin as PF2's output with the NRST_MODE=3, the chip will not reset?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-01-06 11:18 AM
Pls. see RM0444 Reference manual section 5.1.2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-01-06 7:16 PM
Thank you,dude.
