\u4e09.\u4ece\u6838\u542f\u52a8<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/div>\n\u9996\u5148\u58f0\u660e\u672c\u6587\u4ec5\u9002\u7528\u4e8eTMS320C6657\u82af\u7247\uff0c\u591a\u6838\u5355\u955c\u50cf\u7684SPI\u542f\u52a8\u3002TI C66X\u7cfb\u5217\u7684\u8d44\u6599\u6bd4\u8f83\u96f6\u6563\uff0c\u4e0d\u7cfb\u7edf\uff0c\u8fd9\u65e0\u7591\u7ed9\u50cf\u6211\u8fd9\u6837\u7684DSP\u521d\u5b66\u8005\u5e26\u6765\u4e86\u6781\u5927\u7684\u56f0\u96be\u3002\u56e0\u5de5\u4f5c\u9700\u8981\uff0c\u5c06\u539f\u6709\u7684EMIF\u542f\u52a8\u7684\u4e00\u4e2aDSP\u7a0b\u5e8f\u6539\u6210SPI\u542f\u52a8\u6a21\u5f0f\u7684\u7a0b\u5e8f\uff0c\u7531\u4e8eDSP\u70e7\u5199\u7684\u4e0d\u53ef\u89c2\u6027\uff0c\u4e00\u76f4\u6ca1\u627e\u5230\u95ee\u9898\u6240\u5728\uff0c\u53ea\u80fd\u4e00\u6b65\u4e00\u6b65\u7684\u6478\u7d22\u4fee\u6539\u3002\u5728CSDN\u4ee5\u53caTI\u7684\u5b98\u65b9\u8bba\u575b\u4e0a\u67e5\u9605\u4e86\u5927\u91cf\u7684\u8d44\u6599\uff0c\u7ad9\u5728\u5de8\u4eba\u7684\u80a9\u8180\u4e0a\uff0c\u597d\u6b79\u6210\u529f\u5b9e\u73b0\u4e86\u3002\u611f\u6168DSP\u70e7\u5199\u7684\u56f0\u96be\uff0c\u7279\u6b8a\u6b64\u6587\uff0c\u5e0c\u671b\u80fd\u5e2e\u5230\u8ddf\u6211\u4e00\u6837\u7684DSP\u521d\u5b66\u8005\u3002\u5982\u6709\u4e0d\u4e25\u8c28\u7684\u5730\u65b9\u8fd8\u671b\u5927\u4f6c\u6307\u6559\u3002
\u7406\u8bba\u4e0a\u7684\u4e1c\u897f\u53ef\u4ee5\u53c2\u8003\u300aTMS320C66x KeyStone\u67b6\u6784\u591a\u6838DSP\u5165\u95e8\u4e0e\u5b9e\u4f8b\u7cbe\u89e3\u300bP314\u57fa\u4e8eNor Flash SPI\u7684\u591a\u6838Boot\u5b9e\u4f8b\u8fd9\u4e00\u8282\u3002\u672c\u6587\u4e3b\u8981\u662f\u6839\u636e\u6211\u8c03\u8bd5\u8fc7\u7a0b\u7f16\u5199\u7684\uff0c\u6bd4\u8f83\u7c97\u663e\u3002<\/p>\n
\u4e00.\u6e90\u7a0b\u5e8f\u4fee\u6539<\/h3>\n
\u539f\u6709\u7684\u7a0b\u5e8f\u662f\u57fa\u4e8eEMIF\u542f\u52a8\u6a21\u5f0f\u8bbe\u8ba1\u7684\uff0c\u9996\u5148\u9700\u8981\u53bb\u6389\u4e00\u6bb5\u7528\u6c47\u7f16\u8bed\u8a00\u7f16\u5199\u7684EMIFboot\u7a0b\u5e8f\uff0c\u4ed6\u7684\u529f\u80fd\u662f\u5c06Flash\u4e2d\u7684\u4ee3\u7801\u642c\u79fb\u5230core0\u7684L2SRAM\u4e2d\uff08flash\u8fd0\u884c\u901f\u5ea6\u4f4e\uff09\u5e76\u8df3\u8f6c\u5230\u8d77\u59cb\u5730\u5740\u5f00\u59cb\u6267\u884c\u3002\u4f46\u7531\u4e8e\u677f\u5b50\u7684\u8bbe\u8ba1\u95ee\u9898\uff0c\u9700\u8981\u6539\u6210 SPI\u542f\u52a8\u6a21\u5f0f\uff0c\u6240\u4ee5\u628a\u8fd9\u4e00\u6bb5\u6c47\u7f16\u53bb\u6389\u4e86\u3002<\/p>\n
\u4e8c.\u5355\u6838\u542f\u52a8<\/h3>\n
\u6b63\u5e38\u751f\u6210.out\u6587\u4ef6\u540e\uff0c\u901a\u8fc7TI\u516c\u53f8\u63d0\u4f9b\u7684\u5de5\u5177\u94fe\u8f6c\u6210dat\uff08bin\uff09\uff1a
<\/p>\n
hex6x \u914d\u5408.rmd\u6587\u4ef6\uff08\u6709\u51e0\u4e2a.out\u6587\u4ef6\u5c31\u9700\u8981\u51e0\u4e2a.rmd\u6587\u4ef6\uff0c\u63cf\u8ff0\u8f93\u51fa\u63a7\u5236\u3001\u5f15\u5bfc\u9009\u9879\u3001\u5b58\u50a8\u5668\u9009\u9879\u7b49\u5185\u5bb9\uff09\u751f\u6210\u7247\u4e0a\u5f15\u5bfc\u52a0\u8f7d\u5668\u52a0\u8f7d\u7a0b\u5e8f\u6240\u9700\u7684\u5f15\u5bfc\u8868\uff0c\u8f93\u51fa\u6587\u4ef6\u4e3a*.btbl<\/p>\n
mergebtbl\u5c06*.btbl\u6309\u7167\u4e00\u5b9a\u7684\u987a\u5e8f\u94fe\u63a5\u8d77\u6765<\/p>\n
b2i2c \u5c06*.btbl\u8f6c\u6362\u6210i2c\/spi\u683c\u5f0f\uff0c\u628aboot\u8868\u5212\u5206\u62100x80\u5b57\u8282\u5757\u5e76\u9644\u52a0\u957f\u5ea6\uff08length\uff09\u548c\u6821\u9a8c\u7801\uff08checksum\uff09<\/p>\n
b2ccs\u5c06*.btbl.i2c\u8f6c\u6362\u6210.i2c.ccs\uff0cCCSV5 IDE\u63a5\u6536\u7684.dat\u683c\u5f0f\uff0c\u52a0\u8f7d\u5230DDR3\u4e2d\u53bb\u3002\u5e76\u624b\u52a8\u5c06i2crom.ccs\u4e2d\u7684\u7b2c9\u884c51\u6539\u4e3a00\u3002<\/p>\n
romparse \u5408\u5e76boot\u8868\u548cboot\u53c2\u6570\u8868\uff0c\u53c2\u6570\u914d\u7f6e\u8868\u6587\u4ef6*.map\u4f5c\u4e3a\u8f93\u5165\u3002<\/p>\n
byteswapccs\u5c06.dat\u8f6c\u6362\u6210ROM Bootloader\u4ee3\u7801\u80fd\u591f\u8bc6\u522b\u7684\u5927\u7aef\u6a21\u5f0f<\/p>\n
\u751f\u6210\u7684.bin\u6587\u4ef6\u901a\u8fc7flash\u70e7\u5199\u5de5\u5177\uff0c\u8fd9\u4e2a\u662f\u6211\u81ea\u5df1\u5199\u7684\uff0c\u9700\u8981\u53c2\u8003flash\u82af\u7247\u7684\u6570\u636e\u624b\u518c\uff0c\u8ddf\u578b\u53f7\u6709\u5173\uff0c\u5982\u679c\u662f\u5f00\u53d1\u677f\u7684\u8bdd\uff0c\u5f00\u53d1\u7248\u5149\u76d8\u91cc\u6709\u70e7\u5199\u5de5\u5177\u7684\u955c\u50cf\uff0c\u8fd9\u4e2a\u4e0d\u96be\u3002\u70e7\u8fdb\u53bb\u4e4b\u540eDSP\u590d\u4f4d\uff0c\u63a7\u5236bootmode[15:0]=0001 0010 0000 1101\uff0cSPI\u542f\u52a8\u6a21\u5f0f\uff0c\u53c2\u6570\u8bbe\u7f6e\u53c2\u8003\u300aTMS320C6657\u300bBOOTMODE\u8fd9\u4e00\u8282\uff0c\u5404\u4e2aGPIO\u5f15\u811a\u8bbe\u7f6e\u4e0e\u521d\u8bbe\u5316\u5916\u8bbe\u76f8\u5173\u3002\u542f\u52a8\u540e\u5e76\u6ca1\u6709\u6355\u6349\u5230DSP\u5de5\u4f5c\u7684\u4fe1\u53f7\uff0c\u4f46\u4e0d\u6e05\u695a\u95ee\u9898\u51fa\u5728\u54ea\u3002\u7136\u540e\u63a5\u4e86FLASH\u82af\u7247\u7684\u8f93\u5165\u8f93\u51fa\u4e0e\u65f6\u949f\u4fe1\u53f7\u5230\u793a\u6ce2\u5668\u4e0a\uff0c\u6211\u4eec\u7528\u7684FLASH\u82af\u7247\u5730\u5740\u4f4d\u5bbd\u4e3a24\u4f4d\uff0c\u6570\u636e\u4f4d\u5bbd\u4e3a16\u4f4d\u3002\u901a\u8fc7\u65f6\u949f\u53ef\u4ee5\u770b\u5230\uff0c\u8f93\u5165\u4fe1\u53f7\u524d8\u4f4d\u4e3a\u6307\u4ee4\uff0c\u540e24\u4f4d\u4e3a\u5730\u5740\uff0c\u518d\u67e5\u770b\u8f93\u51fa\u3002\u901a\u8fc7\u6bd4\u5bf9bin\u6587\u4ef6\u53d1\u73b0\uff0c\u524d1k\u7684\u6570\u636e\u6b63\u5e38\u8f93\u51fa\uff0c\u4f46\u8bfb\u5b8c1k\u540e\uff0c\u8f93\u5165\u8bfb\u53d6\u7684\u5730\u5740\u4e3a0x\uff0c\u8d85\u51fa\u4e86bin\u6587\u4ef6\u7684\u957f\u5ea6\u6240\u4ee5DSP\u6ca1\u6709\u6b63\u5e38\u7684\u5de5\u4f5c\u3002\u731c\u6d4b\u8fd9\u4e2a\u5730\u5740\u5e94\u8be5\u662f0x000400\uff0c\u521a\u597d\u662f1K\u4e0ebin\u6587\u4ef6\u80fd\u5bf9\u5f97\u4e0a\uff0c\u56e0\u6b64\u6211\u53bb\u67e5\u4e86\u56fa\u5316\u5728ROM\u91ccRBL\u6e90\u4ee3\u7801\uff0c\u9a8c\u8bc1\u4e86\u6211\u7684\u731c\u60f3\u3002<\/p>\n
typedef struct boot_params_spi_s { \n <\/span> \/* common portion of the Boot parameters *\/<\/span> UINT16<\/span> length;<\/span> UINT16<\/span> checksum;<\/span> UINT16<\/span> boot_mode;<\/span> UINT16<\/span> portNum;<\/span> UINT16<\/span> swPllCfg_msw;<\/span> \/* CPU PLL configuration, MSW *\/<\/span> UINT16<\/span> swPllCfg_lsw;<\/span> \/* CPU PLL configuration, LSW *\/<\/span> UINT16<\/span> options;<\/span> UINT16<\/span> addrWidth;<\/span> \/* 16 or 24 are the only valid values *\/<\/span> UINT16<\/span> nPins;<\/span> \/* 4 or 5 pins are the only valid values *\/<\/span> UINT16<\/span> csel;<\/span> \/* only values 0b10 (cs0 low) or 0b01 (cs1 low) are valid *\/<\/span> UINT16<\/span> mode;<\/span> \/* Clock phase\/polarity. These are the standard SPI modes 0-3 *\/<\/span> UINT16<\/span> c2tdelay;<\/span> \/* Setup time between chip select assert and the transaction *\/<\/span> UINT16<\/span> cpuFreqMhz;<\/span> \/* Speed the CPU is running after PLL configuration *\/<\/span> UINT16<\/span> busFreqMhz;<\/span> \/* The speed of the SPI bus, the megahertz portion *\/<\/span> UINT16<\/span> busFreqKhz;<\/span> \/* The KHz portion of the bus frequency. A frequency of 1.5 MHz would have the value 5 here *\/<\/span> UINT16<\/span> read_addr_msw;<\/span> \/* The base address to read from the SPI, upper 16 bits *\/<\/span> UINT16<\/span> read_addr_lsw;<\/span> \/* The base address to read from the SPI, lower 16 bits *\/<\/span> UINT16<\/span> next_csel;<\/span> \/* The next chip select to use if in boot config mode, when the config is complete *\/<\/span> UINT16<\/span> next_read_addr_msw;<\/span> \/* The next read address to use if in boot config mode *\/<\/span> UINT16<\/span> next_read_addr_lsw;<\/span> \/* The next read address to use if in boot config mode *\/<\/span> }<\/span> BOOT_PARAMS_SPI_T<\/span>;<\/span> <\/code><\/pre>\n
\u6bd4\u5bf9\u6e90\u4ee3\u7801\u548c\u53c2\u6570\u8868\u4ee5\u53cabin\u6587\u4ef6\u53d1\u73b0\uff0cbin\u6587\u4ef6\u4e2doffset30-32\u7684\u5730\u5740\u4e0a\u4e3a0x\uff0c\u6240\u4ee5\u4e00\u76f4\u5728\u8bfb0x\u3002\u4e5f\u6709\u770b\u5230\u76f8\u5173\u7684\u535a\u5ba2\u4e0a\u8bf4\u9700\u8981\u5c0650\u6539\u621000\uff0c\u66f4\u52a0\u9a8c\u8bc1\u4e86\u6211\u7684\u8fd9\u4e2a\u60f3\u6cd5\uff0c\u4e0d\u77e5\u9053\u539f\u5de5\u5177\u94fe\u7684\u4e3a50\u7684\u76ee\u7684\uff0c\u4f46\u786e\u5b9e\u6539\u621000\u540e\u5355\u6838\u542f\u52a8\u6210\u529f\u4e86\u3002<\/p>\n
\u4e09.\u4ece\u6838\u542f\u52a8<\/h3>\n
\u6211\u7684\u6e90\u7a0b\u5e8f\u662f\u53cc\u6838\u5355\u955c\u50cf\u7684\uff0c\u7a0b\u5e8f\u4e0d\u662f\u7279\u522b\u590d\u6742\uff0c\u4f46\u5355\u955c\u50cf\u4e2d\u901a\u8fc7DNUM\u5bc4\u5b58\u5668\u8ba9\u4e24\u4e2a\u6838\u6267\u884c\u4e0d\u540c\u7684\u4ee3\u7801\u3002\u521a\u5f00\u59cb\u6211\u8ba4\u4e3a\u4ece\u6838\u7684\u542f\u52a8\u53ea\u9700\u8981\u68380\u542f\u52a8\u540e\uff0c\u7ed9\u68381\u7684magicaddr\u5199\u5165_c_int00\u5730\u5740\uff0c\u518d\u7ed9IPC\u4e2d\u65ad\u5373\u53ef\uff0c\u5c1d\u8bd5\u4e86N\u6b21\u4e4b\u540e\u53d1\u73b0\u4ece\u6838\u4e00\u76f4\u8d77\u4e0d\u6765\u3002\u5206\u6790\u539f\u56e0\uff1a\u4e00\u662f\u4e0d\u662f\u68381\u7684\u4ee3\u7801\u6ca1\u6709\u4eceflash\u642c\u5230\u5185\u5b58\u91cc\u6765\uff1f\u4f46\u68380\u7684\u4ee3\u7801\u901a\u8fc7ROM\u91cc\u9762\u7684boot\u4ee3\u7801\u81ea\u52a8\u642c\u8fd0\u4e86\uff0c\u68381\u548c\u68380\u5171\u7528\u76f8\u540c\u7684\u4ee3\u7801\uff0c\u5e94\u8be5\u4e0d\u9700\u8981\u518d\u53bb\u642c\u8fd0\u68381\u7684\u4ee3\u7801\u3002\u4e8c\u662f\u4e0d\u662fIPC\u4e2d\u65ad\u6ca1\u6709\u7ed9\u5230\uff0c\u662f\u4e0d\u662f\u9700\u8981\u521d\u59cb\u5316IPC\u4e2d\u65ad\uff0c\u6ce8\u518c\u4e2d\u65ad\u4e8b\u4ef6\uff1f\u6700\u540e\u53d1\u73b0\u90fd\u4e0d\u662f\u3002\u6211\u6700\u540e\u89c2\u770b\u4e86x\u9f99\u7684DSP\u6559\u5b66\u89c6\u9891\u5173\u4e8eDSP6678\u591a\u6838\u67b6\u6784\u7684\u5171\u4eab\u5185\u5b58\uff0c\u60f3\u5230\u6211\u7a0b\u5e8f\u7684cmd\u6587\u4ef6\u914d\u7f6e\u7684\u4ee3\u7801\u548c\u6570\u636e\u90fd\u662f\u653e\u5728\u6838\u5185\u7684L2SRAM\u4e2d\uff0cROM\u91cc\u7684bootloader\u642c\u8fd0\u4e5f\u53ea\u67090\u6838\u7684\uff0c\u68381\u7684L2SRAM
\u91cc\u5e76\u6ca1\u6709\u7a0b\u5e8f\uff0c\u6240\u4ee5\u4e00\u76f4\u8d77\u4e0d\u6765\u3002\u6211\u53c2\u8003\u4e86x\u9f99C6678\u5149\u76d8\u63d0\u4f9b\u7684MultiCore_SingleIamge\u6e90\u7a0b\u5e8f\u4e2d\u7684cmd\u6587\u4ef6\uff0c\u5c06.text\uff0c.cinit\uff0c.const\u7b49\u5b58\u5165MSMCSRAM\u5171\u4eab\u5185\u5b58\u4e2d\u3002\u6ce8\u610f\u6b64\u65f6\u7684_c_int00\u5165\u53e3\u5730\u5740\u53d1\u751f\u53d8\u5316\uff0c\u91cd\u65b0\u8d4b\u503c\u7ed9\u68381 \u7684magicaddr\u3002\u518d\u91cd\u65b0\u751f\u6210.out\u6587\u4ef6\uff0c\u518d\u7528\u5de5\u5177\u94fe\u751f\u6210.bin\u6587\u4ef6\u70e7\u5199\u8fdb\u53bb\u5373\u53ef\u3002\u540e\u7eed\u5c31\u8ddf\u5355\u6838\u7684\u4e00\u6837\u4e86\u3002<\/p>\n
\u867d\u7136\u73b0\u5728\u5199\u51fa\u6765\u5f88\u8f7b\u677e\uff0c\u4f46\u5f53\u65f6\u8c03\u8bd5\u7684\u65f6\u5019\u662f\u771f\u7684\u6389\u5934\u53d1\u3002\u7279\u610f\u5199\u4e0b\u6765\uff0c\u4ec5\u4f9b\u53c2\u8003\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"fstab \u81ea\u52a8\u6302\u8f7d_bios\u8fdb\u5165flash\u6a21\u5f0f\u9ed1\u5c4fTMS320C6657\u6302\u8f7dSPINorFlash\u81ea\u542f\u52a8\u4e00.\u6e90\u7a0b\u5e8f\u4fee\u6539\u4e8c.\u5355\u6838\u542f\u52a8\u4e09.\u4ece\u6838\u542f\u52a8\u9996\u5148\u58f0\u660e\u672c\u6587\u4ec5...","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"_links":{"self":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/posts\/8267"}],"collection":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/comments?post=8267"}],"version-history":[{"count":0,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/posts\/8267\/revisions"}],"wp:attachment":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/media?parent=8267"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/categories?post=8267"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/tags?post=8267"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}