-
Notifications
You must be signed in to change notification settings - Fork 155
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error while flashing: (Processor not halted.) DMSTATUS: 004c0c82 #325
Comments
(1) I never actually got to use the Ardulink. (2) What happens if you "unbrick" your processor after a fresh poweron, with minichlink -u? |
aaaalso https://www.wch-ic.com/downloads/QingKeV2_Processor_Manual_PDF.html Sorry for the naming discrepancy - we call them both DMABSTRACTS, even though the manual calls it ABSTRACTCS. |
08000402 = The processor is currently running and not in halt mode. I would like to know more about your programmer. |
Just ccing @maxgerhardt in case they have any ideas, since they were who originally wrote the programmer. It looks like they are not getting into the processor-halt state when programming. |
@struc can you post your full log? |
Ardulink (https://gitlab.com/BlueSyncLine/arduino-ch32v003-swio) was originally written by @BlueSyncLine, he knows more than me. :D |
@cnlohr I am using Arduino Uno R3 with arduino-ch32v003-swio connected to pin 11 as SWIO and a 2.2k resistor(also tried 1k and 4k7) I have also tried to play a little with baud rates from 9600 up to 222200 The funny thing is that this only happens after awhile (5 seconds up to 1 minute). I guess I should try another flashing method, but I do not have any at hand at the moment. Running
And this is the output of
|
When you say that resistor, you mean it's pull-up to 3.3V, right? If so anything 2.2k-10k should be fine. Still this is dubious, and would probably take input from the original author, I don't understand how their logic works for halting the processor. One thing you can try is to manually put the processor in a halt state, when calling minichlink, make the first command before the write a |
I am getting this error while trying to flash CH32V003F4P6
Fault writing memory (DMABSTRACTS = 08000402) (Processor not halted.) DMSTATUS: 004c0c82
Fault on DefaultReadWord Part 1
Fault writing memory (DMABSTRACTS = 08000402) (Processor not halted.) DMSTATUS: 004c0c82
Fault on DefaultWriteWord Part 3
Error: Flash operation error
Fault writing memory (DMABSTRACTS = 08000402) (Processor not halted.) DMSTATUS: 004c0c82
Fault on DefaultWriteWord Part 3
Fault writing memory (DMABSTRACTS = 08000402) (Processor not halted.) DMSTATUS: 004c0c82
Fault on DefaultWriteWord Part 3
....
I am using Ardulink for flashing and a bare chip (with tssop-20 adapter board) with 100nf MLCC decoupling capacitor between VDD and VSS.
I do not get any errors when I first power off the chip, though the MCU does not function at all and the blink program only works for 1-3 seconds then stops, then if I power off the chip for 5 minutes it will work again for few seconds.
I have tried to find any information about the (DMSTATUS: 004c0c82) part but could not find any.
I have already tried 10 chips, and got the same result with 9, while only one works fine.
so my question is what does DMSTATUS means? and if there are anything I need to change in my setup.
The text was updated successfully, but these errors were encountered: