- 
                Notifications
    
You must be signed in to change notification settings  - Fork 1.1k
 
Closed
Description
According to the comment boot2_w25q080.S, upon entry lr is 0x10000100:
pico-sdk/src/rp2_common/boot_stage2/boot2_w25q080.S
Lines 95 to 96 in 2062372
| // The exit point is passed in lr. If entered from bootrom, this will be the | |
| // flash address immediately following this second stage (0x10000100). | 
According to the comment in exit_from_boot2.S however, it is zero, and that is what the code checks for:
pico-sdk/src/rp2_common/boot_stage2/asminclude/boot2_helpers/exit_from_boot2.S
Lines 12 to 13 in 2062372
| // If entered from the bootrom, lr (which we earlier pushed) will be 0, | |
| // and we vector through the table at the start of the main flash image. | 
So my guess is the comment in boot2_w25q080.S is incorrect (as well as the one in boot2_at25sf128a.S).