PWM block not working

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

PWM block not working

1,922件の閲覧回数
kabraham_abin
Contributor I

Hi
The center aligned PWM example for 1024 board doesn't seems to work. There is no response in the free master either.  Please find attached example project.

 I have posted a question related to this and couldn't get any response.

Another post - . @stefancinipeanu Could you please check, Is it be a possible bug? 

0 件の賞賛
返信
5 返答(返信)

1,795件の閲覧回数
kabraham_abin
Contributor I

Hi Stefan

Could you please confirm that the toolbox works with MATLAB R2021b. I am using MATLAB R2021b.
Kind regards,

Abin Abraham

0 件の賞賛
返信

1,764件の閲覧回数
stefancinipeanu
NXP Employee
NXP Employee

Hi, @kabraham_abin 

I still cannot reproduce the error. The example is also working on MATLAB R2021b on my side, as shown below.

stefancinipeanu_0-1673434389018.png

 

What revision of the IMXRT1024 evaluation kit are you using? Also, did you use the OpenSDA to download the application on the board? Could you please be more specific about the error that you encounter? Does Simulink throw any error when building the model? Is the download process successful?

Regards,

Stefan.

0 件の賞賛
返信

1,694件の閲覧回数
kabraham_abin
Contributor I

The revision of the board is 700-47106 REV A (SCH-47106 REV B2).
Yes, I use open SDA to download the application on the board.
I cannot see a graph like you are showing above. the values are always zero on the duty cycle.
The model was successfully build and loaded to the board and I reset the board successfully.

0 件の賞賛
返信

1,806件の閲覧回数
stefancinipeanu
NXP Employee
NXP Employee

Hello, @kabraham_abin 

I apologize for our late response but in the last few weeks we were involved in another projects and releases.

I have tried to run the PWM center aligned example for IMXRT1024 platform from the MBD toolbox and I was not able replicate the issue that you have encountered. Both PWM examples (center aligned and edge aligned) worked as described in the readme file and I was also able to see the pwm signals on the oscilloscope screen. The FreeMASTER project is working as well.

I have installed the latest version of the MBD IMXRT toolbox(v1.3.0) on MATLAB R2020b. Perhaps it`s a problem for the toolbox with newer MATLAB versions. Could you tell me which MATLAB are you using?

Regards,

Stefan.

0 件の賞賛
返信

1,852件の閲覧回数
kabraham_abin
Contributor I

No. I didn't do any modification to example. So I guess the values are between 0 and 255.  I just followed the readme file and try to observe the response.

0 件の賞賛
返信