TMS320C6678 Development Routine User Manual Study Part 3
[Copy link]
Burning multi-core and multi-image files
The GEL file here uses the DSP_C6678_MultiCoreBoot.gel file in the Images folder of the CD. Please install Python 2.x or above in advance. The installation program is in the folder "Demo\HostApp".
The following steps are used to burn multi-core multi-image files into NAND FLASH. The specific burning steps are as follows (refer to the above section for some similar burning steps. The key steps are described here. If you need to burn into NOR FLASH, you can directly use this GEL file and burn it with the NorFlashWriter.out program).
Generate a single flashable file
In the "Demo\HostApp\MultiCoreBoot\Image Create\Config" folder, use WordPad to open the deployment_C6678_bypass_prelink.json file, modify the corresponding multi-core image file path (stored in the App directory), and then save and close it, as shown in the figure:
Return to the previous directory, open the Build.bat file in edit mode, modify the path of the C6000 compiler tool and the installation path of Python, save and close. Double-click the Build.bat file again to generate a single programmable file C6678-le.bin, which is saved in the newly generated images folder at the same level.
Select GEL file
The multi-core IBL MAD boot image is generated and uses the configured .gel file, DSP_C6678_MultiCoreBoot.gel file in the "Demo\HostApp\MultiCoreBoot\IBL Config" directory.
Connect the development board CPU and load the i2cparam_0x50_tl6678_little_0x500.out file, which is in the folder "Demo\HostApp\MultiCoreBoot\IBL Config".
After loading, be sure to click the Run button, and then click "Scripts->EVM TL6678 IBL->SetConfig_TL6678_main" (Note: you must first run the i2cparam_0x50_tl6678_little_0x500.out file, and then configure the IBL under the script, otherwise an error will occur).
In the Console window, press Enter. The modification is successful and the configuration has been successfully saved in I2PROM.
All Rom boot modes are supported through IBL configuration. The reference document in the CD contains "DSP C6678 Boot Mode Summary". When ibl.RomBoot.Enable=TRUE; IBL will modify the boot configuration register according to the value set by ibl.RomBoot.Mode and then jump to Rom Bootloader to execute the remaining boot process (note that IBL boot will not be executed at this time, so if IBL boot is required, this configuration item should be set to FALSE). Set ibl.RomBoot.Mode=0x00001809 as shown in the figure (only the lower 16 bits are valid):
Loading multi-core image files
Follow the steps to load the burning tool program, modify the C6678-le.bin program file name to app.bin. Then load the multi-core image file. The detailed steps are as follows.
Load the burning tool program file NandFlashWriter.out, as shown below:
Loader image file
Click "View->Memory Browser" in the CCS menu bar, click the "Save Memory" button in the pop-up interface, and then select "Load Memory" in the drop-down box, as shown in the following figure:
Select the program file and select "Raw Data Format (.bin)" as the file type, as shown below:
Click Next, enter the starting address in the pop-up interface: 0x80000000, enter the data type: 32 bits, and then click Finish to wait for the loading to complete, as shown below:
Click the Run button to start burning the program. After the burning is successful, the Console prompt information is similar to the following figure:
Unplug the emulator, put the development board into the corresponding startup position, and the program will run normally.
Note: If the program does not run after being burned in, you can verify whether the startup image is generated correctly by the following methods. The steps are as follows.
Click "View->Memory Browser" in the CCS menu bar, click the "Save Memory" button in the pop-up interface, and then select "Load Memory" in the drop-down box, as shown in the following figure:
Select the program file and select "Raw Data Format (.bin)" as the file type, as shown below:
Click Next, enter the starting address in the pop-up interface: 0x9e000000, enter the data type: 32 bits, and then click Finish to wait for the loading to complete, as shown below:
Modify the address of DSP CPU PC pointer address to 0x9E001040:
Click the Run button, and the serial port prints information, just like running the .out file, which proves that the program is generated correctly. Please check whether other operations are standardized:
|