No.80150 作者:liufengzhong 邮件:l_fz@sina.com ID:149522 登陆:12次 文章数:695篇 最后登陆IP:183.13.93.245 最后登陆:2015/6/16 17:02:27 注册:2014/7/29 21:51:15 财富:3671 发帖时间:2014/8/31 10:06:37 发贴者IP:111.221.200.181 标题:liufengzhong:[转帖]如何将数据写入到SPI闪存? 摘要:No.80150[转帖]如何将数据写入到SPI闪存? 我一直在测试ALU和startKIT,我想要测量别的东西,所以我认为,写和转储到内存中。然后需要一些时间的。 但是在startkit中如何使用SPI 闪存没有文档,只有为slicekit。 所以这是怎么做呢? 回答: 唯一需要修改的的事情就是改变目标STARTKIT在app_flashlib_example / Makefile文件 mba:app_flashlib_example bianco$ xmake Creating dependencies for main.xc No modules used. Compiling main.xc Creating app_flashlib_example.xe Build Complete Done mba:app_flashlib_example bianco$ cd bin mba:bin bianco$ xflash --boot-partition-size 65536 app_flashlib_example.xe Warning: F03098 Factory image and boot loader cannot be write-protected on flash device on node "0". Site 0 has finished. xflash succeeded mba:bin bianco$ xrun --io app_flashlib_example.xe FLASH fitted : WINBOND W25X20. FLASH size: 262144 bytes. FLASH page size: 256 bytes. FLASH data partition size: 196608 bytes. FLASH number of pages in data partition: 768 FLASH number of sectors in data partition: 48 FLASH data sector size: 4096 bytes. Data partition erased! Data partition written! Data partition read! Data: Hello World! FLASH tested successfully! 回复: makefile中已经有设定STARTKIT目标 这是什么?命令?mba:app_flash ......
>>返回讨论的主题
|