Closed chen010311 closed 3 years ago
Please join the discord and ask in the #support channel where people can help you out faster. It could be because of bad soldering or wires, or that the chip itself has problems or is a clone/fake which can happen if not bought from a reputable reseller.
You can run make flash_test
to verify the flash.
FLASH:MX25U12835FM2L-10G 16MB I tried to wait, but it always showed unknown. Is my flash broken?
game-and-watch-retro-go wumengjia$ sudo make LARGE_FLASH=1 flash [ BASH ] Checking for updated roms 'LCD-Game-Emulator' 'retro-go-stm32' [ LD ] gw_retro_go.elf text data bss dec hex filename 978317 268 782880 1761465 1ae0b9 build/gw_retro_go.elf itcram 648 / 65536 (64888 bytes free (0.062 MB)) dtcram 101504 / 131072 (29568 bytes free) ram_uc 307200 / 307200 (0 bytes free (0.000 MB)) ram 65280 / 69632 (4352 bytes free (0.004 MB)) ram_emu_nes 0 / 671744 (671744 bytes free (0.641 MB)) ram_emu_gb 239096 / 671744 (432648 bytes free (0.413 MB)) ram_emu_sms 0 / 671744 (671744 bytes free (0.641 MB)) ram_emu_pce 0 / 671744 (671744 bytes free (0.641 MB)) ram_emu_gw 0 / 671744 (671744 bytes free (0.641 MB)) ahbram 5760 / 131072 (125312 bytes free (0.120 MB)) flash 87928 / 131072 (43144 bytes free (0.041 MB)) extflash 889753 / 16691200 (15801447 bytes free (15.069 MB)) saveflash 81920 / 81920 (0 bytes free (0.000 MB)) [ BIN ] gw_retro_go_intflash.bin openocd -f scripts/interface_stlink.cfg -c "program build/gw_retro_go_intflash.bin 0x08000000 verify reset exit" Open On-Chip Debugger 0.11.0+dev-00331-g53556fcde (2021-08-22-13:46) Licensed under GNU GPL v2 For bug reports, read http://openocd.org/doc/doxygen/bugs.html 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 V2J37S7 (API v2) VID:PID 0483:3748 Info : Target voltage: 3.253088 Info : stm32h7x.cpu0: hardware 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: 0x080109b4 msp: 0x20020000 Programming Started Info : Device: STM32H7Ax/7Bx Info : flash size probed value 128 Info : STM32H7 flash has a single bank Info : Bank (0) size is 128 kb, base address is 0x08000000 Info : Padding image section 0 at 0x0801587c with 4 bytes (bank write end alignment) Warn : Adding extra erase range, 0x08015880 .. 0x08015fff Programming Finished Verify Started Verified OK Resetting Target shutdown command invoked [ BASH ] Checking for updated roms 进入 'LCD-Game-Emulator' 进入 'retro-go-stm32' [ LD ] gw_retro_go.elf text data bss dec hex filename 978317 268 782880 1761465 1ae0b9 build/gw_retro_go.elf itcram 648 / 65536 (64888 bytes free (0.062 MB)) dtcram 101504 / 131072 (29568 bytes free) ram_uc 307200 / 307200 (0 bytes free (0.000 MB)) ram 65280 / 69632 (4352 bytes free (0.004 MB)) ram_emu_nes 0 / 671744 (671744 bytes free (0.641 MB)) ram_emu_gb 239096 / 671744 (432648 bytes free (0.413 MB)) ram_emu_sms 0 / 671744 (671744 bytes free (0.641 MB)) ram_emu_pce 0 / 671744 (671744 bytes free (0.641 MB)) ram_emu_gw 0 / 671744 (671744 bytes free (0.641 MB)) ahbram 5760 / 131072 (125312 bytes free (0.120 MB)) flash 87928 / 131072 (43144 bytes free (0.041 MB)) extflash 889753 / 16691200 (15801447 bytes free (15.069 MB)) saveflash 81920 / 81920 (0 bytes free (0.000 MB)) [ BIN ] gw_retro_go_extflash.bin scripts/flash_multi.sh build/gw_retro_go_extflash.bin 0 Preparing chunk 1 / 2 in file /tmp/flash_chunk.VJ02BU Flashing! Open On-Chip Debugger 0.11.0+dev-00331-g53556fcde (2021-08-22-13:46) Licensed under GNU GPL v2 For bug reports, read http://openocd.org/doc/doxygen/bugs.html 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 V2J37S7 (API v2) VID:PID 0483:3748 Info : Target voltage: 3.251511 Error: init mode failed (unable to connect to the target)
Flashing chunk 0 failed... power cycle unit and retry? (y/n) y Retry count 2/10 Open On-Chip Debugger 0.11.0+dev-00331-g53556fcde (2021-08-22-13:46) Licensed under GNU GPL v2 For bug reports, read http://openocd.org/doc/doxygen/bugs.html 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 V2J37S7 (API v2) VID:PID 0483:3748 Info : Target voltage: 3.254665 Info : stm32h7x.cpu0: hardware 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: 0x080109b4 msp: 0x20020000 0x20020000 0x080109b5 msp (/32): 0x20020000
pc (/32): 0x080109b5
Starting flash app State: FLASHAPP_INIT State: UNKNOWN State: UNKNOWN State: UNKNOWN State: UNKNOWN State: UNKNOWN State: UNKNOWN State: UNKNOWN State: UNKNOWN State: UNKNOWN State: UNKNOWN State: UNKNOWN State: UNKNOWN State: UNKNOWN ^Z [2]+ Stopped sudo make LARGE_FLASH=1 flash