SLAAEL6 September 2024 MSPM0G3507
The high-level flow in the sample code is shown in Figure 4-1. Throughout the flow, the number of devices and addresses on the FlexWire bus are used. This is specified in the files system_info.h and system_info.c and is described in more detail in Section 4.2.
The Setup MCU configures the UART interface and sets to 750000 bauds. After unlocking the LED driver, M0 check if the animation mode or EEPROM programming mode has been selected. How to change between the modes is described in Section 4.2. During the animation mode, a LED pattern is executed and after completion the diagnostics results are checked. More information about diagnostics can be found in Section 4.3. After the diagnostics, M0 check if the button S2 on the LP-MSPM0G3507 was pressed. If button is not pressed, the same LED pattern executes again. If button is pressed, the next LED pattern executes until all 6 patterns have been executed and the loop restart from the first pattern again.
During the EEPROM programming mode, both buttons S1 and S2 on LP-MSPM0G3507 are used and LED2 to provide feedback to the user. When the non-default EEPROM programming is selected, files eeprom_data.h and eeprom_data.c are used to program the EEPROM. These files can be automatically generated by the EEPROM Configuration Tool mentioned in Section 2. More information about EEPROM programming can be found in Section 4.4.