Tool/software: Code Composer Studio
I want to migrate my code from IAR5 to CCS9.3. but
#pragma segment="FLASHCODE" #pragma segment="RAMCODE"
I don't found "#pragma segment" and the definition of "Segment" in C/C++ Compiler manual (slau132u.pdf) but I found in IAR C/C++ Compiler
and I don't use "__segment_begin" and "__segment_end" in CCS
flash_start_ptr = (uint8_t)__segment_begin("FLASHCODE");
flash_end_ptr = (uint8_t)__segment_end("FLASHCODE");
RAM_start_ptr = (uint8_t)__segment_begin("RAMCODE");
And I also have a question about "RAMCODE" and "FLASHCODE". It isn't defined in the C or H file. but It is define in IAR Linker file (.xcl file)
-QRAMCODE=FLASHCODE -Z(DATA)RAMCODE=4C00-6BFF //-Z(CODE)FLASHCODE=1500-157F
I need help finding a definition of "Segment". And commands to use substitution of CCS.
PS. I have tried to find methods in "Migration of C Code from IAR 2.x, 3.x, or 4.x to CCS" in slau157ar. But it didn't cover what I needed.
.
Best Regard
Ittiphat :)