A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/stlink-org/stlink/pull/1305 below:

Erase flash fails on second page · Issue #1305 · stlink-org/stlink · GitHub

Skip to content Navigation Menu

Saved searches Use saved searches to filter your results more quickly

Sign up You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert Additional navigation options

[STM32WLE]: Erase flash fails on second page #1305

Description

Commandline output:

$ sudo st-flash --debug --freq=100k --serial 004C00293331510833323639 write ~/play/EN_Silva.bin 0x8008000
st-flash 1.7.0-261-g1745bf5-dirty
2023-04-19T10:08:30 DEBUG common.c: *** looking up stlink version ***
2023-04-19T10:08:30 DEBUG common.c: st vid         = 0x0483 (expect 0x0483)
2023-04-19T10:08:30 DEBUG common.c: stlink pid     = 0x374f
2023-04-19T10:08:30 DEBUG common.c: stlink version = 0x3
2023-04-19T10:08:30 DEBUG common.c: jtag version   = 0xc
2023-04-19T10:08:30 DEBUG common.c: swim version   = 0x1
2023-04-19T10:08:30 DEBUG common.c: stlink current mode: mass
2023-04-19T10:08:30 DEBUG usb.c: JTAG/SWD freq set to 100
2023-04-19T10:08:30 INFO usb.c: Unable to match requested speed 100 kHz, using 50 kHz
2023-04-19T10:08:30 DEBUG common.c: stlink current mode: mass
2023-04-19T10:08:30 DEBUG common.c: *** stlink_enter_swd_mode ***
2023-04-19T10:08:30 DEBUG common.c: Loading device parameters....
2023-04-19T10:08:30 DEBUG common.c: *** stlink_core_id ***
2023-04-19T10:08:30 DEBUG common.c: core_id = 0x6ba02477
2023-04-19T10:08:30 DEBUG read_write.c: *** stlink_read_debug32 0x410fc241 at 0xe000ed00
2023-04-19T10:08:30 DEBUG read_write.c: *** stlink_read_debug32 0x10016497 at 0xe0042000
2023-04-19T10:08:30 DEBUG chipid.c: detected chip_id parameters

2023-04-19T10:08:30 DEBUG chipid.c: # Device Type: STM32WLEx
2023-04-19T10:08:30 DEBUG chipid.c: # Reference Manual: RM0033
2023-04-19T10:08:30 DEBUG chipid.c: #
2023-04-19T10:08:30 DEBUG chipid.c: chip_id 0x497
2023-04-19T10:08:30 DEBUG chipid.c: flash_type 11
2023-04-19T10:08:30 DEBUG chipid.c: flash_size_reg 0x1fff75e0
2023-04-19T10:08:30 DEBUG chipid.c: flash_pagesize 0x800
2023-04-19T10:08:30 DEBUG chipid.c: sram_size 0x10000
2023-04-19T10:08:30 DEBUG chipid.c: bootrom_base 0x1fff0000
2023-04-19T10:08:30 DEBUG chipid.c: bootrom_size 0x7000
2023-04-19T10:08:30 DEBUG chipid.c: option_base 0x1fff7800
2023-04-19T10:08:30 DEBUG chipid.c: option_size 0x10
2023-04-19T10:08:30 DEBUG chipid.c: flags 2

2023-04-19T10:08:30 DEBUG read_write.c: *** stlink_read_debug32 0xffff0100 at 0x1fff75e0
2023-04-19T10:08:30 INFO common.c: STM32WLEx: 64 KiB SRAM, 256 KiB flash in at least 2 KiB pages.
2023-04-19T10:08:30 DEBUG common.c: *** stlink_force_debug_mode ***
2023-04-19T10:08:30 DEBUG read_write.c: *** stlink_read_debug32 0x00001800 at 0xe004203c
2023-04-19T10:08:30 DEBUG read_write.c: *** stlink_write_debug32 0x00001800 to 0xe004203c
2023-04-19T10:08:30 DEBUG common.c: *** stlink_status ***
2023-04-19T10:08:30 DEBUG usb.c: core status: 01030003
2023-04-19T10:08:30 DEBUG common.c:   core status: halted
file /home/victor/play/EN_Silva.bin md5 checksum: d6dbf4ee312a850538c2dd92edb9e89, stlink checksum: 0x014d4616
2023-04-19T10:08:30 INFO common_flash.c: Attempting to write 211776 (0x33b40) bytes to stm32 address: 134250496 (0x8008000)
2023-04-19T10:08:30 DEBUG common.c: *** stlink_core_id ***
2023-04-19T10:08:30 DEBUG common.c: core_id = 0x6ba02477
2023-04-19T10:08:30 DEBUG read_write.c: *** stlink_read_debug32 0000000000 at 0x58004010
2023-04-19T10:08:30 DEBUG read_write.c: *** stlink_write_debug32 0x000003f8 to 0x58004010
2023-04-19T10:08:30 DEBUG read_write.c: *** stlink_read_debug32 0xc0000000 at 0x58004014
2023-04-19T10:08:30 DEBUG read_write.c: *** stlink_write_debug32 0x45670123 to 0x58004008
2023-04-19T10:08:30 DEBUG read_write.c: *** stlink_write_debug32 0xcdef89ab to 0x58004008
2023-04-19T10:08:30 DEBUG read_write.c: *** stlink_read_debug32 0x40000000 at 0x58004014
2023-04-19T10:08:30 DEBUG common_flash.c: Successfully unlocked flash
2023-04-19T10:08:30 DEBUG read_write.c: *** stlink_read_debug32 0x40000000 at 0x58004014
2023-04-19T10:08:30 DEBUG read_write.c: *** stlink_write_debug32 0x40000002 to 0x58004014
2023-04-19T10:08:30 DEBUG read_write.c: *** stlink_read_debug32 0x40000002 at 0x58004014
2023-04-19T10:08:30 DEBUG read_write.c: *** stlink_write_debug32 0x40000082 to 0x58004014
2023-04-19T10:08:30 DEBUG read_write.c: *** stlink_read_debug32 0x40000082 at 0x58004014
2023-04-19T10:08:30 DEBUG read_write.c: *** stlink_write_debug32 0x40010082 to 0x58004014
2023-04-19T10:08:30 DEBUG read_write.c: *** stlink_read_debug32 0x00050000 at 0x58004010
2023-04-19T10:08:30 DEBUG read_write.c: *** stlink_read_debug32 0x00050000 at 0x58004010
2023-04-19T10:08:30 DEBUG read_write.c: *** stlink_read_debug32 0x00050000 at 0x58004010
2023-04-19T10:08:30 DEBUG read_write.c: *** stlink_read_debug32 0x00050000 at 0x58004010
2023-04-19T10:08:30 DEBUG read_write.c: *** stlink_read_debug32 0x00050000 at 0x58004010
2023-04-19T10:08:30 DEBUG read_write.c: *** stlink_read_debug32 0x00050000 at 0x58004010
2023-04-19T10:08:30 DEBUG read_write.c: *** stlink_read_debug32 0x00050000 at 0x58004010
2023-04-19T10:08:30 DEBUG read_write.c: *** stlink_read_debug32 0x00050000 at 0x58004010
2023-04-19T10:08:30 DEBUG read_write.c: *** stlink_read_debug32 0x00050000 at 0x58004010
2023-04-19T10:08:30 DEBUG read_write.c: *** stlink_read_debug32 0000000000 at 0x58004010
2023-04-19T10:08:30 DEBUG read_write.c: *** stlink_read_debug32 0x40000082 at 0x58004014
2023-04-19T10:08:30 DEBUG read_write.c: *** stlink_write_debug32 0x40000080 to 0x58004014
2023-04-19T10:08:30 DEBUG read_write.c: *** stlink_read_debug32 0x40000080 at 0x58004014
2023-04-19T10:08:30 DEBUG read_write.c: *** stlink_write_debug32 0x40000081 to 0x58004014
2023-04-19T10:08:30 DEBUG read_write.c: *** stlink_read_debug32 0000000000 at 0x58004010
2023-04-19T10:08:30 DEBUG common_flash.c: 
read_flash_sr(sl, BANK_1): 0000000000 STM32WB_FLASH_SR_ERROR_MASK 0x3f8
2023-04-19T10:08:30 DEBUG common_flash.c: res & STM32WB_FLASH_SR_ERROR_MASK: 0000000000
-> Flash page at 0x8008000 erased (size: 0x800)
2023-04-19T10:08:30 DEBUG read_write.c: *** stlink_read_debug32 0000000000 at 0x58004010
2023-04-19T10:08:30 DEBUG read_write.c: *** stlink_write_debug32 0x000003f8 to 0x58004010
2023-04-19T10:08:30 DEBUG read_write.c: *** stlink_read_debug32 0x40000081 at 0x58004014
2023-04-19T10:08:30 DEBUG common_flash.c: Successfully unlocked flash
2023-04-19T10:08:30 DEBUG read_write.c: *** stlink_read_debug32 0x40000081 at 0x58004014
2023-04-19T10:08:30 DEBUG read_write.c: *** stlink_write_debug32 0x40000083 to 0x58004014
2023-04-19T10:08:30 DEBUG read_write.c: *** stlink_read_debug32 0x40000083 at 0x58004014
2023-04-19T10:08:30 DEBUG read_write.c: *** stlink_write_debug32 0x4000008b to 0x58004014
2023-04-19T10:08:30 DEBUG read_write.c: *** stlink_read_debug32 0x4000008b at 0x58004014
2023-04-19T10:08:30 DEBUG read_write.c: *** stlink_write_debug32 0x4001008b to 0x58004014
2023-04-19T10:08:30 DEBUG read_write.c: *** stlink_read_debug32 0x00000080 at 0x58004010
2023-04-19T10:08:30 DEBUG read_write.c: *** stlink_read_debug32 0x4000008b at 0x58004014
2023-04-19T10:08:30 DEBUG read_write.c: *** stlink_write_debug32 0x40000089 to 0x58004014
2023-04-19T10:08:30 DEBUG read_write.c: *** stlink_read_debug32 0x40000089 at 0x58004014
2023-04-19T10:08:30 DEBUG read_write.c: *** stlink_write_debug32 0x40000089 to 0x58004014
2023-04-19T10:08:30 DEBUG read_write.c: *** stlink_read_debug32 0x00000080 at 0x58004010
2023-04-19T10:08:30 DEBUG common_flash.c: 
read_flash_sr(sl, BANK_1): 0x00000080 STM32WB_FLASH_SR_ERROR_MASK 0x3f8
2023-04-19T10:08:30 DEBUG common_flash.c: res & STM32WB_FLASH_SR_ERROR_MASK: 0x00000080
2023-04-19T10:08:30 ERROR common_flash.c: Flash programming error: 0x00000080
2023-04-19T10:08:30 WARN common_flash.c: Failed to erase_flash_page(0x8008800) == -1
2023-04-19T10:08:30 ERROR common_flash.c: Failed to erase the flash prior to writing
2023-04-19T10:08:30 DEBUG read_write.c: *** stlink_read_debug32 0xffffffff at 0x08008004
2023-04-19T10:08:30 DEBUG read_write.c: *** stlink_write_reg
2023-04-19T10:08:30 DEBUG common.c: *** stlink_run ***
2023-04-19T10:08:30 DEBUG read_write.c: *** stlink_read_reg
2023-04-19T10:08:30 DEBUG read_write.c:  (16) ***
2023-04-19T10:08:30 DEBUG common.c: data_len = 8 0x8

 80 00 00 00 00 00 00 61
2023-04-19T10:08:30 DEBUG usb.c: r_idx (16) = 0x61000000
stlink_fwrite_flash() == -1
2023-04-19T10:08:30 DEBUG common.c: *** stlink_exit_debug_mode ***
2023-04-19T10:08:30 DEBUG read_write.c: *** stlink_write_debug32 0xa05f0000 to 0xe000edf0
2023-04-19T10:08:30 DEBUG common.c: *** stlink_close ***

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4