-
Notifications
You must be signed in to change notification settings - Fork 103
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
Add support for MIMXRT1042XJM5B #405
Conversation
See ZD 17479 |
One thing I forgot to mention was that in CLOCK_EnableClock(kCLOCK_Iomuxc);
IOMUXC_SetPinMux(IOMUXC_GPIO_AD_B0_12_LPUART1_TX, 0U);
IOMUXC_SetPinMux(IOMUXC_GPIO_AD_B0_13_LPUART1_RX, 0U);
IOMUXC_SetPinConfig(IOMUXC_GPIO_AD_B0_12_LPUART1_TX, 0x10B0U);
IOMUXC_SetPinConfig(IOMUXC_GPIO_AD_B0_13_LPUART1_RX, 0x10B0U); When not doing this, I didn't get any debug output from the bootloader. I did compile with
in my |
Hi @MulattoKid , Thank you so much for this PR. Your contributor agreement has been accepted and placed on file. We've assigned this PR to @bigbrett for review. Thanks, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code additions look great, and confirmed no regressions on this branch when building for the RT1052 and RT1054 targets. Note that, since I don't have hardware, I'm unable to test this on the RT 1042.
@MulattoKid Not sure off the top of my head, I will look into this more. It doesn't appear that the hal layer does this pin mux initialization, which could be why printouts don't show up. Regardless, I don't want this to block your PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @MulattoKid
Thanks for the quick responses :) |
This PR adds support for
MIMXRT1042XJM5B
. I've tested this locally on the EVK and a custom PCB, and it works on both.My approach was:
make
and fix compilation warnings for bothwolfBoot
and the test applicationI added local support for patching the test app's ELF file to add the signature to it. Doing so I could flash both
wolfBoot
and the test app throughVSCode
, and was able to get to both binariesmain
entrypoints.I've not tested that this doesn't break any of the other RT targets.
@danielinux This is the support we discussed during our call. Hopefully this can help getting 1042 support included in
wolfBoot
.Kind regards,
Daniel