LPC54628 BOARD_FLASH Execute Error

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

LPC54628 BOARD_FLASH Execute Error

671 次查看
jongsubkim
Contributor II

<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

 

 

0 项奖励
回复
3 回复数

651 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

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

0 项奖励
回复

644 次查看
jongsubkim
Contributor II

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.

0 项奖励
回复

636 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

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 

0 项奖励
回复