Re: override alias in test application
Bolivar, Marti
Hello,
toggle quoted messageShow quoted text
There's no need to open an issue. The alias should be named eeprom-0 in a DTS file, aliases { eeprom-0 = ...; }; but needs to be eeprom_0 (i.e. "lowercase-and-underscores" form) in C, because "-" is not part of a valid C identifier. For details, please see the DT_ALIAS documentation: https://docs.zephyrproject.org/latest/reference/devicetree/index.html#c.DT_ALIAS In particular, "Convert non-alphanumeric characters in the alias property to underscores to form valid C tokens, and lowercase all letters." Please see also this section in the troubleshooting section in the deviceetree HOWTOs: https://docs.zephyrproject.org/latest/guides/dts/howtos.html#make-sure-you-re-using-the-right-names Thanks, Marti Stefano Manni <stefano.manni@gmail.com> writes:
Hi Carles,
|
|