Skip to main content

All Questions

Tagged with
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
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
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
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
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
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
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
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
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
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
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
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
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
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

15 30 50 per page