Jump to content
Sign in to follow this  
amohr

#pragma Data Shouldn't Append Null To End Of Strin

Recommended Posts

in order to conform with the MPASM de linker command, I believe this should not append a NULL to the end of the sting. If you want a null, I think you should add it explicitly with a \0, since there's no way to specify a string w/o nulls.

 

what do you guys think?

Share this post


Link to post
Share on other sites

the problem is that that's the only way to place data at a particular address. I tried adding an ASM block with an ORG but the compiler complained.

 

either way, since I can't debug FLASH data, i can't really use this functionality :(

Share this post


Link to post
Share on other sites
the problem is that that's the only way to place data at a particular address...

 

No you are wrong. Check the BoostC help. You can use plain numbers in pragma DATA and than no zeroes will be appended.

 

Regards,

Pavel

Share this post


Link to post
Share on other sites

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
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  

×
×
  • Create New...