Followup.
I reverted the changes in runtime_init.c, the errors are not gone.
Here is an actual investigation:
Could this be an issue how the SPI Flash is initialized? I only see this behavior on reset / boot.
This thread might be related: https://forums.adafruit.com/viewtopic.p ... lit=rp2350
How is the SPI flash initialized on rp2350? I learned that there is no boot2 anymore?
Any more hints?
I reverted the changes in runtime_init.c, the errors are not gone.
Here is an actual investigation:
Code:
[rp2350.dap.core0] halted due to debug-request, current mode: Handler HardFaultxPSR: 0x89000003 pc: 0x10000114 msp: 0x20081fb8Ok, Hardfault, let's check the registers:x /w 0xE000ED2C HFSR 0x40000000 Forced, escalatedx /w 0xE000ED28 CFSR 0x00008200 BF Valid, precisex /w 0xE000ED38 BFAR 0xe200ef28 <-The stack:x/8x $msp0x20081fb8: 0x20001fc8 0x00000010 0x20001e00 0x10001e650x20081fc8: 0x40010054 0x10001d91 0x10001e68 0x89000000PC is at 0x10001e68 which is this:10001e64 <runtime_init_install_ram_vector_table>:10001e64: b538 push {r3, r4, r5, lr}10001e66: 4c05 ldr r4, [pc, #20] @ (10001e7c <runtime_init_install_ram_vector_table+0x18>)10001e68: 68a1 ldr r1, [r4, #8] ^^^^^^^^^^^^^^^^10001e6a: 4d05 ldr r5, [pc, #20] @ (10001e80 <runtime_init_install_ram_vector_table+0x1c>)10001e6c: f44f 7288 mov.w r2, #272 @ 0x11010001e70: 4628 mov r0, r510001e72: f004 fd79 bl 10006968 <memcpy>10001e76: 60a5 str r5, [r4, #8]10001e78: bd38 pop {r3, r4, r5, pc}10001e7a: bf00 nop10001e7c: e000ed00 .word 0xe000ed0010001e80: 20000000 .word 0x20000000 r4 looks like it's bogus:r0 0x20001fc8r1 0x10r2 0x20001e00r3 0x10001e65r4 0xe200ef20 <- bit(s) flipped?r5 0x88526891r6 0x4f54710r7 0x400e0014r8 0x43280035r9 0x0r10 0x10000000r11 0x62707361r12 0x40010054sp 0x20081fb8lr 0xfffffff9pc 0x10000114xpsr 0x89000003fpscr 0x0msp 0x20081fb8
This thread might be related: https://forums.adafruit.com/viewtopic.p ... lit=rp2350
How is the SPI flash initialized on rp2350? I learned that there is no boot2 anymore?
Any more hints?
Statistics: Posted by mstiller — Mon Dec 23, 2024 9:25 pm