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

3 vues (au cours des 30 derniers jours)
Sylvain
Sylvain le 23 Déc 2020
Commenté : Sylvain le 23 Déc 2020
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 commentaire
Sylvain
Sylvain le 23 Déc 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.

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Raspberry Pi Hardware dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by