Customization of two CAN interfaces
Controller Area Network (CAN) is a control network protocol of Bosch, widely used in industrial automation and the automotive industry.
The customer needs MCU to implement two CAN interfaces. Currently, AG32 already supports one CAN interface. It can be considered to use CPLD logic to implement a second CAN interface.
Through open-source Opencore( https://opencores.org/projects/can )You can try to implement the CAN functional interface through CPLD, which requires approximately 1.5K logic, but the functionality needs to be tested.

Note: Most patents of CAN belong to Bosch, and although there are no restrictions on developing open-source CAN IPs, a Bosch license is an essential prerequisite for any commercial use.
The AG32 series MCU products have built-in CPLD logic inside the chip, which can effectively meet various interface customization needs and reduce customer BOM costs.

Plan features:
1. AG32 has a maximum clock frequency of 248MHz and a wide range of peripherals, including five UARTs, two I2Cs, and supports USB, CAN, and SPI channels. With its high-speed instruction execution speed, convenient JTAG debugging method, and low power consumption, it provides a relatively complete platform for data acquisition and processing design.
2. AG32 has a 3x12 bit maximum of 3M SPS ADC (17 channels), 2 DACs, and provides two dual channel comparators.
3. AG32 is initially compatible with STM32 pins, but can be flexibly redefined through configuration files for use by MCU and CPLD in the kernel, thus providing more GPIO ports than STM32.
4. The MCU and CPLD of AG32 communicate at high speed through the internal AHB bus of the chip, far exceeding the speed of traditional SPI.
5. AG32 has a built-in CPLD that enables customized logic functions for customers.
6. Provides over 32/48/64/100 packages.