hi,
Am Newbie in NXP S32K.
Am trying to implement UART Communication to Communicate with Terminal software in autosar mode by using Evaluation board XS32K312EVB-Q172 hardware.
i configured Uart as following
In main.c i added
#include "Mcal.h"
#include "Mcu.h"
#include "Port.h"
#include "Dio.h"
#include "IntCtrl_Ip.h"
#include "Lpuart_Uart_Ip.h"
#include "CDD_Uart.h"
and from main() i called Uart_Init(NULL_PTR);
but when start Debug the control moves to hardware fault loop.
is there any missing in my configuration?
Hi Robin,
Thank you for your support. i will check the same and update you.
some more questions regarding UART.
> Where can i initialize Lpuart_Uart_Ip_StateStructureType structure.
It seems it holds rx and tx buffers and other related information. But in application i did not intialized these struct variables. and it says driver doesnot provide memory for it.
So how can we initiate this struct. ?
> from where can i get received bytes?
in some other example i have seen they are setting callback event. But here i did not find any settings like that. instead i hope we can check in call back when it called by checking Lpuart_Uart_Ip_EventType.
is it correct ?
is there any way to check the receive buffer and read the receive data by bytes.?
thanks,
Nikhil
Hi Nikhil,
Sorry, I’ve been busy lately, so I haven’t replied to you until now.
I see that you are using AUTOSAR MCAL HLD (High Level Driver). I suggest you create a new question so that my colleague in charge of MCAL software can help you.
Best Regards,
Robin
Hi Robin,
Sure i will create a new ticket.
Can u please tell me from where you have find out MCAL HLD option and how to select this option?
The Configuration Component that you selected belongs to AUTOSAR MCAL HLD.
For more detail, please read AN13435: SDK/MCAL to Real-Time Drivers - Application Note
HI Robin,
As per the discussion i raised new query of the same issue.
Thank you for sharing the document.
I Hope your colleague will respond soon as possible for the query. meanwhile can you clarify following points.
> Where can i initialize Lpuart_Uart_Ip_StateStructureType structure.
It seems it holds rx and tx buffers and other related information. But in application i did not intialized these struct variables. and it says driver doesnot provide memory for it.
So how can we initiate this struct. ?
> from where can i get received bytes?
in some other example i have seen they are setting callback event. But here i did not find any settings like that. instead i hope we can check in call back when it called by checking Lpuart_Uart_Ip_EventType.
is it correct ?
-Nikhil
Hi
I checked the project you sent me via private message and found that you forgot to enable the Peripheral Clock of LPUART0.
Best Regards,
Robin
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------