Hi all
I'm working to a SV-PWM controller, on F2812, and I need to calculate Park-transform to implement a dq-PLL. Because the high frequency of the reference signal, I have to use integer data type with global scale factor. I have to implement the lookup table for sine and cosine function, but I've got some problems. I tried two different solution:
- I declare a vector of 5000 element with value of sin, and I place it in FLASHB sector of flash with the
#pragma DATA_SECTION(sinLUT, "sin_LUT");
where sin_LUT is a section in the .cmd file,
"sin_LUT : > FLASHB PAGE = 1, TYPE = NOLOAD"
- I declare a function with the same vector declared in, and I return the value at the specified index. I place in FLASHG sector with the
#pragma CODE_SECTION(sin_fsg, "sin_LUT");
In both case, the compiler give me this error
placement fails for object ".text", F2812.cmd
Anyone had the same problem? What should I do?