imxrt1060 usb drives

Discussion and questions about boards that can run MicroPython but don't have a dedicated forum.
Target audience: Everyone interested in running MicroPython on other hardware.
Post Reply
wangshujun@tom.com
Posts: 61
Joined: Fri Feb 15, 2019 9:22 am

imxrt1060 usb drives

Post by wangshujun@tom.com » Fri May 20, 2022 9:47 am

I have an imxrt1062 board in hand. After burning the 1060 firmware provided by the website, I recognize a USB ser device on the USB port, but it can't be opened. Would you like to ask if I need a special driver to use it

User avatar
Roberthh
Posts: 3667
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: imxrt1060 usb drives

Post by Roberthh » Fri May 20, 2022 9:57 am

No, you should have REPL at the USB port. Which USB port do you use? REPL is not at the USB port used for firmware upload. That port is not connected to the 1062 mcu.
Which port do you have? Is it the mimxrt1060-EVK board from NXP?
Edit: If can’t be opened means no access by the OS, the access rights have to be set properly on your computer. With Linux you usually have to add your user name to the dialout group. And it helps to stop a modem manager.

wangshujun@tom.com
Posts: 61
Joined: Fri Feb 15, 2019 9:22 am

Re: imxrt1060 usb drives

Post by wangshujun@tom.com » Mon May 23, 2022 2:30 am

I don't use the original development board. The firmware burning uses usb-otg1. The burning tool uses the official tool. At present, a usbser device is prompted on this port, but the application cannot be opened (Windows system, no permission is required)
If the default repl port is on the otg2 port, I will try the solder wire test

wangshujun@tom.com
Posts: 61
Joined: Fri Feb 15, 2019 9:22 am

Re: imxrt1060 usb drives

Post by wangshujun@tom.com » Mon May 23, 2022 6:11 am

Supplement: after checking the source program, the vid & PID reported by the usbser device identified on otg1 is consistent with the source program

User avatar
Roberthh
Posts: 3667
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: imxrt1060 usb drives

Post by Roberthh » Mon May 23, 2022 6:24 am

Which firmware do you use? The most simple code code 1062 is the Teensy 4.0 one, which only assumes a 1062 without additional and 2 MB flash. Even if the GPIO numbers do not match, it should give you a REPL promt.

wangshujun@tom.com
Posts: 61
Joined: Fri Feb 15, 2019 9:22 am

Re: imxrt1060 usb drives

Post by wangshujun@tom.com » Tue May 24, 2022 1:51 am

MIMXRT1060_EVK-20220117-v1.18.hex
There are external 8-megabit spinor and 32-megabit SDRAM on the board. Check that the address is consistent with the official address
guess
1. Some programs stopped running after USB initialization
2. The program has been running normally, but the repl cannot be obtained due to USB driver error

Can you provide a firmware that uses UART repl by default, and can it be changed to UART repl with simple configuration like STM32
Uart1, 3, 4, 5, 6 and 8 have out on my board

User avatar
Roberthh
Posts: 3667
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: imxrt1060 usb drives

Post by Roberthh » Tue May 24, 2022 5:53 am

Here a firmware for MIMXRT1060_EVK, which gives REPL to UART 1 as well, with UART 1 being at the pins:
{IOMUXC_GPIO_AD_B0_12_LPUART1_TX }, { IOMUXC_GPIO_AD_B0_13_LPUART1_RX}

https://hidrive.ionos.com/lnk/ppigC39t

If you want to detach REPL form UART, run the commands

Code: Select all

import os
os.dupterm(None, 0)
I still suggest trying a Teensy 4.0 firmware as well, because the Teensy firmware does not try to use SDRAM.

wangshujun@tom.com
Posts: 61
Joined: Fri Feb 15, 2019 9:22 am

Re: imxrt1060 usb drives

Post by wangshujun@tom.com » Wed May 25, 2022 9:21 am

The firmware can operate normally on repl
And when inputting ctrl-d on the abnormal USB, I saw the board reset on uart1
It seems that the USB port of my board is incompatible with the official development board
Can you share how to specify UART as the default repl

User avatar
Roberthh
Posts: 3667
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: imxrt1060 usb drives

Post by Roberthh » Wed May 25, 2022 10:04 am

So it looks as if input data is accepted at the USB port, but output data not. Did you try to use the board with a Linux box, to exclude Windows problems?. Did you disable flow control in the Windows terminal program?

At the moment, UART repl is activated in addition to the USB REPL in _boot.py. If yuo want to use a serial connection as default, you have to change the code base. REPL input and output is handled in mphalport.c by the functions mp_hal_stdin_rx_chr(), mp_hal_stdout_tx_strn() and mp_hal_stdio_poll(). That is quite a bit of work.

Post Reply