Jump to content
Sign in to follow this  
mgitzlaff

Sourceboost Linker Special Commands

Recommended Posts

Hi, I am trying to make use of the different bootloaders out there now. They occupy the topmost 256 bytes of memory in the PIC16F877A. In addition, the RESET(MAIN) entry point needs to be shifted by 4, i.e. instead of starting at address 0x0000, the new starting address is 0x0004. I know BOOSTBASIC is in BETA, however, I cannot determine what the PRAGMA statement would be to put into the source file to ensure this memory shift. I know that SOURCEBOOST IDE also has a special LINKER Function spot to change the default start of MAIN from 0x0000 to something else. I guess what I am looking for is the solution to adjusting the start of MAIN to Address 0x0004 and how to protect the top 256 bytes of Program memory from being overwritten by an application. Thanks!

Share this post


Link to post
Share on other sites

mgitzlaff,

 

Both BoostC and BoostBasic use the same linker.

 

That means you use the same linker options to specify where linker can start and finish placing code:

-rb 0x???? (ROM Bottom)

-rt 0x????? (ROM Top)

 

Regards

Dave

Share this post


Link to post
Share on other sites
mgitzlaff,

 

Both BoostC and BoostBasic use the same linker.

 

That means you use the same linker options to specify where linker can start and finish placing code:

-rb 0x???? (ROM Bottom)

-rt 0x????? (ROM Top)

 

Regards

Dave

 

 

Thanks for the quick info Dave!!

Share this post


Link to post
Share on other sites
New to the SourceBoost IDE.  How do you set these linker options in the IDE.
SourceBoost IDE Menu Setting > Options > Compiler Options.

 

Regards

Dave

Share this post


Link to post
Share on other sites

Your content will need to be approved by a moderator

Guest
You are commenting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×