DSC MDBT MC56F83000-EVK QUESTIONS

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

DSC MDBT MC56F83000-EVK QUESTIONS

ソリューションへジャンプ
3,900件の閲覧回数
juneanthony
Contributor I

@mariuslucianand,I installed trial of MATLAB and NXP MDBT for MC56F83000-EVK. 

But when I opened a PWM example on simulink, there are lots of errors.

And the PWM block is labelled as "???"

Even if I chose a PWM Block, it still has errors

How can I solve this issue?

0 件の賞賛
返信
1 解決策
3,796件の閲覧回数
stefancinipeanu
NXP Employee
NXP Employee

Hello, @juneanthony 

This problem looks like a bug on our side. Sorry for this inconvenience. To solve this issue, open the mex MCUXpresso ConfigTools file attached to the model and go to PIT configuration.

stefancinipeanu_0-1654152193190.pngstefancinipeanu_1-1654152217853.png

 

There you will see an error regarding to the timer Modulo value. Change that value to 1, as shown in the picture below. 

stefancinipeanu_2-1654152288980.png

Save this configuration file, go to Simulink, delete all files in the current folder without the mdl and mex files and then build your model again. It should build with no errors now. 

Best regards,

Stefan.

元の投稿で解決策を見る

11 返答(返信)
3,734件の閲覧回数
juneanthony
Contributor I

hi @stefancinipeanu and @mariuslucianand its me again. the fixed for the STEP TIMER issue

that requires PIT modulo to be "1" works with the PWM center aligned example. 

However when I save the work and reopen it, the code no longer builds and deploys on the hardware

juneanthony_0-1654242281536.png

0 件の賞賛
返信
3,725件の閲覧回数
stefancinipeanu
NXP Employee
NXP Employee

Hi, @juneanthony 

Could you send me your model? It looks like some data store memory variables no longer exist in your model.

Regards,

Stefan.

0 件の賞賛
返信
3,815件の閲覧回数
juneanthony
Contributor I

@stefancinipeanu ,

Update: The Failure in set_default_target(0) error  disappeared after closing and reopening MATLAB and I am able to open the example.

When I try to build and deploy, this error happens. 

tick_counter = (uint16_t)(STEP_TIMER_COUNTER_CLK_SOURCE_FREQ_HZ * gModelBaseRate); >undefined identifier 'STEP_TIMER_COUNTER_CLK_SOURCE_FREQ_HZ'

juneanthony_0-1654166055473.png

 

 

0 件の賞賛
返信
3,797件の閲覧回数
stefancinipeanu
NXP Employee
NXP Employee

Hello, @juneanthony 

This problem looks like a bug on our side. Sorry for this inconvenience. To solve this issue, open the mex MCUXpresso ConfigTools file attached to the model and go to PIT configuration.

stefancinipeanu_0-1654152193190.pngstefancinipeanu_1-1654152217853.png

 

There you will see an error regarding to the timer Modulo value. Change that value to 1, as shown in the picture below. 

stefancinipeanu_2-1654152288980.png

Save this configuration file, go to Simulink, delete all files in the current folder without the mdl and mex files and then build your model again. It should build with no errors now. 

Best regards,

Stefan.

3,779件の閲覧回数
juneanthony
Contributor I

Thank you very much @stefancinipeanu. I hope you can give me a user manual explaining each blocks in MDBT.

I will explore more.

0 件の賞賛
返信
3,769件の閲覧回数
stefancinipeanu
NXP Employee
NXP Employee

Unfortunately, there is no user manual for each MBDT DSC block, but when you double-click on a block, you should find a Help button which will open a MATLAB documentation for that specific block. You should find information about every parameter of that block, every input and output port and multiple examples on how to use it in simple applications. Also, keep in mind that every peripheral block was developed on the basis of MCUXpresso SDK v2.7.3 for DSC. You should find in every help documentation block which SDK API functions were used and also the link for the SDK official documentation.

Hope this helps.

Regards,

Stefan.

0 件の賞賛
返信
3,881件の閲覧回数
stefancinipeanu
NXP Employee
NXP Employee

Hi, @juneanthony 

Usually, this issue appears if the toolbox files are not included in the MATLAB path. Does this problem reproduce just for the PWM blocks or for any other NXP MBDT DSC toolbox block? Did you run the mbd_dsc_path.m script?

stefancinipeanu_0-1653554891050.png

If you are using a MATLAB trial, You might have not access to other Add-Ons that NXP MBDT DSC relay on, for example Embedded Coder for ARM Cortex-M Processors. Even if DSC is not an ARM based target, the custom device registration is using MATLAB API that comes with the Embedded Coder for ARM Cortex-M add-on.

Regards,

Stefan.

0 件の賞賛
返信
3,871件の閲覧回数
juneanthony
Contributor I

hi @stefancinipeanu, almost all peripherals are not working. also where can i locate this mbd_dsc_path.m. I am currently asking MATLAB to also give me trial version of Embedded Coder for ARM Cortex-M add-on to make this work. I hope to use the MDBT for a SMPS project

0 件の賞賛
返信
3,864件の閲覧回数
stefancinipeanu
NXP Employee
NXP Employee

Hi, @juneanthony 

To open the NXP MBDToolbox for DSC installation folder, the simplest way is to go on Add-Ons tab -> Manage Add-Ons and it will pop-up a window with all your installed toolboxes. You should find the NXP MBDToolbox for DSC, as shown in the below picture.

stefancinipeanu_0-1653560149841.png

stefancinipeanu_1-1653560287115.png

Click on those 3 dots from the right side of the toolbox and then click Open Folder. Now, the current folder will be the toolbox installation foler.

Regards,

Stefan.

 

 

0 件の賞賛
返信
3,821件の閲覧回数
juneanthony
Contributor I

@stefancinipeanu , i have the matlab coder, embedded coder, simulink coder and the arm cortex-m support already installed but the same error still persists.

juneanthony_0-1654058211516.png

juneanthony_1-1654058231719.png

What seems to be missing?

 

 

0 件の賞賛
返信
3,817件の閲覧回数
juneanthony
Contributor I

Here is another error I get.

Failure in set_default_target(0) : The second argument passed to 'setTargetHardware' has an invalid value. The second argument must be 'None' or the name of a registered hardware board. To register a hardware board, install its support package.
Failure in set_default_target(0) : The second argument passed to 'setTargetHardware' has an invalid value. The second argument must be 'None' or the name of a registered hardware board. To register a hardware board, install its support package.

0 件の賞賛
返信