1. Development EnvironmentOnly for visual DSP
4.5Debugging is performed, but 5.0 does not.
2. directory structure1. During the transplantation process, the original directory structure is basically retained. 2. A new vdsp subdirectory is created under the root directory to save the vdsp project files and generated temporary files. The final dxe file is also saved here. 3. Change the ASM-Blackfin name in the include directory to ASM, because alias cannot be used in windows.
3. Code Modification1. During the porting process, all codes are commented out by using tools, and corresponding annotations are removed as needed. So if you find that functions or struct that can be used elsewhere cannot be used here, or there is a link error, do not be surprised. Please look for the declaration or implementation in the source file, remove the comments. 2. Modify the corresponding hardware configuration in include/configs/bf561-ezkit.h, Please modify parameters such as serial port, SDRAM. 3. For a self-added command, add a dummy function and reference it in the main function. Otherwise, the link cannot be correctly linked. 4. For files automatically generated during make or configure, such as include/version_autogenarated.h, the method is to generate the files in Linux first, and then copy the files, if you find any automatically generated files are missing, refer to this method.
4 CRTThe CRT provided by U-boot is CPU/bf561/start. S. However, for convenience, the CRT file generated by the vdsp wizard u_boot_basic_crt.s is not used. Therefore, you cannot find the start. s and start1.s files in the project. After the SDRAM Initialization is completed in start. S, I put this part of Code independently in the Maina/init_sdram.c file and call it in the main function. Because the CRT file generated by the vdsp wizard is used, you should be able to call functions in the vdsp library.
5. Link fileThe original U-boot link file is a board/bf561-ezkit/u-boot.lds.s that is not used in planting, but instead uses the LDF file generated by the vdsp wizard, but some modifications were made with reference to the content of the u-boot.lds.s.