Author Topic: [Solved]-CH32V003 NOT RESETTING?  (Read 2743 times)

0 Members and 1 Guest are viewing this topic.

Offline kgavionicsTopic starter

  • Regular Contributor
  • *
  • Posts: 232
  • Country: ca
[Solved]-CH32V003 NOT RESETTING?
« on: July 06, 2024, 05:39:07 pm »
Hello
I have 2 boards based on the CH32V003, they are almost identical, except one has a push button and the other doesn't. I checked both boards pins PD7 (NRST) on the chip is connected to the PD7 on the board, but for some reason, on the first board (second board test start at 0:11 in the video) if I pull the PD7 down it resets and the second board doesn't. I flashed the same code on both, but I can't find any logical explanation why I can't have the external to work on the second board? Does someone have an idea what's going on here?
TIA
https://youtu.be/fu6yPqkV4j8
« Last Edit: July 06, 2024, 11:38:58 pm by kgavionics »
 

Offline rhodges

  • Frequent Contributor
  • **
  • Posts: 364
  • Country: us
  • Available for embedded projects.
    • My public libraries, code samples, and projects for STM8.
Re: CH32V003 NOT RESETTING?
« Reply #1 on: July 06, 2024, 07:46:01 pm »
Maybe one has the user option byte bits RST_MODE set to '11' to enable D7 as GPIO?

Look in the reference manual section 16.5
Currently developing embedded RISC-V. Recently STM32 and STM8. All are excellent choices. Past includes 6809, Z80, 8086, PIC, MIPS, PNX1302, and some 8748 and 6805. Check out my public code on github. https://github.com/unfrozen
 
The following users thanked this post: kgavionics

Offline kgavionicsTopic starter

  • Regular Contributor
  • *
  • Posts: 232
  • Country: ca
Re: CH32V003 NOT RESETTING?
« Reply #2 on: July 06, 2024, 10:57:31 pm »
Thank you rhodges, I think you are right! Now, I'm digging how to   erase the user option bytes.
Update:
I successfully, configured NRST PIN as NRST function using minichlink (https://github.com/cnlohr/ch32v003fun).
« Last Edit: July 06, 2024, 11:38:35 pm by kgavionics »
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf

 

- - -
-->