2020-04-22 07:00 AM
hi during the debug of my program with UDE it gets stuck on osalThreadDelayMilliseconds i found in the forum that the problem may be a PIT configuration problem but i don't know how to set it.
Solved! Go to Solution.
2020-05-05 05:39 AM
Hello ,
Could you send us the PIT configuration ?
I recommend you to take SPC584Bxx_RLA PIT Test Application for Discovery as example
Best Regards
Erwan
2020-05-05 05:39 AM
Hello ,
Could you send us the PIT configuration ?
I recommend you to take SPC584Bxx_RLA PIT Test Application for Discovery as example
Best Regards
Erwan
2020-05-06 06:31 AM
i didn't set any particular PIT configuration. I only wanted to put a delay for slower the execution of a function during debugging.
#include "components.h"
#include <math.h>
#include <stdlib.h>
float u_alfa = -1000;
float u_beta = -10;
float Vdc = 600;
float fsw = 17000;
char gates[6];
void spaceVectorMod(float u_alfa,float u_beta, float Vdc, float fsw, char * gates, float tzero);
int main(void) {
/* Initialization of all the imported components in the order specified in
the application wizard. The function is generated automatically.*/
componentsInit();
float tzero=0;
while(true){
spaceVectorMod(u_alfa, u_beta, Vdc, fsw, gates, tzero);
osalThreadDelayMilliseconds(300);
}
}