Jump to content

Error: Fixed Point to String (ASCII) on F28027 in flash memory doesn't work

Recommended Posts


I am to beginning to learn Piccolo F28027.

I am to trying to make a transformation from fixed point to string(ASC2) in the F28027.

I used the example file 3386IQmath_Quickstart as below:


char buffer[30];

_iq x1 = _IQ(1.125);
_iq1 x2 = _IQ1(-6789546.3);
_iq14 x3 = _IQ14(-432.6778);
_iq30 x4 = _IQ30(1.127860L);
int error;
// Global_Q
error = _IQtoa(buffer, "%10.10f", x1);
// IQ1 error = _IQ1toa(buffer, "%8.2f", x2);
// IQ14
error = _IQ14toa(buffer, "%6.6f", x3);
// IQ30
error = _IQ30toa(buffer, "%11.12f", x4);


I discovered that this example works when using the ram memory, however

when using the flash memory doesn't work. The transformation to string is incorrect, with error. How i should configure the flash memory in this case?


Best regards.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...