-
-
Save mirkomatonti/a7a784d4d460f95e0cf2da4b5b31292d to your computer and use it in GitHub Desktop.
Edge Cases
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
st-flash --area=otp write /tmp/otp.bin 0x1fff73ff | |
st-flash 1.7.0-316-g31c7fc6-dirty | |
2023-11-08T15:19:03 INFO common.c: STM32L496x_L4A6x: 320 KiB SRAM, 1024 KiB flash in at least 2 KiB pages. | |
file /tmp/otp.bin md5 checksum: 883428dc39b49fcfbf476cf14510d, stlink checksum: 0x00000360 | |
2023-11-08T15:19:03 INFO common_flash.c: Attempting to write 24 (0x18) bytes to stm32 address: 536835071 (0x1fff73ff) | |
2023-11-08T15:19:03 ERROR common_flash.c: The size exceeds the size of the flash (0x00000001 bytes available) | |
stlink_fwrite_flash() == -1 | |
st-flash --area=otp write /tmp/otp.bin 0x1fff73ff | |
st-flash 1.7.0-316-g31c7fc6-dirty | |
2023-11-08T15:20:15 INFO common.c: STM32L496x_L4A6x: 320 KiB SRAM, 1024 KiB flash in at least 2 KiB pages. | |
OTP Write Not implimented | |
st-flash --area=otp read /tmp/otp.bin | |
st-flash 1.7.0-316-g31c7fc6-dirty | |
2023-11-08T15:21:02 INFO common.c: STM32L496x_L4A6x: 320 KiB SRAM, 1024 KiB flash in at least 2 KiB pages. | |
OTP Read not implimented |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
st-flash --area=otp write /tmp/otp.bin 0x1fff7388 | |
st-flash 1.7.0-316-g31c7fc6-dirty | |
2023-11-08T15:22:45 INFO common.c: STM32L496x_L4A6x: 320 KiB SRAM, 1024 KiB flash in at least 2 KiB pages. | |
file /tmp/otp.bin md5 checksum: 883428dc39b49fcfbf476cf14510d, stlink checksum: 0x00000360 | |
2023-11-08T15:22:45 INFO common_flash.c: Attempting to write 24 (0x18) bytes to stm32 address: 536834952 (0x1fff7388) | |
2023-11-08T15:22:45 INFO flash_loader.c: Starting Flash write for F2/F4/F7/L4 | |
2023-11-08T15:22:45 INFO flash_loader.c: Successfully loaded flash loader in sram | |
2023-11-08T15:22:45 INFO flash_loader.c: Clear DFSR | |
2023-11-08T15:22:45 INFO flash_loader.c: Clear CFSR | |
2023-11-08T15:22:45 INFO flash_loader.c: Clear HFSR | |
2023-11-08T15:22:45 INFO common_flash.c: Starting verification of write complete | |
2023-11-08T15:22:45 INFO common_flash.c: Flash written and verified! jolly good! | |
st-flash --area=otp read /tmp/otp.bin | |
st-flash 1.7.0-316-g31c7fc6-dirty | |
2023-11-08T15:23:14 INFO common.c: STM32L496x_L4A6x: 320 KiB SRAM, 1024 KiB flash in at least 2 KiB pages. | |
2023-11-08T15:23:14 INFO common.c: read from address 0x1fff7000 size 1024 | |
hexdump /tmp/otp.bin | |
0000000 0048 0049 0030 2000 ffff ffff ffff ffff | |
0000010 ffff ffff ffff ffff ffff ffff ffff ffff | |
* | |
0000380 ffff ffff ffff ffff 2100 01f4 4859 3750 | |
0000390 3250 3038 0038 0000 0000 0000 0000 0000 | |
00003a0 2100 01f4 4859 3750 3250 3038 0038 0000 | |
00003b0 0000 0000 0000 0000 2100 9f6a 5253 4d50 | |
00003c0 5249 4f4b 3333 4100 0000 0056 0000 0a00 | |
00003d0 2100 9f6a 5253 4d50 5249 4f4b 3333 4100 | |
00003e0 0000 0056 0000 0000 2100 6559 5253 4d50 | |
00003f0 5249 4f4b 0033 0000 0000 0000 0000 0000 | |
0000400 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment