Skip to content

Contradictory comments in boot2_w25q080.S and exit_from_boot2.S #738

@Kristine1975

Description

@Kristine1975

According to the comment boot2_w25q080.S, upon entry lr is 0x10000100:

// 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:

// 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).

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions