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.
Hi,
I am using TMDX570LS20SUSB controller. In CCS, i am trying to enable and initialize the floating point option. But it shows error as,
PROBLEM 1:
mrc p15, #0x00, r0, c1, c0, #0x02
orr r0, r0, #0xF00000
mcr p15, #0x00, r0, c1, c0, #0x02
mov r0, #0x40000000
fmxr fpexc, r0
[E0002] Instruction requires VFP or NEON support. (While --float_support = None)
and if i enable --float_support = VFPv3D16
fatal error: file "../lib/pf035a_api_eabi.lib<blank.obj>" was built without VFP coprocessor support while a previously seen file was; combining incompatible files.
PROBLEM 2:
I don't know how to move the value which is present in the FPSCR register to the local variable we are using in our code. For ex,
UInt32 temp;
.........
.........
{Here i want to write a code to transfer the value of the register FPSCR to the "temp" variable for further process}
Please let me know how to resolve this problem.
Thanks and Regards
Gowdham Natarajan
When using floating point on the TMS570LS20xx devices, you need to use the pf035a_api_eabi_vfp.lib. This version of the library is compiled with the floating point support.
Dear John,
Thanks for your information. I couldn't find this "pf035a_api_eabi_vfp.lib" file in my PC. I searched completely under CCS installation directory as well as in net. I coudn't find this .lib file. Could you please help me with the link to get this file.
I have a doubt that, whether we need to include this .lib file while compiling through CCS or by setting some option CCS generate this .lib file. I need some clear information about this.
Thanks and Regards
Gowdham Natarajan
Gowdham,
The Platform F035a Flash API libraries are not installed under CCS. If you allowed for default installation of the API, it would be under C:\ti\pf035a_api\v1.05. If you cannot find your install or you were just given the library file, you can download the installer for this API from here http://www.ti.com/tool/f035flashapi.
Dear John,
Thanks for your valuable information. VFP support issue is resolved. But, other issue i am facing now is, posted as a new one. Please find the post link below,
http://e2e.ti.com/support/microcontrollers/hercules/f/312/t/140963.aspx
Is there any suggestions or ideas regarding this, Please let me know.
Thanks and Regards
Gowdham Natarajan
Gowdham,
I will have to let someone else take the lead on your new question as that is not my area of expertise.
Hi Gowdham,
I am working on TMS570 processor and I tried to initialize VFP unite without succes, In fact I didn't know How do you include the new library, Can you explain to me how the FPU must be initialized? or can you send me code application?
It's very important for my internship to know this information
Thanks
PS I posted my question in the Forum http://e2e.ti.com/support/microcontrollers/hercules/f/312/p/188653/680647.aspx#680647