Hi team.
Client wants to use the NXP Simulink toolbox for I.mxrt1170. They tried the UART polling block and its sends and receives without problems, but they want to use UART eDMA block, it gives them a build error which is (error: 'LPUART1_LPUART_eDMA_Handle' undeclared (first use in this function)
83 | &LPUART1_LPUART_eDMA_Handle, &receiveXfer_1);)
They get this error even though they're using the Simulink model examples that's included with the toolbox. Is this a bug? How can they solve this issue?
BR,
Edwin.
Hello,
I'm sorry for the late reply, it has been a busy period the past weeks.
I've tested the 'EVKMIMXRT1170_LPUART_EDMA' example included in the Model Based Design Toolbox (MBD) for IMXRT v1.3.0. It is successfully built and deployed onto the target. In a Serial Terminal (Putty), I am able to send and receive messages from the board (IMXRT1170-EVK REVA). Expected behavior: When a chunk of 4 characters are received by the target over the LPUART interface, it sends them back to the computer. MATLAB used is MATLAB R2019a.
Please provide more details about the problems your client encounters. It will be helpful to check if the MBD Toolbox is version 1.3.0 (use 'ver' command in MATLAB Command Window).
If possible, you can attach the model used by the client and I can try to debug it to find the problem.
Best regards,
Sorin Bancila