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

조회 수: 3 (최근 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 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