Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for one memory section duplicated in two memory areas. #38

Open
AndersHoglund opened this issue Aug 7, 2017 · 0 comments
Open

Comments

@AndersHoglund
Copy link
Contributor

AndersHoglund commented Aug 7, 2017

Typically in an embedded application the .data section occupies space in both FLASH and RAM. Currently it seems as only RAM is supported. Please take look at the linker command files attached in PR #37., where the .data spec looks like this :

  .data :
  {
    . = ALIGN(4);
    _sdata = .;        /* create a global symbol at data start */
    *(.data)           /* .data sections */
    *(.data*)          /* .data* sections */

    . = ALIGN(4);
     _edata = .;        /* define a global symbol at data end */
  } >RAM AT> FLASH

The closing line indicates that .data exists in both RAM (run time) and FLASH (initializers)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant