STM32CubeMX (MCUs)

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

HAL_CAN_Start(&hcan) returns error 0x01

Dear all,I'm using stm32f412ret6 MCU in my custom made board. The code used is as below.The HAL_CAN_Start function returns HAL_ERROR.when debugged the issue is timeout with in the HAL_CAN_Start function.I don't understand if I'm going wrong any where...

Aarra.1 by Senior
  • 1951 Views
  • 7 replies
  • 0 kudos

Resolved! Including FATFS with CubeMX breaks everything.

Using an stm32f105RBt6 : i have a working project with canbus and USBdevice.i have another working project with canbus and FAtFS(SPI-sd card)None of them work once i include FATfs+USBCDCdevicei dont know what to make up from this, last time i had a s...

0693W00000LzMWPQA3.png 0693W00000LzMTVQA3.png
Javier1 by Principal
  • 744 Views
  • 7 replies
  • 0 kudos

Resolved! HAL_CAN_INIT is producing a TIMEOUT error.

I am using CAN in normal mode and produced code using STM32CubeMX ide for Keil uVision IDE. While running the code my program stuck in HAL_CAN_INIT(). It produces a timeout error.I am not having any CAN transceiver so I am having only STM32 Nucleo Bo...

GAgar.1 by Associate
  • 483 Views
  • 1 replies
  • 0 kudos

Resolved! i'm using STM32F730 and trying to use CAN in LOOPBACK mode. i'm using HAL_CAN for programming and STM32MXcube for configuration purpose. The transmission is successful (TXOK0=1 and RQCP0=1) but i'm unable to observe any activity in receiver FIFO.

i have attached my code. i have not configured any filters till now, as i'dont want to use them. is it necessary to configure them for receiver purpose. plz guide me where i'm wrong. is there any problem with my bit timing. i have used 120ohm resisto...

NSing.5 by Senior
  • 417 Views
  • 2 replies
  • 1 kudos

I2C2 conflict with CAN2

Hello, I am going to use CAN1, CAN2 and I2C1, I2C2. As the attached picture shows, the I2C2 has a conflict with CAN2. IS there any way to fix it? I have to use both CAN modules and two I2C's. Thank you.

NASI by Senior
  • 425 Views
  • 3 replies
  • 0 kudos