Skip to content

tests: samples/drivers/uart/async_api: NXP Lpuart platforms build failure #96158

@hakehuang

Description

@hakehuang

Describe the bug

all NXP lpuart platforms:
frdm_mcxc242

3c8def0 is the first bad commit

commit 3c8def069121930a0f82df10de0d20e0545a3e81
Author: Fabrice DJIATSA <[email protected]>
Date:   Thu Aug 7 15:36:48 2025 +0200

    samples: drivers: uart: async_api: add new scenario for console harness
    
    - Add a console harness to filter console output and validate tests.
    
    Signed-off-by: Fabrice DJIATSA <[email protected]>

 samples/drivers/uart/async_api/sample.yaml | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
``


### Regression

- [x] This is a regression.

### Steps to reproduce

scripts/twister -p frdm_mcxc242 -T samples/drivers/uart/async_api --build-only


### Relevant log output

```shell
1134 |         while (LPUART_GetRxFifoCount(config->base) > 0) {
      |                ^~~~~~~~~~~~~~~~~~~~~
In file included from /__w/zephyr/zephyr/include/zephyr/sys/util_macro.h:34,
                 from /__w/zephyr/zephyr/include/zephyr/irq_multilevel.h:16,
                 from /__w/zephyr/zephyr/include/zephyr/devicetree.h:20,
                 from /__w/zephyr/zephyr/include/zephyr/device.h:12,
                 from /__w/zephyr/zephyr/drivers/serial/uart_mcux_lpuart.c:11:
/__w/zephyr/zephyr/drivers/serial/uart_mcux_lpuart.c: At top level:
/__w/zephyr/zephyr/include/zephyr/device.h:96:41: error: '__device_dts_ord_DT_N_S_soc_S_uart_40054000_P_dmas_NAME_rx_PH_ORD' undeclared here (not in a function)
   96 | #define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id)

Impact

Annoyance – Minor irritation; no significant impact on usability or functionality.

Environment

  • OS: ubuntu
  • tool-chain: 0.17.1
  • version: 65d7c7c

Additional Context

No response

Metadata

Metadata

Labels

area: UARTUniversal Asynchronous Receiver-TransmitterbugThe issue is a bug, or the PR is fixing a bugplatform: NXPNXP

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions