This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Dear team:
Due to hardware problems, customers can only program through C2Prog.
After my client added the sincos function to the project, he found that the program could not be programmed with C2Prog, and an error occurred:
There is no problem in programming with C2Prog without calling the sincos function.
The program code is as follows:
#ifndef C28X_FPU_FAST_RTS_H #define C28X_FPU_FAST_RTS_H #ifdef __cplusplus extern "C" { #endif //----------------------------------------------------------------------------- // Standard C28x Data Types //----------------------------------------------------------------------------- #ifndef DSP28_DATA_TYPES #define DSP28_DATA_TYPES typedef int int16; typedef long int32; typedef long long int64; typedef unsigned int Uint16; typedef unsigned long Uint32; typedef unsigned long long Uint64; typedef float float32; typedef long double float64; #endif //----------------------------------------------------------------------------- // Function Prototypes //----------------------------------------------------------------------------- float32 sqrt(float32 X); float32 isqrt(float32 X); //float32 atan2(float32 y, float32 x); void sincos(float32 radian, float32* PtrSin, float32* PtrCos); //----------------------------------------------------------------------------- // //----------------------------------------------------------------------------- #ifdef __cplusplus } #endif /* extern "C" */ #endif // - end of C28X_FPU_FAST_RTS_H //=========================================================================== // End of file. //===========================================================================
cmd:
BOOTROM : origin = 0x003F0000, length = 0x00001402 IQTABLES : origin = 0x003F1402, length = 0x0000166D /* IQ Math Tables in Boot ROM */ FPUTABLES : origin = 0x003F2A70, length = 0x0000081A /* FPU Tables in Boot ROM */ BOOTROM_EXT : origin = 0x003F8000, length = 0x00007FC0 RESET : origin = 0x003FFFC0, length = 0x00000002 FPUmathTables : > FPUTABLES, ALIGN(8)
May I ask what could be the cause?
Best regards
Hi,
Will forward the query to the concerned team .
Best Regards
Siddharth
Hi Green,
Question: If the FPUmathTables are in ROM, why did not they make it as TYPE = NOLOAD?
Note that F280025C has TMU. Please take a look at this post: https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/626783/ccs-tms320f28075-calculation-error-when-use-sincos-function
If they mapped this function to flash: Where is this function mapped to in the flash? Is that section in the linker cmd file aligned to 128-bit boundary using ALIGN(8)? Can the user provide their map file and the linker cmd file?
Thanks and regards,
Vamsi