AnsweredAssumed Answered

iMX6UL USB Example Code Won't Run

Question asked by Dennis Jelcic on Jun 5, 2019
Latest reply on Jun 25, 2019 by Dennis Jelcic



We are developing software on the NXP i.MX 6UltraLite, ARM Cortex-A7 (MCIMX6G2CVM05AA) using IAR EW 8.32.4.  We need to develop software that will communicate via the USB port on the baseboard (NXP MCIMX6UL-BB).  We have installed version 2.2 of the SDK (SDK_2.2_MCIM6UL_RFP_Win).  We found example code for a USB ramdisk at the following path in the SDK: %SDK_PATH%\boards\evkmcimx6ul\usb_examples\usb_device_msc_ramdisk\bm.  We could not find example code that is specific to the processor we are using.  We have modified the existing project file so that we can get the project to compile cleanly.  We are using an I-jet debug pod.


However, we have run into a problem.  When we try to debug the program, here is what happens.  We click on the "Download and Debug (Ctrl-D) button on the toolbar to run the debugger."  A dialog box titled "larldePm" is displayed with the following message:


The debugging session could not be started.  Either the debugger initialization failed, or else the file "iar_all_modules_loaded" was missing", corrupt or of an unsupported format.  There might be more information in the Debug Log window.



The following message was written to the end of the Debug Log window: "Download error at 0x80002000: memory write failed."


We are using the "ddr_debug" configuration, and we are using the "MCIMX6G2xxx07_ram.icf" linker configuration file.


In summary, the example code is compiled cleanly.  But when the debugger is started, it can't run the code.  Can you please assist us with getting this project to run?


Thank you for any help that you can provide.


Dennis Jelcic