发 帖  
原厂入驻New
[问答]

HPI加载DSP AIS文件后,DSP无法自己运行的原因?

2020-7-27 14:45:32  83 DSP
分享
DSP型号:C6748
FPGA在用HPI加载DSP的AIS文件后,FPGA将HPIC控制寄存器的DSPINT位写1,通知DSP程序加载结束。
按照Using the TMS320C6748/C6746/C6742 Bootloader文档3.2的描述,
Host Port InteRFace (HPI) Boot
HPI boot happens from the HPI0 peripheral in 16-bit mode. The sequence to boot from HPI is listed
below:
• Bootloader interrupts the host by setting the HINT bit, in the HPIC register, to inform that it is ready and
that the host can start loading the application image to device memory.
• Host acknowLEDges this interrupt by clearing the HINT bit.
• Host loads the application image to device memory and writes application entry point to location
0x11800000 in device memory.
• Host reads back the final word it wrote to device memory to make sure all HPI writes have completed
successfully.
• Host interrupts bootloader by setting DSPINT bit in HPIC register to inform that loading of application
image is complete.
• Bootloader acknowledges host by clearing DSPINT bit.
• Bootloader reads application entry point (written by host) from address 0x11800000 and branches to it.
FPGA将DSPINT位置1后,Bootloader应该会自己从0x11800000获取C程序入口地址,然后执行。
通过CCS观察0x11800000处C程序入口地址正确,指向“c_init”。
问题:FPGA将DSPINT写1后,DSP没有运行,需要从CCS软件上执行RUN的操作DSP才能正常运行。
此时用JTAG线连着DSP,但并没有通过JTAG下载DSP程序,而是通过FPGA用HPI口加载。
0
2020-7-27 14:45:32   评论 分享淘帖
5 个讨论
你好,
因为由host直接加载, HPI boot模式不需要AIS格式.
2020-7-27 14:54:05 评论

举报

vuywsdfwf 发表于 2020-7-27 15:33
你好,
因为由host直接加载, HPI boot模式不需要AIS格式.

由于之前有技术支持告诉需要用AIS文件,所以采用这种方式。
请问通过HPI接口由host直接加载流程是怎么的,是直接加载.out文件吗?如何解析呢,将.out文件加载到什么地址呢?
2020-7-27 15:06:38 评论

举报

c6748 bootloader第3页上有这么一句话.
There are few boot modes that do not make use of AIS and have a special boot interface. For instance,
• The HPI boot method requires the HPI host to load the application image to the device memory and
does not use AIS.
• There are three methods to boot from a NOR Flash, only one of which uses AIS.
可以把.out文件用hex conversion utility十六进制转换工具hex6x.exe转成.hex或者.bin文件后加载.
2020-7-27 15:26:02 评论

举报

请问利用hex6x.exe如何生成.bin文件,生成后需要如何解析。有没有相应的文档说明呢,谢谢。
2020-7-27 15:37:20 评论

举报

cmxzlmw 发表于 2020-7-27 16:16
请问利用hex6x.exe如何生成.bin文件,生成后需要如何解析。有没有相应的文档说明呢,谢谢。

可以参考下面Nor Lagacy boot mode中.out转.bin的写法.
http://processors.wiki.ti.com/index.php/Secondary_Bootloaders_on_OMAP-L1x#Extracting_the_Binary_Image
hex converson utility的详细介绍可以参考assembly language user guide第11章.
http://www.ti.com/lit/ug/spru186w/spru186w.pdf
2020-7-27 15:50:01 评论

举报

只有小组成员才能发言,加入小组>>

1551个成员聚集在这个小组

加入小组

创建小组步骤

关闭

站长推荐 上一条 /9 下一条

快速回复 返回顶部 返回列表