Hello, I am using the USB_CDC_VCOM_BM_CM7 code, but I have not been able to trigger the receive and send interrupt. I used my own development board with the usb3.0 driver and RT1170 as the slave. The enumeration can be successful, but it has been unable to reach the data transmission stage. Trigger the interrupt of RT1170. Can CDC_VCOM_BM_CM7 be used directly? Is there anything that needs to be modified?
Solved! Go to Solution.
Hi,
Please refer below feedback:
If data section is cacheable, need to check two point:
1. DATA_SECTION_IS_CACHEABLE=1 must be added into project.
2. Heap used by USB stack should be placed into non-cacheable region.
Please refer to picture below, after apply the two change, it now works.
Wish it helps.
Hi,
Please refer the <readme.pdf> file, which located at ..\SDK_2_12_0_MIMXRT1170-EVK\boards\evkmimxrt1170\usb_examples\usb_device_cdc_vcom\bm\cm7 folder.
Related driver could be found at \SDK_2_12_0_MIMXRT1170-EVK\boards\evkmimxrt1170\usb_examples\usb_device_cdc_vcom\inf folder.
Wish it helps.
Mike
Thanks, I found 2 problems,
1. When I debug the usb example, it can run normally, but when I burn the code into norflash, it cannot be started, and the usb is abnormal.
2. When I change the memory position in mcuxpressIDE, the usb cannot run normally. I put the SRAM_DTC_CM7 at the back and SRAM OC1 and OC2 at the front, and the usb cannot run normally. What is the reason?
Hi,
I did a test with below setting, the USB CDC device demo works normally.
Using QSPI Flash (SDK project default setting), Boot setting at board:
SW1: 0010
SW2: All 0
Board power supply: J11 with J38 setting (5-6)
USB port: J20 USB1
PC: WIN10 64-bit
I could run the demo outside of debugger interface.
Thanks for the attention.
Mike
Hi,
Please place USB stack used data into non-cacheable region.
Wish it helps.
Mike
Hi,
Please refer below feedback:
If data section is cacheable, need to check two point:
1. DATA_SECTION_IS_CACHEABLE=1 must be added into project.
2. Heap used by USB stack should be placed into non-cacheable region.
Please refer to picture below, after apply the two change, it now works.
Wish it helps.
Hi,
Sorry for the later reply.
The MCUXpresso SDK USB stack application is based on class. We do not have example to do the data transfer without USB Class. Sorry for that.
best regards,
Mike