cancel
Showing results for 
Search instead for 
Did you mean: 

LIN BUS RECEIVE INTERRUPT

in mozbek we trust
Associate II

Hey there,

I can finally send lin messages from stm32. But now i want to receive and handle received LIN messages. But in datasheet of mcu says receiving is totaly independent from normal usart receiver.

I can not find any example to receive interrupt. Does anyone know how to handle receiving LIN messages.

I use mcu as : stm32f091cc

my transmitter is : peak device and plin viewer api.

Regards

5 REPLIES 5
T J
Lead

are you receiving the Lin frame into the DMA buffer ?

how long is the normal frame ? maximum ? minimum ?

in mozbek we trust
Associate II

No i have no idea on it. I just try enable USART interrupts but it didnt worked. Should i use DMA buffer.

cflor
Associate

hi i can obtain message for NVIC interrupt using protocol UART/USART i am using stm32f3 (slave), stm32f7 (master) node 0690X000006CTOeQAO.png

transceiver is mcp2021

hey i also solve this problem if you have any problem i can help you

Samuel1
Associate III

@in mozbek we trust​ did you use HAL-function ? i am stucking there because STM32F4 has just 11 bit brak field