New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Port iMX RT10xx Device #119
Comments
I see Device and BSP are checked off. Is this checked in? I'd love to start getting CircuitPython going on the iMX devices. |
@tannewt ah not yet, I haven't started any works with iMX devices just yet. The checklist is kind of of work to do, which admittedly is very confusing. It it part of porting template, I should remove other though. |
I'm looking into this right now. |
@arturo182 great, I am planning to work on this a bit next week as well. Let’s me know if you figure out something |
https://github.com/arturo182/tinyusb/tree/mimxrt10xx I made the BSP for mimxrt1010-evk and a dcd for the rt10xx family, i only have the rt1010 evk so I can't test on the others, but I assume the whole family shares the peripheral, just the bigger ones have more instances. Anyway, I tested and the HID composite example works, i press the button and my mouse moves and the keyboard sends "a", but the cdc_msc is being cranky:
Out of ideas for now, but wanted to share the progress. Next week I also want to look into porting the uf2 bootloader to the rt10xx family. |
@arturo182 great news, though since nxp rt series use the the same usb ip known as ip3511. We should just modify the current dcd_lpc_ip3511 to get it running on the rt series rather than creating an extra dcd file. This help to fix bug and maintain the dcd in the long term |
I considered it but wasn't sure how that would work with |
Thanks, don't worry about the |
@arturo182 I just update/re-org/rename submodule lpc_driver to nxp_driver and added imx rt mcu driver https://github.com/hathach/nxp_driver/tree/master/sdk/devices . I hope this will help you out with the porting. Let's me know if you need any further helps with porting 1010 evk. I will also try to work with 1064/1060 evk on my end as well. |
@arturo182 I push an PR #220, that the the complete port for iMR RT1064 tested on 1064 EVK board. I haven't looked at other chip family. Hopefully that doesn't have too much of difference, I added the list of board port that I have to the checklist, the only port that I am missing is rt1010evk due to the US export restriction. Hopefully you could find that PR helpful. |
I have a 1010 evk so can verify it for you |
Thank you very much. Words of warnings: there are lots of changes to refactor the dcd code from lpc family to support both series 🤗🤗 |
@arturo182 thanks to great work with rt1010evk, I could easily get these evk up and blinky quickly enough. Since I have been adding quite a bit of RT10xx EVKs, surprisingly they are actually quite the same (initially thought there is probably lots of difference like samd21 & 51). To save your time and effort to merge with tons of changes from the master (due to the refactoring of dcd). I just go ahead and added the ready-to-run rt1010 evk as well #224. Please give it a try whenever you have time to see if those actually works on the actual hardware, and submit PRs for correction/fix if you see needed. Thank you, hopefully we could close this issue soon enough :) |
Oh, I was doing that literally just now, bit of a wasted overlapping work :/ |
Ooops sorry, that is a bit of unfortunate, I was initially waiting for your work. But then think it is similar enough to 1015 evk, and thought I could just try to save you some time there. :) |
Guess I'll just trash my changes and test your PR. Have you tested all the examples with the other EVKs and they all worked? Cause with my previous branch I had a problem with getting MSC to work. |
@arturo182 yeah, I tested with all other EVK, it works rather well, I am sure it is probably something minor. I didn't do anything dramatically with dcd driver, except to generalize it so that it could work with both LPC & miMXRT series. They use the same USB IP after all PS: I feel pity that I couldn't take your change as a PR, since I really want to have a unique dcd driver. But it will be a bit odd for you to generalize it, especially if you are not familiar with LPC18/43 series. |
Ok, I tested with the hid_composite and cdc_msc examples and both work 🎉 No problem, I'm happy my PR helped you with getting the code up faster, now I can add the tinyusb functionality to my IMXRT10xx port of CP (right now I use LPUART for REPL and have no MSC), I'm gonna push that as a PR to that repo soon too :) |
@arturo182 yeah, Your board.c and board.mk help a lots to get started with the evk the rt mcu is flashless, I spend a several hours and still haven't known how to program it with compatible command line daplink. I gave up and just use the copy bin file as flash target :( . . Thanks again. I think we can safely close this now :) Let's me know or tag me if you need any help from me doing the CP port for RT10xx, I am happy to help :). Note that the with RT10xx tinyusb doesn't directly implement the |
All changes are merged into master. RT10xx is fully supported. Thank you very much 🤗🤗 |
Porting layer
Description
https://www.nxp.com/products/processors-and-microcontrollers/arm-microcontrollers/i.mx-rt-series/i.mx-rt1060-crossover-processor-with-arm-cortex-m7-core:i.MX-RT1060
The text was updated successfully, but these errors were encountered: