FRDM_MCXA156 controling on board LEDs with PWM output

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

FRDM_MCXA156 controling on board LEDs with PWM output

256件の閲覧回数
Mikibab
Contributor I

Hi, I am quite new to Zephyr and  currently developing a custom PWM controller, to control PWM outputs via the main.c.

To test the functionality, i wanted to use the 2 (led0, led1) on board LEDs, turns out, there is nothing else to been seen than before.

After flashing my board with the Fade LED sample, the LED still does not fade and the serial output also says "found 0 LEDs"

This is my mcxa156.overlay for now:

#include <zephyr/dt-bindings/adc/adc.h>
#include <zephyr/dt-bindings/adc/mcux-lpadc.h>
#include <zephyr/dt-bindings/pwm/pwm.h>
 
/ {
 
    aliases{
myled0 = &pwm_led0;
myled1 = &pwm_led1;
 
pwm_leds {
compatible = "pwm-leds";
 
pwm_led0: led_0 {
            pwms = <&flexpwm0_pwm0 0 PWM_USEC(20000) PWM_POLARITY_NORMAL>;
        };
 
      pwm_led1: led_1 {
            pwms = <&flexpwm0_pwm0 1 PWM_USEC(20000) PWM_POLARITY_NORMAL>;
        };
};
};
Would be glad for any help,

Mika
ラベル(1)
0 件の賞賛
返信
2 返答(返信)

150件の閲覧回数
Mikibab
Contributor I

My inital goal was, to simply get access to the FRDM_MCXA156s on board LEDs, but, since I wanted to use them as pwm LEDs, this did not work.

The FRDM_MCXA156 only incorporates gpio LEDs (On/Off) and no pwm LEDs.

Idont know, if there is a solution to still use them, but i just got a different board (mcxc444) to test the pwm LEDs.

So if there is somebody, who knows how to configure the gpio LEDs as pwm ones, i would still be interested in this solution, but for now my problem is solved.

0 件の賞賛
返信

169件の閲覧回数
Omar_Anguiano
NXP TechSupport
NXP TechSupport

It could help that the led associated on the dt is connected on the board and check if any resistor or wire is dnp. 

BR,
Omar

0 件の賞賛
返信