Skip to main content

All Questions

Tagged with
0 votes
0 answers
14 views

AT32F403AVGT7 how to set CAN baud rate for this controller

I am using AT32F403AVGT7 controller but I am not getting any CAN response due to incorrect baud rate. Does anyone know how to set baud rate for this controller? I will share my code below: ...
AKASH SONKAMBLE's user avatar
2 votes
0 answers
202 views

STM32F107 CAN software driver does not work

I am using ST drivers to use CAN bus on an STM22F107 according to the code below. It does not work. The code is as below and is available here. ...
user15847's user avatar
  • 113
0 votes
2 answers
408 views

Problem interfacing SD card module and CAN bus MCP2515 module simultaneously on Arduino Uno

I am trying to log data received from a CAN bus to an SD card using an arduino Uno. Each module works perfectly on its own, but when joining both modules together the CAN bus receives data normally, ...
Mostafa Mahmoud's user avatar
1 vote
2 answers
5k views

CANBUS Masking and Filtering

I am using a module to convert CAN to UART. This module has 2 programmable masks and 6 programmable filters. There are 13 message IDs that come in over the CAN bus and I only want 9 of them. The IDs ...
Adam's user avatar
  • 95
0 votes
0 answers
638 views

Normal Mode of CAN Controller in STM32L476 Nucleo Board is Not Working

I am using STM32L476RG Nucleo board which contains only one CAN controller(bx_CAN1) and SN65HVD233 as a CAN Transceiver. I could able to test the CAN controller by using "LOOPBACK Mode". ...
Rahul Ramesh's user avatar
2 votes
1 answer
1k views

STM32 Unexpected Interrupt causes program to jump in infinite loop

Struggling with this issue for days now and can't find a solution. Maybe someone saw something like this before and can give me a hint. I have FreeRTOS running on an STM32L4 with different tasks. One ...
po.pe's user avatar
  • 2,566
0 votes
1 answer
146 views

Approach to prevent Replay and spoofing attack on CAN protocol

I want to make an authentication system between 2 buses. In order to achieve that I use counter to avoid replay and hash to avoid spoof. The message must be sent in two phases. Is there any proper way ...
Kylee Holcomb's user avatar
0 votes
1 answer
1k views

STM32F103 bxCAN not working

I'm trying to make use of the bxCAN of STM32F103C8 on a bluepill but it doesn't work and I don't know what is the problem.I'm using the hal API here is the main code in the while loop ...
Jwdsoft's user avatar
  • 155
0 votes
1 answer
516 views

CAN bus malfunction on STM32F3

I create applications for STM32 F303RE for communication with the instrument panel. I managed to connect everything but I have some problems. I'm not sure if it's due to bad code or good performance. ...
Daniel's user avatar
  • 31
1 vote
1 answer
736 views

NAK in CAN bus for STM32F3 uC

I have a problem with the NAK on the CAN bus. On STM32F303RE I wrote a code for communication via CAN bus with car dashboard (Instrument Panel Cluster). The communication works, I manage to receive ...
Daniel's user avatar
  • 31
1 vote
1 answer
93 views

Canbus over canberry with raspberry pi two messages together at the same time

Im using a canberry with raspberry pi. Is there any way possible to send two messages at the same time with same id and be received by the other raspberry without any particular chance of getting a ...
Kylee Holcomb's user avatar
2 votes
2 answers
3k views

Sending a double type value over CAN Bus

I need help to send a double value using a CAN Bus. I am working on a eletronic traction control and i need to send, by a CAN bus, the calculated values of speed of wheels. The problem start when the ...
BioByte's user avatar
  • 23
3 votes
3 answers
6k views

STM32 CAN bus receive interrupt is sometimes not fired, and CAN transmit sometimes times out

I have two STM32 boards connected via a CAN bus. They periodically transmit a message to each other. For some transmissions however, HAL_CAN_Transmit returns with ...
tyr.bentsen's user avatar
4 votes
6 answers
2k views

How to deal with signed int overflows

Brief background first; I have data from CAN bus of a steering angle which is obviously in hex. The steering angle covers two bytes of a message. The specification document I have says that those two ...
Shibalicious's user avatar
1 vote
0 answers
806 views

STM32F407VG DISCOVERY BOARD micro controller CAN messages

I am wondering if anyone is familiar with any STM32f407VG micro-controllers? If so, I am having some problems configuring a CAN driver. I can run the demo code, which is set to a loop-back mode, but ...
Naveenreddy's user avatar
1 vote
1 answer
75 views

Why CAN controller is causing fault codes

We have been working on a PCB project that has an atMega1281 AVR, MCP2515 CAN controller and MCP2551 Transceiver. We have the boards engineered and and the code is complete on the AVR. During testing, ...
Eddie's user avatar
  • 135
0 votes
1 answer
5k views

STM32F7 CAN message stuck in mailbox and error frames on bus

Since I am rather new to using CAN I'm not sure what information that is relevant but I will try and describe the best I can. I have a STMF746 that I want to use the CAN bus on. I have PD0(CAN1_Rx), ...
user3660570's user avatar
1 vote
1 answer
430 views

NAK in CAN when programming stm32f407vg uC

I am getting NAK error in CAN communication. Not really sure why, also frame itself is quite strange as in program I am sending different things. I have got two devices and therefore I monitor 4 ...
DawidPi's user avatar
  • 121
2 votes
1 answer
160 views

Scheduling the transmision of CAN frames in an RTOS

I'm planning to use my STM32 board to send CAN frames. I implemented a simple scheduler that contains 10 tasks; one task will be responsible for sending frames. To do the job I declared a structure ...
fedi 's user avatar
  • 183
0 votes
1 answer
4k views

CAN bus acknowledgment error

I am using an STM32F429 CAN bus program with TJA1041A as the CAN transceiver. The problem is that the messages are not getting acknowledged, and herewith I am attaching the code for further reference. ...
user2870154's user avatar
2 votes
2 answers
898 views

Best method to transfer two int percentage values over a CAN bus

I have two integers: int A is a value from -100 until 0 and int B is a value from 0 to 100 What is the most effective way to put this into a CAN message and decode it again at the other ...
kimliv's user avatar
  • 628