Cannot run i.MXRT1060 examples from the NXP MBDToolbox IMXRT1xxx (Mathwoks/Simulink)

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

Cannot run i.MXRT1060 examples from the NXP MBDToolbox IMXRT1xxx (Mathwoks/Simulink)

Jump to solution
2,221 Views
scocmr
Contributor II

Hi,

I try to run examples provided with the NXP MBDToolbox IMXRT1xxx from my Matlab/Simulink application. For that, I use an evaluation kit MIMXRT1064-EVK.

I have strictly  followed the tutorial provided by NXP (Model Based Design Toolbox IMXRT 1xxx Series Quick Start Guide), but I have errors and I cannot complete the tutorial.

First, I have checked the HW/SW compliance and everything is OK :

  • OS : Windows 10 64 bits
  • Mathworks (Matlab/Simulink/xxx coder add-ons) : version 2020b
  • Evaluation Kit : MIMXRT1064-EVK

Here are my Mathworks add-on list :

Adds-on.PNG

 

When I try to build simulink model "evkmimxrt1060_gpio_interrupt" from the NXP examples, I meet some strange errors like that :

=== Build (Elapsed: 2 sec) ===
    ### Starting build procedure for: evkmimxrt1060_gpio_interrupt
    ### Generating code and artifacts to 'Model specific' folder structure
    ### Generating code into build folder: C:\Users\sco\AppData\Roaming\MathWorks\MATLAB Add-Ons\Toolboxes\NXP_MBDToolbox_IMXRT1xxx\IMXRT_Examples\imxrt106x\gpio\gpio_interrupt\evkmimxrt1060_gpio_interrupt_ert_rtw
    Failure in datetime.datetime(647) : Could not recognize the date/time format of '11-oct.-2020 21:38:18'. You can specify a format using the 'InputFormat' parameter. If the date/time text contains day, month, or time zone names in a language foreign to the 'en_US' locale, those might not be recognized. You can specify a different locale using the 'Locale' parameter.
    Failure in datetime.datetime(647) : Could not recognize the date/time format of '06-oct.-2020 21:38:24'. You can specify a format using the 'InputFormat' parameter. If the date/time text contains day, month, or time zone names in a language foreign to the 'en_US' locale, those might not be recognized. You can specify a different locale using the 'Locale' parameter.
    Failure in mbd_imxrt_get_peripheral_mex_settings(0) : Reference to non-existent field 'configuration'.
    Failure in mbd_imxrt_gpio_get_configuration_info(0) : Output argument "periph_settings" (and maybe others) not assigned during call to "mbd_imxrt_get_peripheral_mex_settings".
    Failure in datetime.datetime(647) : Could not recognize the date/time format of '11-oct.-2020 21:38:18'. You can specify a format using the 'InputFormat' parameter. If the date/time text contains day, month, or time zone names in a language foreign to the 'en_US' locale, those might not be recognized. You can specify a different locale using the 'Locale' parameter.
    Failure in datetime.datetime(647) : Could not recognize the date/time format of '06-oct.-2020 21:38:24'. You can specify a format using the 'InputFormat' parameter. If the date/time text contains day, month, or time zone names in a language foreign to the 'en_US' locale, those might not be recognized. You can specify a different locale using the 'Locale' parameter.
    Failure in mbd_imxrt_get_peripheral_mex_settings(0) : Reference to non-existent field 'configuration'.
    Failure in mbd_imxrt_lpuart_blocks_init(0) : Output argument "periph_settings" (and maybe others) not assigned during call to "mbd_imxrt_get_peripheral_mex_settings".
    Failure in mbd_imxrt_get_peripheral_mex_settings(0) : Reference to non-existent field 'configuration'.
    Failure in mbd_imxrt_lpuart_block_functionality(0) : Output argument "periph_settings" (and maybe others) not assigned during call to "mbd_imxrt_get_peripheral_mex_settings".
    Failure in datetime.datetime(647) : Could not recognize the date/time format of '11-oct.-2020 21:38:18'. You can specify a format using the 'InputFormat' parameter. If the date/time text contains day, month, or time zone names in a language foreign to the 'en_US' locale, those might not be recognized. You can specify a different locale using the 'Locale' parameter.
    Failure in datetime.datetime(647) : Could not recognize the date/time format of '06-oct.-2020 21:38:24'. You can specify a format using the 'InputFormat' parameter. If the date/time text contains day, month, or time zone names in a language foreign to the 'en_US' locale, those might not be recognized. You can specify a different locale using the 'Locale' parameter.
    Failure in mbd_imxrt_get_peripheral_mex_settings(0) : Reference to non-existent field 'configuration'.
    Failure in mbd_imxrt_gpio_instance_cbk(0) : Output argument "periph_settings" (and maybe others) not assigned during call to "mbd_imxrt_get_peripheral_mex_settings".
    Failure in datetime.datetime(647) : Could not recognize the date/time format of '11-oct.-2020 21:38:18'. You can specify a format using the 'InputFormat' parameter. If the date/time text contains day, month, or time zone names in a language foreign to the 'en_US' locale, those might not be recognized. You can specify a different locale using the 'Locale' parameter.
    Failure in datetime.datetime(647) : Could not recognize the date/time format of '06-oct.-2020 21:38:24'. You can specify a format using the 'InputFormat' parameter. If the date/time text contains day, month, or time zone names in a language foreign to the 'en_US' locale, those might not be recognized. You can specify a different locale using the 'Locale' parameter.
    Failure in mbd_imxrt_get_peripheral_mex_settings(0) : Reference to non-existent field 'configuration'.
    Failure in mbd_imxrt_gpio_get_configuration_info(0) : Output argument "periph_settings" (and maybe others) not assigned during call to "mbd_imxrt_get_peripheral_mex_settings".
    Failure in datetime.datetime(647) : Could not recognize the date/time format of '11-oct.-2020 21:38:18'. You can specify a format using the 'InputFormat' parameter. If the date/time text contains day, month, or time zone names in a language foreign to the 'en_US' locale, those might not be recognized. You can specify a different locale using the 'Locale' parameter.
    Failure in datetime.datetime(647) : Could not recognize the date/time format of '06-oct.-2020 21:38:24'. You can specify a format using the 'InputFormat' parameter. If the date/time text contains day, month, or time zone names in a language foreign to the 'en_US' locale, those might not be recognized. You can specify a different locale using the 'Locale' parameter.
    Failure in mbd_imxrt_get_peripheral_mex_settings(0) : Reference to non-existent field 'configuration'.
    Failure in mbd_imxrt_lpuart_instance_cbk(0) : Output argument "periph_settings" (and maybe others) not assigned during call to "mbd_imxrt_get_peripheral_mex_settings".
    Failure in datetime.datetime(647) : Could not recognize the date/time format of '11-oct.-2020 21:38:18'. You can specify a format using the 'InputFormat' parameter. If the date/time text contains day, month, or time zone names in a language foreign to the 'en_US' locale, those might not be recognized. You can specify a different locale using the 'Locale' parameter.
    Failure in datetime.datetime(647) : Could not recognize the date/time format of '06-oct.-2020 21:38:24'. You can specify a format using the 'InputFormat' parameter. If the date/time text contains day, month, or time zone names in a language foreign to the 'en_US' locale, those might not be recognized. You can specify a different locale using the 'Locale' parameter.
    Failure in mbd_imxrt_get_peripheral_mex_settings(0) : Reference to non-existent field 'configuration'.
    Failure in mbd_imxrt_lpuart_get_configuration_info(0) : Output argument "periph_settings" (and maybe others) not assigned during call to "mbd_imxrt_get_peripheral_mex_settings".
    Failure in datetime.datetime(647) : Could not recognize the date/time format of '11-oct.-2020 21:38:18'. You can specify a format using the 'InputFormat' parameter. If the date/time text contains day, month, or time zone names in a language foreign to the 'en_US' locale, those might not be recognized. You can specify a different locale using the 'Locale' parameter.
    Failure in datetime.datetime(647) : Could not recognize the date/time format of '06-oct.-2020 21:38:24'. You can specify a format using the 'InputFormat' parameter. If the date/time text contains day, month, or time zone names in a language foreign to the 'en_US' locale, those might not be recognized. You can specify a different locale using the 'Locale' parameter.
    Failure in mbd_imxrt_get_peripheral_mex_settings(0) : Reference to non-existent field 'configuration'.
    Failure in mbd_imxrt_lpuart_blocks_init(0) : Output argument "periph_settings" (and maybe others) not assigned during call to "mbd_imxrt_get_peripheral_mex_settings".
    Failure in mbd_imxrt_get_peripheral_mex_settings(0) : Reference to non-existent field 'configuration'.
    Failure in mbd_imxrt_lpuart_block_functionality(0) : Output argument "periph_settings" (and maybe others) not assigned during call to "mbd_imxrt_get_peripheral_mex_settings".
    Failure in datetime.datetime(647) : Could not recognize the date/time format of '11-oct.-2020 21:38:18'. You can specify a format using the 'InputFormat' parameter. If the date/time text contains day, month, or time zone names in a language foreign to the 'en_US' locale, those might not be recognized. You can specify a different locale using the 'Locale' parameter.
    Failure in datetime.datetime(647) : Could not recognize the date/time format of '06-oct.-2020 21:38:24'. You can specify a format using the 'InputFormat' parameter. If the date/time text contains day, month, or time zone names in a language foreign to the 'en_US' locale, those might not be recognized. You can specify a different locale using the 'Locale' parameter.
    Failure in mbd_imxrt_get_peripheral_mex_settings(0) : Reference to non-existent field 'configuration'.
    Failure in mbd_imxrt_lpuart_blocks_init(0) : Output argument "periph_settings" (and maybe others) not assigned during call to "mbd_imxrt_get_peripheral_mex_settings".
    Failure in mbd_imxrt_get_peripheral_mex_settings(0) : Reference to non-existent field 'configuration'.
    Failure in mbd_imxrt_lpuart_block_functionality(0) : Output argument "periph_settings" (and maybe others) not assigned during call to "mbd_imxrt_get_peripheral_mex_settings".
    Failure in mbd_imxrt_lpuart_text_cbk(0) : Error in 'evkmimxrt1060_gpio_interrupt/GPIO 5 Handler/LPUART Data Transfer': Failed to evaluate mask initialization commands.
    Failure in datetime.datetime(647) : Could not recognize the date/time format of '11-oct.-2020 21:38:18'. You can specify a format using the 'InputFormat' parameter. If the date/time text contains day, month, or time zone names in a language foreign to the 'en_US' locale, those might not be recognized. You can specify a different locale using the 'Locale' parameter.
    Failure in datetime.datetime(647) : Could not recognize the date/time format of '06-oct.-2020 21:38:24'. You can specify a format using the 'InputFormat' parameter. If the date/time text contains day, month, or time zone names in a language foreign to the 'en_US' locale, those might not be recognized. You can specify a different locale using the 'Locale' parameter.
    Failure in mbd_imxrt_get_peripheral_mex_settings(0) : Reference to non-existent field 'configuration'.
    Failure in mbd_imxrt_lpuart_blocks_init(0) : Output argument "periph_settings" (and maybe others) not assigned during call to "mbd_imxrt_get_peripheral_mex_settings".
    Failure in mbd_imxrt_get_peripheral_mex_settings(0) : Reference to non-existent field 'configuration'.
    Failure in mbd_imxrt_lpuart_block_functionality(0) : Output argument "periph_settings" (and maybe others) not assigned during call to "mbd_imxrt_get_peripheral_mex_settings".
    Failure in datetime.datetime(647) : Could not recognize the date/time format of '05-oct.-2020 17:47:48'. You can specify a format using the 'InputFormat' parameter. If the date/time text contains day, month, or time zone names in a language foreign to the 'en_US' locale, those might not be recognized. You can specify a different locale using the 'Locale' parameter.
    Failure in mbd_imxrt_isr_get_handlers_list(0) : Output argument "isrStruct" (and maybe others) not assigned during call to "mbd_imxrt_isr_get_xml_settings".
    Failure in datetime.datetime(647) : Could not recognize the date/time format of '05-oct.-2020 17:47:48'. You can specify a format using the 'InputFormat' parameter. If the date/time text contains day, month, or time zone names in a language foreign to the 'en_US' locale, those might not be recognized. You can specify a different locale using the 'Locale' parameter.
    Failure in mbd_imxrt_isr_get_handler_properties(0) : Output argument "isrStruct" (and maybe others) not assigned during call to "mbd_imxrt_isr_get_xml_settings".
    Failure in datetime.datetime(647) : Could not recognize the date/time format of '05-oct.-2020 17:47:48'. You can specify a format using the 'InputFormat' parameter. If the date/time text contains day, month, or time zone names in a language foreign to the 'en_US' locale, those might not be recognized. You can specify a different locale using the 'Locale' parameter.
    Failure in mbd_imxrt_isr_get_peripherals_list(0) : Output argument "isrStruct" (and maybe others) not assigned during call to "mbd_imxrt_isr_get_xml_settings".
    Failure in datetime.datetime(647) : Could not recognize the date/time format of '05-oct.-2020 17:47:48'. You can specify a format using the 'InputFormat' parameter. If the date/time text contains day, month, or time zone names in a language foreign to the 'en_US' locale, those might not be recognized. You can specify a different locale using the 'Locale' parameter.
    Failure in mbd_imxrt_isr_get_handlers_list(0) : Output argument "isrStruct" (and maybe others) not assigned during call to "mbd_imxrt_isr_get_xml_settings".
    Failure in datetime.datetime(647) : Could not recognize the date/time format of '05-oct.-2020 17:47:48'. You can specify a format using the 'InputFormat' parameter. If the date/time text contains day, month, or time zone names in a language foreign to the 'en_US' locale, those might not be recognized. You can specify a different locale using the 'Locale' parameter.
    Failure in mbd_imxrt_isr_get_handler_properties(0) : Output argument "isrStruct" (and maybe others) not assigned during call to "mbd_imxrt_isr_get_xml_settings".
    Failure in datetime.datetime(647) : Could not recognize the date/time format of '05-oct.-2020 17:47:48'. You can specify a format using the 'InputFormat' parameter. If the date/time text contains day, month, or time zone names in a language foreign to the 'en_US' locale, those might not be recognized. You can specify a different locale using the 'Locale' parameter.
    Failure in mbd_imxrt_isr_get_handler_properties(0) : Output argument "isrStruct" (and maybe others) not assigned during call to "mbd_imxrt_isr_get_xml_settings".
    Failure in datetime.datetime(647) : Could not recognize the date/time format of '05-oct.-2020 17:47:48'. You can specify a format using the 'InputFormat' parameter. If the date/time text contains day, month, or time zone names in a language foreign to the 'en_US' locale, those might not be recognized. You can specify a different locale using the 'Locale' parameter.
    Failure in mbd_imxrt_isr_get_handler_properties(0) : Output argument "isrStruct" (and maybe others) not assigned during call to "mbd_imxrt_isr_get_xml_settings".
    Failure in datetime.datetime(647) : Could not recognize the date/time format of '05-oct.-2020 17:47:48'. You can specify a format using the 'InputFormat' parameter. If the date/time text contains day, month, or time zone names in a language foreign to the 'en_US' locale, those might not be recognized. You can specify a different locale using the 'Locale' parameter.
    Failure in mbd_imxrt_isr_get_peripherals_list(0) : Output argument "isrStruct" (and maybe others) not assigned during call to "mbd_imxrt_isr_get_xml_settings".
    Failure in datetime.datetime(647) : Could not recognize the date/time format of '05-oct.-2020 17:47:48'. You can specify a format using the 'InputFormat' parameter. If the date/time text contains day, month, or time zone names in a language foreign to the 'en_US' locale, those might not be recognized. You can specify a different locale using the 'Locale' parameter.
    Failure in mbd_imxrt_isr_get_handlers_list(0) : Output argument "isrStruct" (and maybe others) not assigned during call to "mbd_imxrt_isr_get_xml_settings".
    Failure in datetime.datetime(647) : Could not recognize the date/time format of '05-oct.-2020 17:47:48'. You can specify a format using the 'InputFormat' parameter. If the date/time text contains day, month, or time zone names in a language foreign to the 'en_US' locale, those might not be recognized. You can specify a different locale using the 'Locale' parameter.
    Failure in mbd_imxrt_isr_get_handler_properties(0) : Output argument "isrStruct" (and maybe others) not assigned during call to "mbd_imxrt_isr_get_xml_settings".
    Failure in datetime.datetime(647) : Could not recognize the date/time format of '05-oct.-2020 17:47:48'. You can specify a format using the 'InputFormat' parameter. If the date/time text contains day, month, or time zone names in a language foreign to the 'en_US' locale, those might not be recognized. You can specify a different locale using the 'Locale' parameter.
    Failure in mbd_imxrt_isr_get_handler_properties(0) : Output argument "isrStruct" (and maybe others) not assigned during call to "mbd_imxrt_isr_get_xml_settings".
    Failure in datetime.datetime(647) : Could not recognize the date/time format of '05-oct.-2020 17:47:48'. You can specify a format using the 'InputFormat' parameter. If the date/time text contains day, month, or time zone names in a language foreign to the 'en_US' locale, those might not be recognized. You can specify a different locale using the 'Locale' parameter.
    Failure in mbd_imxrt_isr_get_peripherals_list(0) : Output argument "isrStruct" (and maybe others) not assigned during call to "mbd_imxrt_isr_get_xml_settings".
    Failure in datetime.datetime(647) : Could not recognize the date/time format of '05-oct.-2020 17:47:48'. You can specify a format using the 'InputFormat' parameter. If the date/time text contains day, month, or time zone names in a language foreign to the 'en_US' locale, those might not be recognized. You can specify a different locale using the 'Locale' parameter.
    Failure in mbd_imxrt_isr_get_handlers_list(0) : Output argument "isrStruct" (and maybe others) not assigned during call to "mbd_imxrt_isr_get_xml_settings".
    Failure in datetime.datetime(647) : Could not recognize the date/time format of '05-oct.-2020 17:47:48'. You can specify a format using the 'InputFormat' parameter. If the date/time text contains day, month, or time zone names in a language foreign to the 'en_US' locale, those might not be recognized. You can specify a different locale using the 'Locale' parameter.
    Failure in mbd_imxrt_isr_get_handler_properties(0) : Output argument "isrStruct" (and maybe others) not assigned during call to "mbd_imxrt_isr_get_xml_settings".
    Failure in datetime.datetime(647) : Could not recognize the date/time format of '05-oct.-2020 17:47:48'. You can specify a format using the 'InputFormat' parameter. If the date/time text contains day, month, or time zone names in a language foreign to the 'en_US' locale, those might not be recognized. You can specify a different locale using the 'Locale' parameter.
    Failure in mbd_imxrt_isr_get_handler_properties(0) : Output argument "isrStruct" (and maybe others) not assigned during call to "mbd_imxrt_isr_get_xml_settings".
    ### Build procedure for evkmimxrt1060_gpio_interrupt aborted due to an error.
    Top model targets built:
    
    Model                         Action  Rebuild Reason                                    
    ========================================================================================
    evkmimxrt1060_gpio_interrupt  Failed  Code generation information file does not exist.  
    
    0 of 1 models built (0 models already up to date)
    Build duration: 0h 0m 1.951s
    Error:Error in 'evkmimxrt1060_gpio_interrupt/GPIO 5 Handler/LPUART Data Transfer': Failed to evaluate mask initialization commands.
    Caused by:
        Output argument "out" (and maybe others) not assigned during call to "mbd_imxrt_lpuart_block_functionality".

 

As you can see there are several reported errors but the last one is very strange...

Apparently, during the initialization of the block 'evkmimxrt1060_gpio_interrupt/GPIO 5 Handler/LPUART Data Transfer', the function 'mbd_imxrt_lpuart_block_functionality' fails due to a missing argument.

Anyway, I do not modify the example, I just load and build it... It should just work !

I have spent a couple of hours trying to understand the problem... but no way, I'm stucked.

However, I notice some differences between what I have when I apply the tutorial steps and what I am  supposed to have.

On the one hand, here is the look of the example model in the NXP tutorial :

Model_example.PNG

 

...here is mine :

Model_our.PNG

 

Note the error message inside the "Hardware Interrupt Handler" block and the missing of the "Status Register" output...

 

On the second hand, here is the "Hardware Implementation" settings in the NXP tutorial :

HI_example.PNG

 

... and here is mine :

HI_our.PNG

 

Note the missing of several groups in the "Target hardware resources" section...

 

If anyone has already met this problem or has any idea about the cause of it, please give me your advice. I will be glad of this

Thank you in advance.

Sebastian

 

0 Kudos
1 Solution
2,156 Views
nxa11767
NXP Employee
NXP Employee

You don't need to install extras - did you run again the mbd_imxrt_path.m after you did the update in matlab preferences with datetime format? That will recreate the NXP targets - I suspect that the initial run of that script did not created correctly the targets so you need to run it again. 

Also, when you plugin the board on your computer do you see a new drive appearing on your machine? like a USB mass storage device, named as the board, like in my screenshot above ? You can write the binary created from simulink: <model_name>.bin file also by just copy-paste it in the drive location.

 

BR,
Alexandra

View solution in original post

6 Replies
2,193 Views
nxa11767
NXP Employee
NXP Employee

Hi Sebastian,

 

I looks to be a problem with the datetime format on your machine - the format that you have is not recognized by the Matlab. Maybe  @brianmckay has mode info here on the datetime call failure.

What are is the date and time format on your machine and also in Matlab preferences? Can you try to modify the matlab preference to have the next settings:

nxa11767_0-1606210349816.png

 

Restart the matlab, run again the mbd_imxrt_path.m script.

When you run the above script the first time, did you noticed similar error messages in the matlab command window? 

Best regards,

Alexandra

2,179 Views
scocmr
Contributor II

Hi Alexandra,

 

Thank you very much for your help !

After having update our Matlab date/time fomat, all errors have disappeared.

In addition to your advice, we have to add a dot character after the month format (MMM) because in the error message, the date/time was in this following format : 

Could not recognize the date/time format of '11-oct.-2020 21:38:18'.

 

So our new settings are :

Matlab_command_win_pref.PNG

 

Thanks to that settings (and you ;-), now the NXP example model is correctly loaded into Simulink and also successfully built !

That's a good point.

Now we try to upload the application in the evaluation kit but we have the following warning message :

Warning_download_drive.PNG

 

Next to this message, nothing happens... the target is not updating with the generated code.

Please, have you any idea ?

 

Sebastian

0 Kudos
2,172 Views
nxa11767
NXP Employee
NXP Employee

Hi Sebastian,

You need to go to Hardware Settings, under Hardware Implementation -> Target Settings-> Download -> Browse for OpenSDA drive:

nxa11767_0-1606216213760.png

BR,

Alexandra

0 Kudos
2,164 Views
scocmr
Contributor II

Alexandra,

In Hardware Implementation settings, there is no "Download" group as it is shown on your screenshot.

Here are my settings :

Hardware settings 1.PNG

 

Hardware settings 2.PNG

 

As you can see, I have only 2 groups : Clocking & External mode...

Do I need to install a specific software to have "Download" group ?

Here is my Windows Device Manager settings :

Windows Device Manager.PNG

 

And here is the Evaluation Kit mass storage in the Explorer :

EVK mass storage.PNG

 

BR,

Sebastian

0 Kudos
2,157 Views
nxa11767
NXP Employee
NXP Employee

You don't need to install extras - did you run again the mbd_imxrt_path.m after you did the update in matlab preferences with datetime format? That will recreate the NXP targets - I suspect that the initial run of that script did not created correctly the targets so you need to run it again. 

Also, when you plugin the board on your computer do you see a new drive appearing on your machine? like a USB mass storage device, named as the board, like in my screenshot above ? You can write the binary created from simulink: <model_name>.bin file also by just copy-paste it in the drive location.

 

BR,
Alexandra

2,147 Views
scocmr
Contributor II

Alexandra,

 

Everything is OK thanks to your advice.

I just uninstall Toolbox in order to start again with fresh NXP install.

After re-installing, I have checked Date/time settings and they were OK.

So, I ran the mbd_imxrt_path.m script and the output was successful :

mbd_imxrt_path matlab script exec.PNG

Then, I have opened the NXP example model and set download settings as you mentioned :

Hardware implementation groups OK.PNG

I have launched "Build" and voila

The target has been correctly uploaded in the evaluation kit and the program works perfectly !!!

Thank you very much for your support. It was very nice.

 

Best regards,

Sebastian.

0 Kudos