MIMXRT1062 how to remove LPUART or USBSERIAL and setup up to use printf() #9671
Unanswered
8888clockradio
asked this question in
Hardware & Peripherals
Replies: 1 comment 5 replies
-
All I/O to USB Serial is done in the file mphalport.c. Transmitting is easy, because that's just the single function mp_hal_stdout_tx_strn(). Receiving is by interrupt, so it's in tud_cdc_rx_cb(). USB is initialized in main.c by a call to tusb_init(). For Audio the mimxrt port has already I2S support. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Anyone know how to turn off the usb serial in the mimxrt1062 / teensy 4.1 and just tell micropython to use printf() or a way that I can use extern "C" to put in Arduino Serial. commands, I think there's c-library bindings for the commands in teensy 4.1. I have some experimenting to do. But for one, where is the line that I'd comment out to just disable the usb serial, and then also how can I tap into an Arduino external Serial C++ object in extern 'C'. I'm porting the teensy 4.1 library and some Arduino libraries to including the audio library into the port. I'm not sure I want to share my code because it's a lot of modified libraries. If anyone is really interested I'm planning on binding Qt touch embedded and music21 into the kernel with micropython to create an environment for a synth kind of like muse.
Beta Was this translation helpful? Give feedback.
All reactions