11.4.1 Hardware Design Flow

The following figure shows how to enable the CAN controller in the MSS configurator for the Libero SoC design project.

Figure 11-9. Enabling CAN Controller With MSS Configurator

When the CAN is enabled, CAN_RX, CAN_TX, and CAN_TX_EN_N gets promoted to the top MSS component.

Figure 11-10. CAN Signals

Generate the component by clicking Generate Component or by selecting Generate Component from the SmartDesign menu. The firmware driver folder and the SoftConsole workspace are generated and included in the project automatically.

For firmware development, double-click Export Firmware under Handoff Design for Firmware Development in the Libero SoC design flow window to generate the SoftConsole Firmware Project. The SoftConsole folder contains the required mss_driver, which provides a set of functions to control the MSS CAN peripheral.

Important: If the drivers are not generated, make sure that the CAN firmware driver downloaded into the vault from the repositories is available and Generate option is enabled in the DesignFirmware window.
Figure 11-11. Firmware Driver Enable and Generate