Why my model is not running properly on my raspberry pi ? (PIGPIO.h test)

4 visualizzazioni (ultimi 30 giorni)
Hi,
I have build the attached model to run on the raspberry pi. The model contain a S-function builder to try the library PigPio. The aim is to modify the frequency up to 20 kHz, by modifying the clock and the frequency. please refer to : http://abyz.me.uk/rpi/pigpio/cif.html#gpioCfgClock and http://abyz.me.uk/rpi/pigpio/cif.html#gpioSetPWMfrequency
The update code is link to the lower display, to display. The output just return:
out[0] = gpioGetPWMdutycycle(pin[0]);
Now I am using tune and monitor, the code compile and start running, but the time is remaining to 0 :o
After 5 seconds, the program stop, and I get this message in the command window:
Warning: Error returned by XCP master: XCP Master internal error: No slave connected
> In coder.internal.xcp.extmode_xcp_open
In coder.internal.xcp.extmode_xcp_open
In coder.internal.xcp.extmode_xcp_open
In ext_open_intrf>i_UserTargetStopped (line 1038)
In ext_open_intrf (line 492)
Warning: XCP Master internal error: Busy(0) or no timeout(2) for 252
> In coder.internal.xcp.extmode_xcp_open
In coder.internal.xcp.extmode_xcp_open
In ext_open_intrf>i_UserTargetStopped (line 1038)
In ext_open_intrf (line 492)
>>
Does anyone know why i get this?
  1 Commento
Sylvain
Sylvain il 23 Dic 2020
After digging a bit, the code compile and time is running now, using a default PWM block. However, the clock is not updated. The PWM block seems to call the gpioInitialise() from pigpio.h. Can Mathworks confirm this is the library they are using ???
This looks really odd.

Accedi per commentare.

Risposte (0)

Categorie

Scopri di più su Raspberry Pi Hardware in Help Center e File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by