TIDUET7G September 2019 – October 2023
With both flash banks of the device programmed with the custom bootloader and Application images, the LFU demonstration is now ready to run in Standalone mode.
To confirm successful switchover, a variety of different signals, registers and LEDs on the device can be observed.
Apply power to the board. At this point, verify that LED2 (GPIO34 – D2) is OFF and LED1 (GPIO31 -D1) is ON. This indicates that the Bank0 application is the active application being run. If both LEDs (D1 and D2) are ON, then Bank1 is the active application. Observe that the PWMs gate driver signals are not visible on an oscilloscope. This is due to the software waiting for the SCI autobaud lock command from the Microsoft® Windows® PC.
To enable SCI autobaud lock, execute a command from the Microsoft Windows command prompt. This command is similar to the command previously entered when programming bootloader and application. An example command follows:
serial_flash_programmer_appln.exe -d f28003x -k
f28003x_fw_upgrade_example\flash_kernel_ex3_sci_flash_kernel_bank0.txt -a
f28003x_fw_upgrade_example\llc_f28003x_BANK1FLASH.txt -b 9600 -p
COM5
Now observe on the controlCARD that the LED1 toggles, thus confirming the execution of the LLC_HAL_toggleLED () function in the background task B1 in llc_main.c. LED2 is OFF if Bank0 has the active application and ON if Bank1 has the active application.
The command prompt window shows the same option flash programming options as previously shown. The device is now ready to switch to the other flash bank. To switch execution to the other bank, Enter “8 – Live DFU” – this programs the new firmware to the inactive bank. When complete, Enter “0 – Done” to complete the process. During downloading to Flash, LED1 stops toggling because background tasks are halted.
After programming the new image to the device, LED2 and LED1 switch from ON to OFF (Bank 1 -> Bank 0) or from OFF to ON (Bank0 -> Bank1). This indication of execution of the new image.
The PWM signal waveforms should now be updated with the new targeted switching frequency (200 kHz) as shown in green (M1), see Figure 3-38.
Another step that can be confirmed is the programming of new coefficient for the DF22 controller, this can be done by loading the symbols of Bank0 application into CCS prior to LFU and looking at the contents of the LLC_ctrl_DF22 structure. Specifically observing the targeted control loop parameters b0, b1, and b2. Once the LFU is complete, the symbols for the Bank1 application can be loaded into CCS and the targeted parameters can observed to confirm the switchover and execution of the new image and the appropriate settings. Figure 3-39 illustrates the coefficient values prior and post LFU.