# Flexcan_Demo
---

## Function Description

This example demonstrates the usage of FlexCAN and its self-test procedure:

- Short CAN0_H to CAN1_H and CAN0_L to CAN1_L on the board to perform self-test
- Baud rate: 500Kbps
- CAN0 uses:
    - Mailbox-1 to alternately transmit standard frames with ID 0x003
    - Mailbox-3 to transmit extended frames with ID 0x70012
    - Mailbox-0 to receive standard frames with ID 0x003
    - Mailbox-2 to receive extended frames with ID 0x70012
- CAN1 is configured identically (same mailbox and ID assignments)
- Both CAN0 and CAN1 print the content of received messages in real-time
- The self-test concludes after CAN0 transmits 10 messages
 
---

## Hardware Requirements

+ **EVB**: YTM32B1HA01-EVB-Q176
+ **Debugger**: J-LINK v9.2 or later version

---

## Software Requirements

+ **SDK**      : YTM32B1HA0_1_4_0 or later version
+ **GCC**      : GNU GCC v10.3 or later version
+ **Keil/MDK** : ARM Keil/MDK v5.36 or later version
+ **IAR***     : IAR v8.4 or later version
+ **VS Code**  : Microsoft Visual Studio Code IDE v1.76 or later version(GNU GCC toolchain, CMake v3.25, ninja, Cortex-Debug extensions installation required)
+ **J-LINK** : SEGGER JLINK v6.96 or later version, YTM32B1HA0 patch(support package) installation required.
+ **Ozone**  : SEGGER Ozone v3.28 or later version.
  
---