In a custom board, my only leds are driven by the PMIC gpios.
Is it possible to use them for mcuboot ?
In a custom board, my only leds are driven by the PMIC gpios.
Is it possible to use them for mcuboot ?
The nPM1300 One-Button sample sets up the nPM1300 LED drivers in the application.
Look at how this adds Kconfig options and DTS files for the LED driver.
Then add those to MCUboot overlays, with sysbuild/mcuboot.conf and sysbuild/mcuboot.overlay.
With this, when MCUboot use the LED drivers to toggle the LED, this should automatically use nPM1300 drivers instead.
The nPM1300 One-Button sample sets up the nPM1300 LED drivers in the application.
Look at how this adds Kconfig options and DTS files for the LED driver.
Then add those to MCUboot overlays, with sysbuild/mcuboot.conf and sysbuild/mcuboot.overlay.
With this, when MCUboot use the LED drivers to toggle the LED, this should automatically use nPM1300 drivers instead.
isn't that mcuboot uses gpio api instead of led? how this supposed to work?
I was unable to get it working, the sample is not defining anywhere the leds on the device tree separately. I cannot set the allias for led0. Can you please try it your self?
Yea, I can try myself.
I am at home office today, and don't got the nPM1300 kit here. But will be back in the office tomorrow, so I can try to see if I can do this some time this week.