cancel
Showing results for 
Search instead for 
Did you mean: 

osalThreadDelayMilliseconds not working in spc584-dis

LBona.2
Associate II

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.

This discussion has been locked for participation. If you have a question, please start a new topic in order to ask your question
1 ACCEPTED SOLUTION

Accepted Solutions
Erwan YVIN
ST Employee

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

View solution in original post

2 REPLIES 2
Erwan YVIN
ST Employee

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

LBona.2
Associate II

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);
	}
}