-
Notifications
You must be signed in to change notification settings - Fork 38
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
[PFC232] Verification failed during flashing #60
Comments
I tried it with 2 variants of the programer (HWMOD:0 / HWMOD:1 = R6 mod) and in both cases I can erase/write/calibrate/run the exact same example without any issues. From your output it looks like erase is working.
It would be interesting to read back the content of the IC after you get ./easypdkprog -n PFC232 read readback_helloworld_2cores_pfc232.ihx BTW: I saw your "helloworld.ihx" is slightly bigger than mine (maybe you use older SDCC). In order to see differences please attach your "helloworld_2cores_pfc232.ihx" and your "readback_helloworld_2cores_pfc232.ihx". |
Hello again, now with software issues software version is 1.3 d:\Users\FidL\Documents\eagle\easyPDKprog\easy-pdk-programmer-software-master\release1.3\EASYPDKPROG>easypdkprog --icname=PFS154 erase d:\Users\FidL\Documents\eagle\easyPDKprog\easy-pdk-programmer-software-master\release1.3\EASYPDKPROG>easypdkprog probe d:\Users\FidL\Documents\eagle\easyPDKprog\easy-pdk-programmer-software-master\release1.3\EASYPDKPROG>easypdkprog --icname=PFS154 write helloworld_pfs154.ihx same result using PFS173 d:\Users\FidL\Documents\eagle\easyPDKprog\easy-pdk-programmer-software-master\release1.3\EASYPDKPROG>easypdkprog --runvdd=4.0 start |
If VERIFY fails, then the IC is not programed properly and of course it can not run. Most likely your problem is caused by long wires between programmer and IC and/or bad connection from IC to socket / ... Could you do the suggested read out after writing (see previous post)? Then attach hex file you tried to write and the read back hex file. |
look to show some instabilities with programmer and someting said "nothing found" again... Here is the readback for PFS154 |
Your readback shows a complete empty IC. Not a single bit has been written. => VDD / VPP supply to IC seems unstable (long wires, bad soldering, bad contact to IC in socket, ...) |
@freepdk The first one cannot discover the MCU anymore :-( Should I buy a new socket adapter? |
VPP 4.58 seems a bit low, 4.88 is on the edge. Do you measure the values with the IC connected? |
No as long as it is said not drive test with mcu on the programmer..... Should I ? |
@Skywalkerf34 Time to measure some things on PCB. |
here is programmer "2" that detect but fail programming Please note I am using same chip on same adapter than I just unplug from one programmer to the second one |
I will do some measurements (all over the board) later and provide info. What I can immediately see: Voltage on pin 8 on both devices is much to low. This is the feed from the DC-DC booster and should have >13V. => check values of R1 / R5 |
@freepdk The coil I am using is maybe not good enough ? ( cannot get the one on BOM I use CD43 6.8UH |
@Skywalkerf34 |
Hi, sorry for not responding but i was busy So i had to create new environment, currently i'm using
i had to use commit 38968a3 as with newer versions i have issues (HWMOD not detecting, can't write ihx from exmaples ) . I still have same issue with verification. I'm attaching zip with 3 files: readout after erasing chip, original ihx that has beed written and readout after writing original ihx after writing example code with disabled verification, calibration works and uC seems to work ( using easypdkprog start ) UPDATE: Looks like i'm getting some corruption at writing. |
Seams like i might actually got some bad chips as some flash without issues. With "faulty" chips i have tried to flash them with --noerase and --noblank repeatedly and sometimes it passes verification. |
Seems like a voltage / timing issue. Most likely it can be fixed with a more robust flashing implementation. |
Hi,
Thanks for adding PFC232 support
Finally i got some time to play with this MCU and i run into some issue.
Describe the bug
Getting verify failed error when flashing PFC232
And on latest development version calibration fails too.
Desktop (please complete the following information):
Additional context
I have also tried version with PROTO:1.4 (commit a5e3d29),
PFC232 calibrates with --noverify only on programmer with R6 mod
and example code works.
helloworld_2cores_pfc232 programmed on PROTO 1.4, HWMOD:1 runs ok on programmer with latest firmware.
The text was updated successfully, but these errors were encountered: