谢谢大家的帮助,现在前面4K的stepldr已经跑起来了,在startup.s点LED灯,发现一直到
; Jump to main C routine.
;
bl main
都是正常的。可以跑过来。我在这个bl main之前加了LED灯闪烁,显示是正常的。然后就应该跳转到C代码了吧。
现在进入C语言的main函数
void main(void)
{
register nBlock;
register nPage;
register nBadBlocks;
volatile BYTE *pCopyPtr;
Led_Display(LED_OFF);
// while(1);
// Set up copy section (initialized globals).
//
// NOTE: after this call, globals become valid.
//
SetupCopySection(pTOC);
// Initialize the NAND flash interface.
//
NF_Init();
//Initialize the LCD interface
//
Lcd_Init();
// Turn the LEDs off.
//
Led_Display(LED_OFF);
// Copy image from NAND flash to RAM.
//
pCopyPtr = (BYTE *)LOAD_ADDRESS_PHYSICAL;
// NOTE: we assume that this Steppingstone loader occupies *part* the first (good) NAND flash block. More
// specifically, the loader takes up 4096 bytes (or 8 NAND pages) of the first block. We'll start our image
// copy on the very next page.