Skip to content
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

Restore with new 64 mb chip failed #29

Open
Ch1n01 opened this issue Aug 6, 2022 · 5 comments
Open

Restore with new 64 mb chip failed #29

Ch1n01 opened this issue Aug 6, 2022 · 5 comments

Comments

@Ch1n01
Copy link

Ch1n01 commented Aug 6, 2022

Hello!
I had 2 consoles, I backed up first console, unloked, changed the chip to 64 mb, restored the backup, recorded a bunch of games, everything is fine with this. Did all this in Ubuntu VMware under Mac OS. I also made a backup of the second console, hacked it, left the soldering of the chip for later, made a snapshot in VMware. Later I soldered the chip, and when I started to restore the firmware, I realized that I accidentally deleted the snapshot with the backup. So I decided to soldering stock chip back, made a backup, desoldering it and soldering 64mb chip again. After that when I trying to restore firmware on 64mb chip i am seeing this:

Restoring SPI flash...
./5_restore.sh: line 34: 60868 Aborted (core dumped) ${OPENOCD} -f "openocd/target_${TARGET}.cfg" -f "openocd/interface_${ADAPTER}.cfg" -c "init;" -c "halt;" -c "program backups/flash_backup_${TARGET}.bin 0x90000000 verify;" -c "exit;" >> logs/5_openocd.log 2>&1

In openocd log:

Open On-Chip Debugger 0.11.0+dev-00715-g480d4e177-dirty (2022-06-14-02:49)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
1300
Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
none separate

Info : clock speed 1800 kHz
Info : STLINK V2J29S7 (API v2) VID:PID 0483:3748
Info : Target voltage: 3.290505
Info : [stm32h7x.cpu0] Cortex-M7 r1p1 processor detected
Info : [stm32h7x.cpu0] target has 8 breakpoints, 4 watchpoints
Info : starting gdb server for stm32h7x.cpu0 on 3333
Info : Listening on port 3333 for gdb connections
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x080164b8 msp: 0x2001b5c0
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x0801ad48 msp: 0x2001b620
Info : Device: STM32H7Ax/7Bx
Info : flash size probed value 128k
Info : STM32H7 flash has dual banks
Info : Bank (0) size is 256 kb, base address is 0x08000000
Initializing Octo-SPI interface
Error: timeout
Error executing event reset-end on target stm32h7x.cpu0:
embedded:startup.tcl:876: Error:
in procedure 'program'
in procedure 'ocd_process_reset'
in procedure 'ocd_process_reset_inner' called at file "embedded:startup.tcl", line 876
** Programming Started **
Error: timeout
openocd: src/flash/nor/core.c:857: flash_write_unlock_verify: Assertion `run_size > 0' failed.

Can I something to do with this? Thanks!

@BenjaminSoelberg
Copy link
Contributor

BenjaminSoelberg commented Aug 21, 2023

I have created pull request #34 to fix this.

@BenjaminSoelberg
Copy link
Contributor

I know this is a year old by now but could you try with the latest version ?
Just prefix your restore command with LARGE_FLASH=1 and you should be good.

@Ch1n01
Copy link
Author

Ch1n01 commented Aug 22, 2023

Hello Benjamin! Yes, of course, I can check as soon as I get back from vacation in a couple of weeks. Thanks for the answer!

@BenjaminSoelberg
Copy link
Contributor

Did it work ?

@Ch1n01
Copy link
Author

Ch1n01 commented Oct 9, 2023

Hi, Benjamin! I had a problem with soldering the memory chip on this device, due to the fact that I changed the chips many times and tried to restore it. I will try to solve the problem, if there are results, I will definitely write an answer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants