Arm Community
Site
Search
User
Site
Search
User
Support forums
Arm Development Studio forum
JUMPING TO A SECOND PROGRAM FROM A BOOT LOADERJUMPING TO A SECOND PROGRAM FROM A BOOT LOADER
Jump...
Cancel
Locked
Locked
Replies
4 replies
Subscribers
119 subscribers
Views
3174 views
Users
0 members are here
Options
Share
More actions
Cancel
Related
How was your experience today?
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion
JUMPING TO A SECOND PROGRAM FROM A BOOT LOADERJUMPING TO A SECOND PROGRAM FROM A BOOT LOADER
bandung laiciais
over 12 years ago
Note: This was originally posted on 18th January 2011 at
http://forums.arm.com
I have an application that is separated into two parts that are compiled and linked separately. Part 1 is a "Bootstrap Program", reside in NVRAM in the processor that checks to see if Part 2 "The Application" which is reside in the external flash is present at address 0x3C000000. After execution of Part 1 my program should jump to address 0x3C000000 which is reside in external flash.
How do I do this?
Parents
Simon Craske
over 12 years ago
Note: This was originally posted on 18th January 2011 at
http://forums.arm.com
If you're using C, you could try:
void goto_flash(void)
{
((void(*)(void))0x3C000001)();
}
Note that the final "1" indicates that the target is in Thumb; if the target is in ARM then this should be changed to "0".
hth
s.
Cancel
Vote up
0
Vote down
Cancel
Reply
Simon Craske
over 12 years ago
Note: This was originally posted on 18th January 2011 at
http://forums.arm.com
If you're using C, you could try:
void goto_flash(void)
{
((void(*)(void))0x3C000001)();
}
Note that the final "1" indicates that the target is in Thumb; if the target is in ARM then this should be changed to "0".
hth
s.
Cancel
Vote up
0
Vote down
Cancel
Children
No data