Forum Discussion
Altera_Forum
Honored Contributor
15 years agoI discovered that code is NOT actually loaded into tc_code section (all reads 0xff)
The small testcall works in release mode because the optimizer inlines it in the caller. The bigger pkt_send function, on the other hand, is really in tc_code. In debug mode there is no call optimization, so both function don't work. The behavior is actually very strange: the linker map file tells me that testcall has been placed in tc_code but if I step the assembly code with the debugger I see it executes as if it is inlined into the caller. !?!??!?? So, the ultimate question is: how can I force to load the tc_code (or sram, or whatever) section? ALT_LOAD_SECTION_BY_NAME(tc_code) is useless. Probably tc_code is ignored because in syslib properties .text is mapped to sdram and then only this memory is loaded?