Andes Workshop https://forum.andestech.com/ |
|
How to make the code run on SPI flash of AE210P https://forum.andestech.com/viewtopic.php?f=25&t=974 |
Page 1 of 1 |
Author: | TangLei [ Mon Feb 20, 2017 11:42 pm ] | ||
Post subject: | How to make the code run on SPI flash of AE210P | ||
First of all, let’s take a look of the normal boot sequence on AE210P as below: Attachment: In the above figure, it is important to note that the boot loader is preloaded in the FPGA. If we want to run a demo in the SPI flash, we should set the IVB register and modify the linker script file since the base address of SPI flash is 0x800000. Besides, the code about IVB settings should be modified to 0x800000 too. Attachment: Attachment: figure 2.png [ 7.72 KiB | Viewed 14214 times ] Attached is a demo which has been modified correctly base on demo-int and it runs on AE210P and XIP mode. We can only use debug as configurationdebug as mcu program to run the code on the SPI flash. First, it is necessary to burn the bin file into the SPI flash before debugging. Attachment: Secondly, the “Startup” frame has to be set like below: Attachment: And then click “Debug” button, “Flash Programming Wizard” window appeared. Now we should choose the SPI_burn.exe and the exactly flash image. Attachment: Last, click the “Burn” button, the image will be burned into the SPI flash and the debugging perspective will be automatically appeared after the burning is complete. Attachment: Now,we can click “Resume” button or press “F8” to let the code free run on the SPI flash.
|
Page 1 of 1 | All times are UTC + 8 hours [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |