Other Parts Discussed in Thread: TMS320F28335
Hi,
TMS320F28335, CCS3.3, code generation tools 5.2.4. Using floating point support.
This might be something really basic but my code does not work if I link the stack to page 0, RAMM0 and then the code to page 1 (.text to RAML4-7). A function is called with parameters on stack. OK, works. Now inside this function, I call sscanf() with this same function:
void VAT3_f_switch(char* Parameters)
{
int freq_temp;
float temp1;
int ParamCount=0;
char msg[6];
ParamCount=sscanf(Parameters,"%d",&freq_temp);
I can see the "Parameters" got OK so far, inside the VAT3_f_switch(), but the sscanf does not work with the "Parameters". This does not occur if I link the stack to page 1 also, or the .text to page 0 together with the stack.
I must keep the .text in the page 1. The whereabouts of .stack is irrelevant to me. But the idea that I can't link senctions and stack where ever I want drives me crazy.
What am I doing wrong?
Thanks in advance,
Jormaporo