i just build the environment to develop RT1062 with MBDT tool,but when open a model,this fault appear.i don't how to figure it out and can find nothing.
Solved! Go to Solution.
Hello,
Seeing now your screenshot with your workspace I've notice that the toolbox is installed in a location with spaces in its name. The JTAG download is using some windows bash scripts that don't perform correctly with spaces in its path. This should fix the download in via JTAG in FLASH memory.
When downloading via OpenSDA, the JLink is not used but the Integrated OpenSDA USB CMSIS Debug and Programming adapter.
About importing in MCUX IDE, the toolbox has an option of exporting the project to make it buildable in MCUX IDE (meaning building all the links to the generated simulink folder, the .mex file used and the compilation/linker flags used from simulink). The option is available in Model Settings -> Hardware Implementation -> Target Hardware Resources-> User Paths, Export generated projects
As export option:
- Simulink model folder - will just update the <model_name>Config project in the current location of your model, and in this way any change you do in the MCUX IDE will be seen in Simulink and the vice-versa.
- To local filesystem - choose another path to save the <mode_name>Config and <model_name>_ert_rtw folders.
When importing in the MCUIDE the <model_name>Config folder I recommend to not use copy project into workspace because some paths might break. After importing you can change the settings of the project from the MCUX IDE - like memory sizes, linker files etc, from project settings. Also for this export option is better if the toolbox or current location of the model is in a path without spaces.
If you want to change from simulink memory sizes, you must change the linker files for the project. Those are found in the <model_name>Config/linker_files folders, flash or ram folder depending on the Target Memory selection.
BR,
Alexandra
Hello assangeye,
Is a problem caused by the mismatch on datetime settings between matlab and your system.
Please see this post for a fix: https://community.nxp.com/t5/NXP-Model-Based-Design-Tools/The-model-design-based-on-kV-Series-MCU-en... (similar issue we have also on the Kinetis V toolbox). (scroll down till the end of the post, and the latter post explains in detail for to fix it).
Regards,
Alexandra
But,i also have question on building zhe model. I am using Matlab2019a,i open the evkmimxrt1060_gpio_interrupt-simulink model,when i build the model,some error occour,and i try to figure out it by change the setting with MCUX_CFG.I press the update button which is in block parameters,but it doesn't work?Now i can't run any model,how can i do it?
You followed the steps from that post and restarted afterwards the matlab?
The problems you see in the model will get fixed once the datetime error is fixed. The block should see that the interrupts on GPIO5 are already enabled in the .mex file, but it gets that datetime error in the process.
Additionally, after you make the datetime settings in the matlab preferences and your system, run a script that in found in the root of the toolbox folder: mbd_imxrt_path.m.
Alexandra
And is there any other guide book for us to create my own project,with MBDT.i want to develop our board with rt1061,so i want to know how to start a simulink project which i can move to other disk in my computer?
Unfortunately in the toolbox quick start guide this scenario is not documented. But please see here attached a quick document with the steps to follow to create a Simulink model from scratch to be deployed on the IMXRT MCU.
I hope this document will help you.
Best regards,
Alexandra
Thanks for your early help,but there is a new problem,when i pin "M12",route to GPIO_AD_B1_03,and the signal is GPIO1_19.But i can't find the correct pin in my block setting.Is it a BUG?
You need to specify in pins settings, in Configuration Tool, the direction: Input or Output.
The GPIO Output block will look for the pins configured with direction output in the Configuration tool. So in your case you should set Direction to Output, ctrl+s (to save the changes in configuration tool) and then press in simulink, in the GPIO Output block the Update button to see the changes.
BR,
Alexandra
Thanks for help ,i have another question can i down the project via jlink? When i set jlink linking to board via SWD mode,and press build ,but it doesn't work.is there any other settings? i want to know what does this flash mean?is it mean RAM(addr:0x00000-0x20000)?becasue i have bootlaoder,and i need to know how to manage the memory to download files to the correct address.
The target memory represents how the application will be linked: to run from FLASH , so the application will have addresses starting with 0x6000_0000 and will execute in place (XIP execution) or from internal OCRAM.
For using the JTAG option, you need to browse for JLink.exe instead of JFlash.exe (same Utility to be used if target memory is RAM).
BR,
Alexandra
Thanks for your help,i can download program to MIMXRT2060-EVK with OPENSDA.But when i change to using JATG to download the program,it seem doesn't work.First of i change the model config,the i press the "Build,Deploy&Start" button.Is there any other settings?
Hello,
In the build folder of the model, you'll find 2 files: script.jlink and program_board.log, Can you attach the two files?
If you switch to Flash as target memory and use JTAG as download is working ok?
Thanks,
Alexandra
hello,
i follow your suggest to find this files,but i find nothing.
And i try to download file to SRAM,i also doesn't work.
Finally,i read to RN file again,and i find this!Does it mean the modle doesn't support JTAG?
Hello,
If you change the Target Memory from SRAM to FLASH, like below:
is flashing of the application via JTAG?
The script.jlink and program_board.log are placed in the same location as the <model_name>_ert_rtw folder.
I did some tests on my side for JTAG download on SRAM memory (internal memory) and indeed there's an issue there, but we plan a fix for the incoming release of the toolbox (end of April).
BR,
Alexandra
hello,
i follow your suggest again,and i can't find this 2 files.when i change openSDA to JTAG to download program ,it seems doesn't start jlink service and do not have anyother message window.
what's more,when i import the project to MCUXpresso,and faild to build the project .So i doubt that if i choose the MBDT,i can't build to project with MCUXpresso anymore? But if i want to change the size of DTC or IDTC,how can i do that.
Hello,
Seeing now your screenshot with your workspace I've notice that the toolbox is installed in a location with spaces in its name. The JTAG download is using some windows bash scripts that don't perform correctly with spaces in its path. This should fix the download in via JTAG in FLASH memory.
When downloading via OpenSDA, the JLink is not used but the Integrated OpenSDA USB CMSIS Debug and Programming adapter.
About importing in MCUX IDE, the toolbox has an option of exporting the project to make it buildable in MCUX IDE (meaning building all the links to the generated simulink folder, the .mex file used and the compilation/linker flags used from simulink). The option is available in Model Settings -> Hardware Implementation -> Target Hardware Resources-> User Paths, Export generated projects
As export option:
- Simulink model folder - will just update the <model_name>Config project in the current location of your model, and in this way any change you do in the MCUX IDE will be seen in Simulink and the vice-versa.
- To local filesystem - choose another path to save the <mode_name>Config and <model_name>_ert_rtw folders.
When importing in the MCUIDE the <model_name>Config folder I recommend to not use copy project into workspace because some paths might break. After importing you can change the settings of the project from the MCUX IDE - like memory sizes, linker files etc, from project settings. Also for this export option is better if the toolbox or current location of the model is in a path without spaces.
If you want to change from simulink memory sizes, you must change the linker files for the project. Those are found in the <model_name>Config/linker_files folders, flash or ram folder depending on the Target Memory selection.
BR,
Alexandra
Hi @CauTran ,
I see that you are trying to build the Release build configuration. Can you try with Debug build configuration? if you plan to do debug on the imported project will want to build it with debug information, so the Debug build configuration should be used.
BR,
Alexandra
Hi @nxa11767 ,
Can you show me the debug build configuration? I don't know how to setup to build imported project successfully.
Hi @CauTran ,
Right click on the project and select Build Configurations->Set Active;
Best regards,
Alexandra
Hi @nxa11767 ,
I don't see the configuration that you mentioned. Can you tell me the option import which you used in this project?
How about the toolchain or any configuration during the import project.
Can you tell me the version that you use to build project?