embitzForum
  • Status Unconfirmed
  • Percent Complete
    0%
  • Ticket Type Forum Question
  • Category
  • Assigned To No-one
  • Operating System All
  • Severity Critical
  • Priority Normal
  • Reported Version 1.10
  • Due in Version Undecided
  • Due Date Undecided
  • Votes 0
  • Private No
Attached to Project: EmBitz IDE
Opened by (Shivakumara) - 2017-08-01

Ticket#283 - Adding NOLOAD attribute in the .ld file in the GCC compiler

Hi Support team,

Greetings!

Currently I am using Broadcom BCM89107 microcontroller and GCC compiler.
Now, I am trying to place the single function in DRAM memory. I have made necessary modifications in the .ld file. In this process I came to know the when I Mention the NOLOAD for the single DRAM function, it is sitting in the DRAM location but its not executing at the runtime (Its going to exception). and final out size I got is nearly 651 KB.

And when I remove the NOLOAD attribute form the .ld file and when I try to compile it, it is taking 10-15 min for generating the executables and it is generating the .bin and .img file with 1.1GB.

Please let me know how to solve this issue.

Please let me know your comments as earliest.

FYI: below I have extra in .ld file to place the single function in DRAM.

.dram.code BLOCK(dram_code_region_start) (NOLOAD):
{
__dram_code_start__ = .;
*(.dram_code*)
__dram_code_end__ = .;
size_check = (__dram_code_end__ <= dram_code_region_start);
ASSERT(size_check, "***LINKER ERROR: DRAM Code Section overflows the limit.");
} > DRAM



Thanks in advance.

Regards,
Shivakumara

This ticket does not depend on any other tickets.

Loading...