It is currently 25 Sep 2017 11:21

All times are UTC + 1 hour




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: 31 Aug 2017 14:31 
Offline

Joined: 15 Apr 2008 13:54
Posts: 248
Location: The Netherlands
Is this allowed to leave bootloader and start user code at address 0x2000?:

Const APP_ADDR = 0x2000
  ..
  ..
  Asm                                                               'Jump to user code
    Goto _APP_ADDR                                               
  End Asm

_________________
Regards,

Peter.


Top
 Profile  
 
PostPosted: 01 Sep 2017 10:28 
Offline
mikroElektronika team
User avatar

Joined: 25 Jan 2008 09:56
Posts: 9320
Hi,

Please, could you elaborate your question ?

Regards,
Filip.


Top
 Profile  
 
PostPosted: 01 Sep 2017 12:09 
Offline

Joined: 15 Apr 2008 13:54
Posts: 248
Location: The Netherlands
Hi,
My question is can I jump to address 0x2000 when I exit the bootloader ?

_________________
Regards,

Peter.


Top
 Profile  
 
PostPosted: 05 Sep 2017 22:20 
Offline
User avatar

Joined: 21 Mar 2017 16:57
Posts: 485
Hi,

Basically - the bootloader code places the data for the user code on a certain predetermined location. Maybe you could use orgall function and organize your code to start elsewhere. I would have to see in the datasheet about the certain MCU and it's memory organization, but as long as you place your code somewhere where it won't overwrite the bootloader code, you are free to jump there.
There's also one side note here : bootloader will start filling the code in the predetermined address in any case. It would still jump to that predetermined address, but if you move your code with orgall, it would find another jump directive there and jump again to the code you want to have at the particular address...

Best regards.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: