Hello,
As title, When I add any ADC register will cause LINFlex fail to work! Once the operation cmd remove, LINFlex works well.
I've tried 2 sample projects which I download from this community with S32DS V1.1. Please refer to attachment and help me to solve this issue. Thank you very much.
Original Attachment has been moved to: MPC5744P-Uart_with_DMA-S32DS.zip
Original Attachment has been moved to: MPC5744P-LINFlex-UART-echo-SWpoll-S32DS.zip
Hi,
Most probably the ADC module is not clocked. Check the ME and CGM modules setting. Try to add following code at the end of SysCLK()…
MC_CGM.AC0_SC.R = 0x02000000; // Select PLL0 for auxiliary clock 0
MC_CGM.AC0_DC2.R = 0x80010000; // ADC_CLK : Enable aux clk 0 div by 2 … (80 MHz)
BR, Petr