Hi,
I am using MCUXpresso Config Tools v26.x with an MCXN547 project and configuring an ADC -> eDMA transfer using the eDMA peripheral component.
Configuration:
- eDMA Channel API mode: Transactional (transfer configuration)
- eDMA request: ADC1 FIFO A request
- Submit transfer: Enabled
- Auto stop request: Enabled
- Peripheral request: Enabled
The generated code in peripherals.c contains:
status = EDMA_SubmitTransfer(&DMA0_CH0_Handle,
DMA0_CH0_Transfers_config,
1U);
assert(status == kStatus_Success);However, no declaration for status is generated. As a result, the project fails to compile with:
error: 'status' undeclared (first use in this function)
Expected generated code would be either:
status_t status;
status = EDMA_SubmitTransfer(...);
or:
assert(kStatus_Success ==
EDMA_SubmitTransfer(...));Has anyone seen this issue before?
Is this a known code-generation bug in Config Tools, or is there an additional configuration option required when using "Submit transfer"?
I can provide the generated peripherals.c and .mex configuration if needed.
Thanks.