# dsp_eth_boot **Repository Path**: sunwwang/dsp_eth_boot ## Basic Information - **Project Name**: dsp_eth_boot - **Description**: dsp6678网络加载 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 2 - **Created**: 2022-05-19 - **Last Updated**: 2024-12-05 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # DSP网络加载配置教程 ## 一、简介 网络加载方式,是通过配置dsp的启动模式,使DSP通过网络IP地址和TFTP文件系统,DSP从指定的远程TFTP服务器上下载镜像启动的一种程序加载方式。 该方式是基于TI官方的中间启动加载器(Intermediate Boot Loader,简称IBL),IBL启动流程图如下: ![image-20220519153752421](typora-user-images/image-20220519153752421.png) DSP 上电以后,通过 RBL 从 I2C 启动,读取 I2C EEPROM 里的 IBL 程序并执行,同时用户可以通过对 DSP 管脚的配置选择 IBL 启动的分支如 NAND FLASH,NOR FLASH 或 TFTP,IBL 会配置对应的接口设备,并从 中取得启动镜像后跳转到用户的程序入口处开始执行。 ## 二、文件介绍 ### 2.1 1.IBL 该文件夹里,放置的是V2/V3/V4信处版用到的IBL文件及配置文件,其中V2/V3共用同一套文件。 主要文件介绍如下: | **i2crom_0x51_c6678_le.bin** | **IBL文件,将被烧写至EEPROM中** | | ------------------------------------ | ------------------------------------------- | | **i2cparam_0x51_c6678_le_0x500.out** | **执行程序,配合下面的gel文件,配置IBL** | | **hhkyi2cConfig_ethBoot.gel** | **gel文件,配合上面的out执行文件,配置IBL** | ### 2.2 2.Dsp_project DSP烧写工程。需要用CCS打开,这里烧写IBL只用到eepromwriter_evm6678l a) 打开CCS,选择工作空间路径; ![image-20220519162224623](typora-user-images/image-20220519162224623.png) b) 选择eempromwriter_evmc6678工程,配置好仿真器连接: ![image-20220519162710471](typora-user-images/image-20220519162710471.png) ### 2.3 3.Fpga_Spartan3 FPGA spartan3烧写文件,用来配置DSP的启动方式 | no_boot.bit | 配置DSP不加载,只能通过仿真器下载程序 | | ---------------- | ---------------------------------------------------------- | | **eth_boot.bit** | **配置DSP网络加载方式,从指定的远程服务器加载out文件程序** | 用impact.exe软件进行烧写,烧写完成后,重新上电,工作模式才能生效; ![image-20220519163230829](typora-user-images/image-20220519163230829.png) ### 2.4 4.Reference 为参考文档文件夹,包含一些官方说明文档。 ## 三、操作步骤(以V4为例) ### 3.1 设置DSP加载方式为no_boot。 用impact.exe软件对Spartan3烧写no_boot_v4.bit文件,烧写完成后,重新上电。 ![image-20220519165551769](typora-user-images/image-20220519165551769.png) ### 3.2 将IBL烧入EEPROM中 a) 将【1.IBL/V4】文件夹中i2crom_0x51_c6678_le.bin和i2cparam_0x51_c6678_le_0x500.out文件,拷贝到【2.Dsp_project\writer\eepromwriter_evmc6678l\bin】文件夹中 ![image-20220519164605392](typora-user-images/image-20220519164605392.png) b) 确认【2.Dsp_project\writer\eepromwriter_evmc6678l\bin】文件夹中eepromwriter_input.txt中的内容如下: ![image-20220519164647383](typora-user-images/image-20220519164647383.png) c) 确认仿真器连接配置,gel文件选用hhky6678l_v4.gel,在【1.IBL/V4】文件夹下 ![image-20220519165743964](typora-user-images/image-20220519165743964.png) d) 单击CCS爬虫按钮,下载eepromwriter_evmc6678工程,在Memory Browser中输入0x0c000000,并选择Load Memory,选择bin文件夹下的i2crom_0x51_c6678_le.bin文件,加载至地址0x0c000000 ![image-20220519170217916](typora-user-images/image-20220519170217916.png) ![image-20220519170326159](typora-user-images/image-20220519170326159.png) ![image-20220519170401582](typora-user-images/image-20220519170401582.png) ![image-20220519170454541](typora-user-images/image-20220519170454541.png) ![image-20220519170510732](typora-user-images/image-20220519170510732.png) e) 运行eepromwriter_evmc6678l,直到Console显示烧写成功 ![image-20220519170831763](typora-user-images/image-20220519170831763.png) ### 3.3 配置IBL a) 在上面的工程基础上,不退出CCS,直接单击下载按钮,下载 i2cparam_0x51_c6678_le_0x500.out ![image-20220519171103433](typora-user-images/image-20220519171103433.png) ![image-20220519171146624](typora-user-images/image-20220519171146624.png) b) 单击菜单栏Tools/GEL files,在右下角GEL Files框中,删除原有的gel文件,load 1.IBL/V4文件夹里的hhkyi2cConfig_ethBoot_V4.gel ![image-20220519171317273](typora-user-images/image-20220519171317273.png) ![image-20220519171426036](typora-user-images/image-20220519171426036.png) c) 双击打开hhkyi2cConfig_ethBoot_V4.gel,修改hotmenu setConfig_c6678_main()函数中的serverIP,即为加载电脑地址IP,然后保存 ![image-20220519171742114](typora-user-images/image-20220519171742114.png) d) 先运行i2cparam_0x51_c6678_le_0x500.out,然后单击菜单栏Scripts - EVM c6678 IBL - setConfig_c6678_main,等待几秒钟,然后单击Console栏空白处,回车,会显示I2C table write complete,表示配置完成。 ![image-20220519172142967](typora-user-images/image-20220519172142967.png) ![image-20220519172314779](typora-user-images/image-20220519172314779.png) ### 3.4 配置DSP加载方位为网络加载 a) 重新用impact.exe烧写Spartan3,烧写eth_boot_v4.bit。 ![image-20220519172526906](typora-user-images/image-20220519172526906.png) b) 烧写成功后,然后重启,观察tftp软件,是否显示,正在加载 ![image-20220519172645973](typora-user-images/image-20220519172645973.png) ## 四、注意事项 1)步骤3.2中,配置好out文件和gel文件后,一定要先运行i2cparam_0x51_c6678_le_0x500.out,然后单击菜单栏Scripts - EVM c6678 IBL - setConfig_c6678_main,等待几秒钟,然后单击Console栏空白处,回车; 2)步骤3.4中,如果tftp软件不加载,注意查看是否关闭防火墙。参考Reference文件夹里的文档文件《Tftpd64安装及使用说明.docx》