How does SDK Builder select the correct peripheral drivers?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How does SDK Builder select the correct peripheral drivers?

165件の閲覧回数
mastupristi
Senior Contributor I

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

タグ(1)
0 件の賞賛
返信
3 返答(返信)

97件の閲覧回数
fsl_jason_yu
NXP Employee
NXP Employee

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.

135件の閲覧回数
Kan_Li
NXP TechSupport
NXP TechSupport

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.
-------------------------------------------------------------------------------

0 件の賞賛
返信

120件の閲覧回数
mastupristi
Senior Contributor I

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

0 件の賞賛
返信