i have these aliases setup in the .dts file.
i have these aliases setup in the .dts file.
Hi,
Using underscore in devicetree aliases is not allowed. Instead, you should use a hyphen (-):
aliases { red-led = &led0; grn-led = &led1; blu-led = &led2; ... red-pwm = &pwm_led0; grn-pwm = &pwm_led1; blu-pwm = &pwm_led2; }; };
In DT_ALIAS you should still use underscore:
#define PWM_RED_LED DT_ALIAS(red_pwm)
Best regards,
Marte
so change it to this
so change it to this
Hi,
Did you delete the build directory before rebuilding? When making changes to devicetree, you should delete the build directory completely.
I am not able to reproduce the error using your aliases and code. If you still get the error after deleting the build directory, can you upload a project where this can be reproduced so I can test it on my side?
Best regards,
Marte
build directory ?
if you delete that, then the build configuration disappears
ok i seem to have the issue, VSC had more than one instance of my board file even though i renamed it...... deleting the back copy and then deleting the build folder fixed this.