2017-05-11 11:49 PM
HI ,
Am facing issue in recieving interrupt in COntrol area netwaork of Stm32f427zgt6 controller,
I have set Can as Master mode .
Also when a single slave is connected with ID - 0 , Can peripheral do not sense interrupt, but moment a new ID is added in paraller as a slave with ID - 1, both statrt to get sense.
Can any one explain this behavior , also y am not recieving interrupt when single slave is connected with ID-0
?
Rohit
Thanks in advance.
#stm32f427 #controller-area-network2017-05-12 01:24 PM
Really not making a lot of sense.
Do you have the Filters set up correctly? CAN2 requires CAN1 to be functioning.
All nodes see the same traffic, a node can pull multiple different message ID. Try using Message ID 1 and 2
2017-05-13 12:57 AM
Thanks Clive fro your reply,
I tried ID-1 and 2 , but still no interrupt is coming.
2017-05-13 03:04 AM
Dear clive i wanted to share register values am obtaining while debugging , please have a look.
Above image is the image taken when no slave device is connected.
Above image taken when slave with ID-1 connected to my hardware, please have a look at ESR register, which is CAN error status register. Which shows lot of errors registered upon recieve of data, but still i didnt recieve any interrupt..
2017-05-13 08:01 AM
You'd have to dig into the HAL to understand why the interrupts are not dispatched to you.
Yes the error count looks very high, perhaps you should be looking at the transceivers and termination on the bus, especially if add additional devices to the bus changes its behaviour.
2017-05-15 08:48 AM
Hi
KAdecha.Rohit
,Which firmware package are you using?
Please make sure that you are using the latest version of STM32CubeF4 which includes HAL CAN updates, thenKeep us informed about your updates.
Thanks
Imen
2017-05-15 10:21 PM
Hi Imen,
Thanks for your reply.
Am using is 'STM32Cube_FW_F4_V1.14.0'.