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

Typo in linker.ld for NXP i.MX RT #23897

Closed
arvid-r opened this issue Mar 29, 2020 · 3 comments
Closed

Typo in linker.ld for NXP i.MX RT #23897

arvid-r opened this issue Mar 29, 2020 · 3 comments
Labels
bug The issue is a bug, or the PR is fixing a bug

Comments

@arvid-r
Copy link
Collaborator

arvid-r commented Mar 29, 2020

Describe the bug
There is a typo in linker.ld for NXP i.MX RT platform since the conversion to new Devicetree macros. The start adress macro is used instead of the size macro for the ITCM and DTCM sections, which renders very large sections for these memories.

To Reproduce
Steps to reproduce the behavior:

  1. cd samples/hello_world
  2. mkdir build; cd build
  3. west build -b mimxrt_1020evk
  4. See output
[2/6] Linking C executable zephyr/zephyr_prebuilt.elf
Memory region         Used Size  Region Size  %age Used
           OCRAM:          0 GB       128 KB      0.00%
            DTCM:          0 GB       512 MB      0.00%
            ITCM:          0 GB         0 GB       nan%
           FLASH:       20964 B         8 MB      0.25%
            SRAM:        3916 B        32 MB      0.01%
        IDT_LIST:          72 B         2 KB      3.52%

Expected behavior

west build -b mimxrt1020_evk ..
[2/6] Linking C executable zephyr/zephyr_prebuilt.elf
Memory region         Used Size  Region Size  %age Used
           OCRAM:          0 GB       128 KB      0.00%
            DTCM:          0 GB        64 KB      0.00%
            ITCM:          0 GB        64 KB      0.00%
           FLASH:       20964 B         8 MB      0.25%
            SRAM:        3916 B        32 MB      0.01%
        IDT_LIST:          72 B         2 KB      3.52%
[6/6] Linking C executable zephyr/zephyr.elf

Environment (please complete the following information):
MacOS and gnu toolchain, but should be the same for all OSs I guess

Easy fix. I will prepare a PR if no-one else does.

@arvid-r arvid-r added the bug The issue is a bug, or the PR is fixing a bug label Mar 29, 2020
@galak
Copy link
Collaborator

galak commented Mar 29, 2020

Easy fix. I will prepare a PR if no-one else does.

A PR would be appreciated.

@arvid-r
Copy link
Collaborator Author

arvid-r commented Mar 30, 2020

#23902

@galak
Copy link
Collaborator

galak commented Mar 30, 2020

Fixed by #23902

@galak galak closed this as completed Mar 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug The issue is a bug, or the PR is fixing a bug
Projects
None yet
Development

No branches or pull requests

2 participants