Hello,
when generating an SDK with the SDK Builder, I see that the ZIP contains peripheral drivers under devices/MIMXRT1021/drivers/*
Looking at mcuxsdk-core on GitHub, I noticed that many drivers exist in multiple variants (e.g. gpio and gpio_1, each with their own fsl_gpio.c/h).
My question is:
How does SDK Builder know which driver variant to include for a specific MCU?
Is there a configuration file (YAML/JSON/other) that maps device families to the correct driver sources?
I’d like to better understand how this selection mechanism works.
I would like to take a look at this configuration file and maybe build an SDK on my PC.
Thanks in advance!
best regards
Hello,
Such information can be got from the Kconfig, take RT1021 GPIO as example,
RT1021 Kconfig.chip defines MCUX_HW_IP_DriverType_IGPIO
https://github.com/nxp-mcuxpresso/mcux-devices-rt/blob/main/RT1020/MIMXRT1021/Kconfig.chip#L237-L240
And IGPIO driver Kconfig depends on MCUX_HW_IP_DriverType_IGPIO
https://github.com/nxp-mcuxpresso/mcuxsdk-core/blob/main/drivers/igpio/Kconfig#L5-L12
Then the result is, igpio can be used by RT1021.
Hi @mastupristi ,
MCUXpresso SDK build and configuration system is based on Cmake and Kconfig. Please kindly refer to https://mcuxpresso.nxp.com/mcuxsdk/latest/html/develop/build_system/Overview.html for details.
Hope that helps,
Have a great day,
Kan
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------
Hi @Kan_Li
It seems interesting, but I'm not sure if you understood what I asked. I don't understand if what you linked to me is about creating projects for IDEs.
What I was asking is how the SDK builder builds the .zip file that is then downloaded.
For example, where is it written which driver should be integrated into the SDK between gpio and gpio_1 for my RT1021?
Or which one between edma and edma4, or which one between gpc, gpc_1, and gpc_2?
best regards
Max