根据芯片手册中的HPI部分的约定,一次读写必须为32位,那么加载文件必须为4字节的倍数。
而根据下面的生成加载文件的描述:
Boot Table format as following:
|----------------------------------|
| Entry Point (4 bytes) |
|----------------------------------|
| Section 1 Size (4 bytes) |
| Section 1 Load Address (4 bytes) |
| Section 1 Run Address (4 bytes) |
| Section 1 Data (4*n bytes) |
|----------------------------------|
| Section 2 Size (4 bytes) |
| Section 2 Load Address (4 bytes) |
| Section 2 Run Address (4 bytes) |
| Section 2 Data (4*n bytes) |
|----------------------------------|
| .............. |
|----------------------------------|
| Section N Size (4 bytes) |
| Section N Load Address (4 bytes) |
| Section N Run Address (4 bytes) |
| Section N Data (4*n bytes) |
|----------------------------------|
| 0x00000000 (End flag) |
|----------------------------------|
Notes: If the raw section data is not multiple of 4 bytes, pad will be added,
Don't copy the pad to DSP memory!
当加载文件中 不是4的倍数时,HPI BOOT怎么办?