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

4 ビュー (過去 30 日間)
Sylvain
Sylvain 2020 年 12 月 23 日
コメント済み: Sylvain 2020 年 12 月 23 日
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 Center および File ExchangeRaspberry Pi Hardware についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by