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.

LAUNCHXL-F28069M: LaunchXL-F28069M Mathematical incongruity

Part Number: LAUNCHXL-F28069M
Other Parts Discussed in Thread: CONTROLSUITE

Hi, as i said in past posts i am working with a Lauch F28069 recently and im having some weird problems. i am developing a power inverter with a sinusoidal patter of commutation, in the code i need to include the math.h file. but when im using the sin function, it gives me values that not correspond with the sin function. i thought it could be a problem with the source code of the library, but then i tested de function in a F28027 that i was working before and there the sin function works perfeclty and the values offered by this are correct. why is that? i might have to do another configuration? there is any explanation for this? (lately almost of all of my problems are because im missing some flash configuration). 

All helps are welcome. Regards.

Eliomar Conde.

  • Hi Eliomar,

    Did you refer to "flash_f28069" example in controlSuite for proper flash configurations?

    Regards,
    Gautam
  • No, why? i should use that configuration in that example?
  • i found the example that you said gautam, the "flash_f28069" example, in this example i understand is pretty much the same of the "Epwm timer interrupts" example, with the difference of now the epwm1 and epwm2 interrupts are running on RAM. I follow the flash configuration and the only thing i have different is the "InitFlash" function, its says in the program that the function must reside on RAM but when i go to the source code of the function in the "SysCtlr.c" file its says me clearly that this function MUST be executed out of RAM. it is a conflict in here no?

    then i use the InitFlash function to configure the flash in my program but im still gettin the mathematicall incongruity that i mentioned, its seems weird to me that incongruity could be a flash configuration, dont you thing the same? could be another thing of the proccesor? Regards
  • Hi Eliomar,

    The above example executes from Flash. Can you share the error details that you get with your code?

    Regards,
    Gautam