Restoring the PHY3250 boot loaders

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Restoring the PHY3250 boot loaders

Restoring the PHY3250 boot loaders

If you accidentally erase the kick start or S1L boot loaders on the Phytec LPC3250 board, this procedure can be used to restore them. Note the boot loaders provided in this restoration method might be newer than the versions provided with the Phytec board. The original versions of the boot loaders can also be downloaded from Phytec's website.

Restoration of the boot loaders on the board require no special hardware (ie, JTAG) and are performed with boot loaders and tools built or included in the LPC32x0 Common Driver Library. However, you will need a PC with a serial port to perform the update procedure.

Restoring the kick start loader and S1L is a 2-step process. The kick start loader is restored first and then S1L is restored. The serial loader is used to transfer the application and the burner images (which is used to program the application into NAND FLASH). The LPC32x0 will automatically burn the image into NAND FLASH after it has been downloaded and then provide a status.

Step 1: Download the pre-built boot software and restoration images for the Resource page.

Step 2: Extract the files on a Windows based PC

Step 3: Connect a serial cable between the Phytec boards' lower serial connector and the PC

Step 4: Start the Serial loader software (LPC3250_Loader.exe) included in the pre-built boot software package.

Step 5: Setup the 'Primary boot (IRAM)' file in the Serial loader to the burner_kickstart_nand_small_block_rvw.bin file. Setup the 'Secondary Executable (SDRAM)' file in the Serial loader to the kickstart_nand_small_block_rvw.bin file. Verify that the Comport control selection matches the COM part on the PC that is connected to the Phytec board.

NOTE: The pre-built binaries may have slightly different names than those listed in steps 5 and 7, depending on the tool used to build the binaries. If the binaries were build with GNU instead of Realview, the 'rvw' field in each name will contain the 'gnu' identified instead. Change the filenames as necessary for you binaries you have.

 

Step 6: Press the 'Load bin's / Start primary' button on the Serial loader and power on the board. The burner image and the kickstart loader image should transfer to the board and the kickstart loader will then be programmed into NAND FLASH block 0 for boot from the boot ROM by the burner application. After the files have transferred, press the 'Enable terminal mode' button to see the program status. In the Status / Terminal output window of the Serial loader tool, you should see the following output.

 

Waiting for BootID? .. þ5 .. found!
Sending 'A' .. done!
Expect 2-nd BootId? .. 5 .. found!
Sending 'U','3'.. done!
Expect 'R' .. R .. found!
Sending startaddress .. done!
Sending size .. done!
Sending code .. done!

--- Loading Secondary executable ---
Wait for 'X' .. X .. found!
-- Sending command .. p ..done!
Sending startaddress .. done!
Sending size .. done!
Wait for acceptance from primary boot .. o ..OK!
Sending code .. done!
Expect final 't' .. t .. found,
---- Secondary Executable loaded. ---


--- Enabling terminal mode ---
Formatting blocks...
Format complete
Writting kickstart into flash...
Verifing data......Successfully
NAND flash is programmed Successfully

Step 7: Setup the 'Primary boot (IRAM)' file in the Serial loader to the burner_s1app_nand_small_block_rvw.bin file. Setup the 'Secondary Executable (SDRAM)' file in the Serial loader to the s1l_from_kick_full_rvw.bin file. Verify that the Comport control selection matches the COM part on the PC that is connected to the Phytec board.

 

Step 8: Press the 'Load bin's / Start primary' button on the Serial loader and reset the board. The burner image and the S1L image should transfer to the board and S1L will then be programmed into NAND FLASH block 1 (and on) for boot from the kickstart loader. After the files have transferred, press the 'Enable terminal mode' button to see the program status. In the Status / Terminal output window of the Serial loader tool, you should see the following output.

 

Waiting for BootID? .. 5 .. found!
Sending 'A' .. done!
Expect 2-nd BootId? .. 5 .. found!
Sending 'U','3'.. done!
Expect 'R' .. R .. found!
Sending startaddress .. done!
Sending size .. done!
Sending code .. done!

--- Loading Secondary executable ---
Wait for 'X' .. X .. found!
-- Sending command .. p ..done!
Sending startaddress .. done!
Sending size .. done!
Wait for acceptance from primary boot .. o ..OK!
Sending code .. done!
Expect final 't' .. t .. found,
---- Secondary Executable loaded. ---


--- Enabling terminal mode ---
Formatting blocks...
Format complete
Writting S1 image into flash...
NAND flash is programmed Successfully

Step 8: Close the Serial loader and open a terminal program, then reset the board

Close the serial loader tool and open a terminal program such as Teraterm. Reset the board and S1L should start.

 

5
Phytec 3250 Board
Build date: May 21 2010 12:43:21

PHY3250>
No ratings
Version history
Last update:
‎09-10-2020 02:33 AM
Updated by: