Re: i.MX RT - How To

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Re: i.MX RT - How To

1,967 Views
Leon_Li1
NXP Employee
NXP Employee

Hi,

I have installed MBDT successfully, I can generated code use the default folder path.

But if I move the gpio_polling example to a new folder, I cant build it ok.

The message as below:

Build Summary 

1
Elapsed: 0.4 sec
Top model targets built: Model Action Rebuild Reason ====================================================================================== evkmimxrt1060_gpio_polling Failed Code generation information file does not exist. 0 of 1 models built (0 models already up to date) Build duration: 0h 0m 3.639s
文件标识符无效。使用 fopen 生成有效的文件标识符。
 
Matlab version is 2021a.
MBDT version is 1.2.0
0 Kudos
Reply
4 Replies

1,936 Views
Leon_Li1
NXP Employee
NXP Employee

Hi Alexandra,

I have a new qustion.

When I built the mc_pmsm example, the report massage as below:

MotorC_0-1629978529718.png

If I use Matlab 2020a, this example can be built successfully,but matlab 2021a cant.

0 Kudos
Reply

1,899 Views
nxa11767
NXP Employee
NXP Employee

Hi @Leon_Li1 ,

We have a fix for the build error on 2021a. 

Please find the attached zip file - it contains a .tcl file. Unzip it and copy the file to: RTCESL_imxrt\bam\AMCLIB\bam_a32fltfltflt\ and overwrite the existing one: AMCLIB_PMSMBemfObsrvDQ_SF_A32fff.tlc.

 

Best regards,

Alexandra

0 Kudos
Reply

1,940 Views
Leon_Li1
NXP Employee
NXP Employee

It is ok, thanks for your help.

0 Kudos
Reply

1,954 Views
nxa11767
NXP Employee
NXP Employee

Hi @Leon_Li1 ,

Did you extended error look like below?

nxa11767_0-1629966558968.png

This is caused by the initial model being created with an older version of matlab, and some things changed in the data storage options.

To fix the issue click on a small icon in the left lower corner, to open the model perspectives:

nxa11767_1-1629967151654.png

Enter the Code perspective, and in Data storage type, fix the error for the 'A' storage variable:

nxa11767_2-1629967399086.png

 

Hope this helps,

Alexandra

0 Kudos
Reply