Forum Discussion
Altera_Forum
Honored Contributor
15 years ago --- Quote Start --- Could you try to execute a small programm from any other RAM than SDRAM to check if tc_code onchip RAM (SSRAM, ...) is working correct? Then you must change the system lib properties. --- Quote End --- I definitely think I have some problem with loader or with configuration of jtag debugger or inside the project. I followed your advice and compiled your same hello_world sample. This what I obtained: case 1 Conditions: Same memory mapping as my original project; all memory sections mapped to sdram and attribute directive used to map the 2 functions to tc_code Result: same as my original project; tc_code not loaded I verified that tc_code can be writted and read case 2 Conditions: mapped .text section to sram; others to sdram Result: sram loaded and executing; functions mapped to tc_code with attribute don't. Added a (supposed) initialized variable with attribute(... tc_data): this is not initialized, too. case 3 Conditions: same as case 2 but mapped stack section to tc_data Result: same as before for code, but now the tc_data variable is correctly initialized. Now, during the loading process, I can see the tc_data addresses in the download progress log shown in ide console; before I didn't and I saw only sdram addresses. Conclusion: Apparently only section which are explicitly used in sys library properties are actually loaded. Other sections mapped with attribute directive are ignored, unless the referred section is used for anything else. Please, any help would be greatly appreciated because I've been stuck on this weird point for about a week.