Hi,
I am working on the custom board based on TM4C1294+lwip1.4.1+freeRTOS+ccs5.5.x(Compiler ti v5.1.9).
but not sure I need to add "rtsv7M4_T_le_v4SPD16_eabi" in File Search Path of Linker.
I am developing a project from Stellaris(LM3S9B96) to Tiva C(TM4C1294).
My project requires EPI external 8MB SDRAM to store global variables, but the codes ,used to work in Stellaris, do not work in Tiva C.
To verify the 8MB SDRAM on the custom board, I executed the example of "sdram.c" and was able to write/read values from SDRAM.
In my project, All extern structs and variables are declared in one .h and their definitions are in one .c. The initialization of variables are done by a couple of init functions().
However, for test I just simplify codes using primitive data type instead of structs.
I have tried from 1 to 4
1. #pragma DATA_SECTION(abab,".external"); extern int abab[20]; // ---------------> if I put extern here, compiler seems to ignore as a result I can not see the address on .map
2. #pragma DATA_SECTION(abab,".external"); int abab[20]; // I can see the address on .map or
3. extern int abab[20]; int abab[20]__attribute__ ((section (".external")));
4. extern int abab[20]__attribute__ ((section (".external"))); int abab[20];
//init values
memset((char *) abab ,0 ,sizeof(abab));
I can see the address "abab[]" in .map but everything I have tried on does not work as programing .bin. They just directly go to faultISR()
Even if I attempt to debug, it does not let me in since the program directly goes to faultISR().
I am not sure if this is due to compiler/linker problem or something wrong with my codes.
Thanks,
Jin