non-os application in nand, 2nd level bootloader etc

yusuf 2010-05-17 19:04:39 Link
Does anybody has an example of non-os nand-power-on working code?
stupid question, I am getting bored.

From supervivi menu
Select [a] - absolute user application.
It loads application into RAM first then it writes to nand.
when we power switch off-on, application is not working.
The code is working from RAM. In supervivi [d]- Download & Run 
The applicatin is less than 4k.
What is wrong? 

In Keil examples:

The 2-nd level Bootloader for 'S3C2440'

This is a 2-nd level bootloader for 'Samsung S3C2440' 
microcontroller with NAND Flash and External SDRAM. 
It downloads to BANK 0 of NAND Flash.
1-st level bootloader that is in ROM of S3C2440  
first downloads this 2-nd level bootloader to 
internal RAM and starts it.

2-nd level bootloader's main function is to copy the 
user program from NAND Flash to External SDRAM and 
start it.

Clock Settings:
  - XTAL             =  12 MHz
  - FCLK = MPLL      = 300 MHz
  - UCLK = UPLL / 2  =  48 MHz
  - HCLK = FCLK / 3  = 100 MHz
  - PCLK = HCLK / 2  =  50 MHz

Just select 'Flash -> Download', to download it 
to NAND Flash.

Note: Bad block skipping is supported
      Error correction (ECC) is not used.

NAND Flash Organization (64MB NAND Flash):

0x00000000 _ ____________________________
            |                            |
            |   2-nd Level Bootloader    |
            |                            |
0x00001000 -| - - - - - - - - - - - - - -|
            |                            |
            :  Reserved for future use   :
            :                            :
            |                            |
0x00004000 -|============================|
            |                            |
            |       User Program         |
            :                            :
            :                            :
0x04000000 _|____________________________|

Reply

Name
eMail (not visible)
Subject (no text only in upper case; no HELP, URGENT...)
Text
HTML tags are not supported and links are generated automatically if they start with http or ftp.
Please submit long source code or log files as attachment (only registered users).
Please enter the number 7405