SPRUII0F May 2019 – June 2024 TMS320F28384D , TMS320F28384D-Q1 , TMS320F28384S , TMS320F28384S-Q1 , TMS320F28386D , TMS320F28386D-Q1 , TMS320F28386S , TMS320F28386S-Q1 , TMS320F28388D , TMS320F28388S
This section details the software initialization sequence when configuring CPU1 or CM as ESC owner. The CM sequence includes details on allocating ownership of the ESC peripheral.
Step | Action |
---|---|
1 | General device initialization (configure clock, enable PLL, enable peripheral clocks except EtherCAT) |
2 | Configure Aux Clock for EtherCAT (if using Aux clock as source) |
3 | Configure GPIOs for EtherCAT (set pin configurations, set GPIO qualification mode, set pad configuration) |
4 | Initialize interrupts and register ISR handlers |
5 | Set EtherCAT clock source and divider. Then configure if EtherCAT PHY is clocked from device or external PHY clock. |
6 | Configure the EEPROM size |
7 | Bring ESC out of reset using system control register |
8 | Perform EtherCAT memory initialization and wait until memory initialization is complete |
9 | (Optional) Enable debug access to the EtherCAT registers |
10 | (Optional) Check that EEPROM loaded successfully |
11 | EtherCAT subsystem configurations for interrupt masking, SYNCx connections, and so on(1) |
Step | Core | Action |
---|---|---|
1 | CPU1 | General device initialization (configure clock, enable PLL, enable peripheral clocks except EtherCAT) |
2 | CPU1 | Configure GPIOs for EtherCAT (set pin configurations, set GPIO qualification mode, set pad configuration) |
3 | CPU1 | Allocate ESC to CM |
4 | CPU1 | Configure CM clocks and release CM from reset to wait mode |
5 | CPU1 | Configure Aux Clock for EtherCAT (if using Aux clock as source) |
6 | CPU1 | Set EtherCAT clock source and divider. Then configure if EtherCAT PHY is clocked from device or external PHY clock. |
7 | CPU1 | Set CM boot mode and boot CM to start application |
8 | CPU1 | General Device Initialization |
9 | CM | Initialize interrupts and register ISR handlers |
10 | CM | Configure EtherCAT EEPROM size |
11 | CM | Bring ESC out of reset using system control register |
12 | CM | Perform EtherCAT memory initialization and wait until memory initialization is complete |
13 | CM | (Optional) Enable debug access to the EtherCAT registers |
14 | CM | (Optional) Check that EEPROM loaded successfully |
15 | CM | EtherCAT subsystem configurations for interrupt masking, SYNCx connections, and so on(1) |