Skip to content

Added initial support for FRDM-MCXA156. I will be porting tinyuf2 to… #2925

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

Closed
wants to merge 1 commit into from

Conversation

ehughes
Copy link
Contributor

@ehughes ehughes commented Jan 1, 2025

I will be porting tinyuf2 to MCXA156 and N947 and need this in place.

It is similar to A153 but with FPU,SIMD enable int the CM33 core. It has much more flash/ram/peripherals and uses the chipidea FS controller.

I repointed the entry in the get_deps script to use NXP MCU repo. The existing current code couldn't build as the MCX Xpresso SDK was old.

For now, I put a copy of fsl_spc.c in the drivers folder for the mcx family. None of the ports could build with the version in the mcux github sdk. The sdk on github has version 2.4.0. The SDK package that can be downloaded with the SDK generator uses 2.4.2. All of the clock_config routines use versions of the datastructure from 2.4.2. For now, keeping an updated copy in hw/bsp/mcx/drivers so we can build against the latest mcuxpresso sdk and enable MCXA156. I'll file an issue on the nxp github.

I cleaned up the family.c a little bit. these chips don't have SCT so I removed the neopixel code. I fixed a clock init issue w/ N947 that was causing it to crash when initializing the uart.

I tested the cmake and make scripts on the A153,A156 and N947 using the CDC/MSC sample. All worked OK.

@ehughes
Copy link
Contributor Author

ehughes commented Jan 1, 2025

@ehughes

1.) I saw the ci failed on LPC55. It will need to have some minor updates to the make file as the structure of the mcuxpresso sdk is a little different. I can make this change if it is OK for us to point to the nxp github repo

2.) the ci also failed on the mcxn947-brk board. This board is now deprecated and used prototype silicon. NXP never release the board publicly. I can patch the make file to be like the FRDM board, we can delete the board. The FRDM-MCXN947 is the official dev board that people can purchase.

note:

This commit for mcuxpresso has the correct fsl_spl driver. update this PR to use this commit and adjust the make files accordingly to use the spc driver in the correct location.

6f3fd257cdcf978a4d26e7d6e9eed9240037422b

@ehughes ehughes marked this pull request as draft January 6, 2025 13:48
I will be porting tinyuf2 to MCXA156 and N947 and need this work in place.

This is the 1st step before bringing in support for other MCX devices.

We had previous patched https://github.com/hathach/mcux-sdk.git'  for MCX support as it was not pulically available

I updated get_deps to point to the mcux-sdk version 2.16.10 from NXP. I repointed the entry in the get_deps script to use NXP MCU repo.  The existing current code couldn't build as the MCUXpresso SDK was old.

- For now, I put a copy of fsl_spc.c in the drivers folder for the mcx family.  None of the ports could build with the version in the mcux github sdk.  The sdk on github has version 2.4.0.   The SDK package that can be downloaded with the SDK generator uses 2.4.2.  All of the clock_config routines use versions of the datastructure from 2.4.2.  For now, keeping an updated copy in hw/bsp/mcx/drivers so we can build against the latest mcuxpresso sdk and enable MCXA156.  I'll file an issue on the nxp github.

- Cleaned up the MCX family.c a little bit.  the MCXA/N these chips don't have SCT so I removed the neopixel code.

- fixed a clock init issue w/ N947 that was causing it to crash when initializing the uart.

- I tested the cmake and make scripts on the A153,A156 and N947 using the CDC/MSC sample.  All worked OK.

- Patched get_deps so it will do a fetch/check on a new folder.  Some of the deps were failing on a fresh clone of tinyusb

- Fixed  lpc51,54 and lpc55 make/cmake files to build with mcuxpresso sdk 2.16.10  The folder structure for flexcomm/uart changed a little bit

- lpc55s59 libpower_hardabi.a no longer is included in mcuxpressosdk, (fsl_power.c is replacement). remove of libpower_hardabi.a from the linker config.  LPC55 still works as expected.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant