<Default Config >
1. PROGRAM_FLASH : Flash -location='0x0' size='0x80000' driver='LPC5460x_512K.cfx'
2. BOARD_FLASH : Flash2 location='0x10000000' size='0x800000' driver='LPC546xx_SPIFI_SFDP.cfx
< Compile Result >
PROGRAM_FLASH : 159880 B 512 KB 30.49%
BOARD_FLASH : 351180 B 8 MB 4.19%
SRAM_UPPER : 120996 B 160 KB 73.85%
< Execute Error >
Message - runch BOARD_FLASH Error !
Please help me how to execute the code in BOARD_FLASH
Hello jongsubkim,
Please provide more information about your issue.
What about your project? What about your board? What about the detail error message?
Thanks.
Regards,
Alice
1. In Program_Flash(0x00~0x80000) Location, it runs normally.
Since the code size is 1.2MByte, it is insufficient in 512K, so I have to run it in BOARD_FLASH. Actually, because Korean fonts are large in size, I want to run some programs in SPDIF. But BOARD_FLASH Addr 0x10000000 size 0x800000
If distributed to SPDIF, the program is not executed and becomes Halt.
Writing is done on SPDIF Flash. (It works well on oscilloscope.)
2. Code distribution
A. Example of the corresponding function __TEXT(Flash2) void Test(void)
{
..}
B. Data Storage __RODATA(flash2) unsigned char test[ ]-{.....}
C. Compile Results
Program_flash 0x00 size 129KByte
Board_Flash 0x10000000 size 600KBte
The result seems to work without any problems.
* Program cannot be executed.
Hello ,
Before use External flash, have you initialized SPIFI ?
There is SPIFI demo under SDK, you can download to have a look:
https://mcuxpresso.nxp.com/en/select
Regards,
Alice