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

3 次查看(过去 30 天)
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 个评论
Sylvain
Sylvain 2020-12-23
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.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Raspberry Pi Hardware 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by