Hi
I am using f28335 ccs 3.3 and bios 5.33.06 @150MHZ with flash wait state 5,5,8. i am running motor control code from ti (VECTOR CONTROL) with some customization at application level only. I can see my PWM running from Flash once its downloaded to flash from ccs after hitting the run button. But as soon as i do POWER ON RESET my pwm wont come out. my code also work ok with RAM even after POR.
I see that once sine or cosine calculation function is called from park calculation function in park .c , my code goes to a fxn_f selfloop .If i comment the Park and inverse park calculation function call in pwm ISR i get 50% pwm output on scope. this shows that there is some thing wrong with park calculation once they go into flash and power on reset is done. Also then instead of orginal park calculation funciton i have called my own function which is just a copy of park calculation function but 2 lines are commented that is calculation of cosine and sin , again it gives pwm output 50% even after POR from Flash(.of course it is ok just for testing as long as motor is not running you have to calculate park with sin and cosine calculation of angle for running motor from pwm .) . what i studied is that sin and cosine use iqmath look table stored in boot rom i dont know if it has to do some thing with POR while code is running from flash .
Please help me to solve this
Shakeel