Author Topic: FD-CAN-BUS: busy without beeing connected to bus (STM32G431)  (Read 944 times)

0 Members and 1 Guest are viewing this topic.

Online eTobeyTopic starter

  • Frequent Contributor
  • **
  • Posts: 557
  • Country: de
FD-CAN-BUS: busy without beeing connected to bus (STM32G431)
« on: December 05, 2023, 07:34:02 pm »
Hi,

i got stuck on the FDCAN on the G431. Trying to get messages and interrupt. Neither works. Strange state.

I had made sure, that there is a signal and everything is activated that is needed (what i think/found). And then i just disconnected the bus, and still the state is busy.
The output is:
RxId: 0 RxLevel: 0 Status: 2

One bit is exactly 2us.

I guess its something with the init? There is not really anythin else running.
« Last Edit: December 05, 2023, 07:39:33 pm by eTobey »
"Sometimes, after talking with a person, you want to pet a dog, wave at a monkey, and take off your hat to an elephant." (Maxim Gorki)
 

Offline Dave

  • Super Contributor
  • ***
  • Posts: 1352
  • Country: si
  • I like to measure things.
Re: FD-CAN-BUS: busy without beeing connected to bus (STM32G431)
« Reply #1 on: December 06, 2023, 01:19:29 pm »
Show us how your CAN transceiver is connected to the MCU.
<fellbuendel> it's arduino, you're not supposed to know anything about what you're doing
<fellbuendel> if you knew, you wouldn't be using it
 

Online eTobeyTopic starter

  • Frequent Contributor
  • **
  • Posts: 557
  • Country: de
Re: FD-CAN-BUS: busy without beeing connected to bus (STM32G431)
« Reply #2 on: December 07, 2023, 01:13:38 am »
Never mind...
HAL_FDCAN_Start sets the state as busy, and leaves with a HAL_OK.

Busy is the new ready...

I got to drop this HAL ASAP.
"Sometimes, after talking with a person, you want to pet a dog, wave at a monkey, and take off your hat to an elephant." (Maxim Gorki)
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf