kywwilson11 opened a new pull request, #15411:
URL: https://github.com/apache/nuttx/pull/15411

   ## Summary
   
   This pull request adds the FDCAN character driver to the STM32H5 
architecture. This driver is heavily based on the stm32 driver for the STM32G4. 
The STM32G4 and STM32H5 have identical register sets for FDCAN.
   
   There were some minor changes vs the STM32G4 implementation:
     1. Changes for Queue Mode. fdcan_txempty needed modifications. See commit 
log. 
     2. Automatic calculation of bit timing - Ported STM32H7 fdcan_bittiming 
function to be used here. Automatic bit timing is an option and can be 
overridden with Kconfig settings like the STM32G4 does. 
     3. STM32H5 has only 2 FDCAN devices vs 3 on the STM32G4.
    
   ## Impact
   
   This should only impact the STM32H5 architecture. 
   
   ## Testing
   
   1. Tested both FDCAN1 and FDCAN2 by utilizing the can example nuttx 
application. 
   5. Tested in standard CAN mode externally with PEAK PCAN device on both 
FDCAN1 and FDCAN2. 
     a. Used Adafruit TJA1051T transceiver.  
   6. Tested CAN FD mode in loopback mode on both FDCAN1 and FDCAN2. 
   7. Tested CAN FD mode with bit-rate switching (BRS) in loopback mode on both 
FDCAN1 and FDCAN2.
   8. Tested FIFO mode and Queue mode. 
   9. Utilized logic scope in debug and to confirm BRS functionality. 
   
   Another pull request will follow this one with changes in the 
boards/arm/stm32h5/nucleo-h563zi directory. 
   
   
![peak_can_test](https://github.com/user-attachments/assets/9e74e975-eac2-4e54-961d-314e46003bd3)
   
   
[devttyACM0_2025_01_02.12.38.53.326.txt](https://github.com/user-attachments/files/18293657/devttyACM0_2025_01_02.12.38.53.326.txt)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to