cancel
Showing results for 
Search instead for 
Did you mean: 

Systick time missing

SRedd.5
Senior III

I am running the motor control workbench B-G431B-ESC1 board. The systick fires at every 2K frequency as per the user manual and the waveform matches when i toggle, but the problem is sometimes it misses as shown

SRedd5_0-1689998582490.png

I want to debug and find out why it misses those timings in between. Please suggest how do i find out? I am also running CAN in parallel at 500KBPS.

23 REPLIES 23

I have tried this once but seem to be complete misbehavior, i will try again.

Johi
Senior III

See below example for 1 Hz, you should be able to to take it from there.

The problem is it is motor control application so i use all the PWM channels, hence i cannot use the method you suggested for driving the GPIO's.

SRedd.5
Senior III

I modified the algorithm of CAN and behavior is ok now, i mean i transmit 3 messages at one time, after 1 sec another 3 messages with total of 12 messages

1st sec -> 3messages

2nd sec -> 3 messages

3rd sec -> 3 messages

4th sec -> 3 messages

repeat like this.