Hi
I am trying to Re-Flash the NOR-FLASH...... using the codewarrior 10.3.3 and i have followed the following steps
Window > Show View > Other--->Debug-->Target Task-->ok
then imported the P1020RDB_NOR FLASH.xml file
I didnt change the s29gl128p base address
then I added the the vsc2bin file using Add program/verify action from add action. Here i selected the Erase sectors before program and verify after program --> then i set the address offset value as FF7FE000,---> add program action
then I added the the u-boot_nor.bin file using Add program/verify action from add action. Here i selected the Erase sectors before program and verify after program --> then i set the address offset value as FFF80000,---> add program action
then i excute it
fl::target -lc "FLASH-core00_RAM_P1020_Download"
fl::target -b 0x2000 0x30000
fl::target -v on -l off
cmdwin::fl::device -d "S29GL128P" -o "8Mx16x1" -a 0xff000000 0xffffffff
cmdwin::fl::image -f "C:\\Freescale\\BSP image\\P1020RDB_Images\\P1020RDB\\Pre_Build_images\\vsc2bin" -t "Binary/Raw Format" -re off -oe on -o 0xff7fe000
cmdwin::fl::erase image
Beginning Operation ...
-------------------------
Performing target initialization ...
Downloading Flash Device Driver ...
Reading flash ID ...
Erasing Sector 0xFF7E0000 to 0xFF7FFFFF
Erasing ...
Erase Command Succeeded
cmdwin::fl::write verify
Beginning Operation ...
-------------------------
Programming file C:\Freescale\BSP image\P1020RDB_Images\P1020RDB\Pre_Build_images\vsc2bin
Downloading Flash Device Driver ...
Reading flash ID ...
Downloading 0x00001FF8 bytes to be programmed at 0xFF7FE000
Executing program with verify ....
Program with Verify Command Succeeded
cmdwin::fl::image -f "C:\\Freescale\\BSP image\\P1020RDB_Images\\P1020RDB\\Pre_Build_images\\u-boot_nor.bin" -t "Binary/Raw Format" -re off -oe on -o 0xfff80000
cmdwin::fl::erase image
Beginning Operation ...
-------------------------
Downloading Flash Device Driver ...
Reading flash ID ...
Erasing Sector 0xFFF80000 to 0xFFF9FFFF
Erasing Sector 0xFFFA0000 to 0xFFFBFFFF
Erasing Sector 0xFFFC0000 to 0xFFFDFFFF
Erasing Sector 0xFFFE0000 to 0xFFFFFFFF
Erasing .....
Erase Command Succeeded
cmdwin::fl::write verify
-------------------------
Programming file C:\Freescale\BSP image\P1020RDB_Images\P1020RDB\Pre_Build_images\u-boot_nor.bin
Downloading Flash Device Driver ...
Reading flash ID ...
Downloading 0x00010000 bytes to be programmed at 0xFFF80000
Downloading 0x00010000 bytes to be programmed at 0xFFF90000
Executing program with verify ....
Program with Verify Command Succeeded
Downloading 0x00010000 bytes to be programmed at 0xFFFA0000
Downloading 0x00010000 bytes to be programmed at 0xFFFB0000
Executing program with verify ....
Program with Verify Command Succeeded
Downloading 0x00010000 bytes to be programmed at 0xFFFC0000
Downloading 0x00010000 bytes to be programmed at 0xFFFD0000
Executing program with verify ....
Executing program with verify .....
Program with Verify Command Succeeded
Downloading 0x00010000 bytes to be programmed at 0xFFFE0000
Downloading 0x00010000 bytes to be programmed at 0xFFFF0000
Executing program with verify ....
Program with Verify Command Succeeded
But our board is not bring-up some junk data is show in flash.....
Please can u help me how to solve this problem......
P1020RDB-PC default setting should be
SW2 OFF ON ON ON ON ON ON ON
SW3 ON ON OFF ON OFF ON ON OFF
Please note that the latest SDK 1.4 is used for P1020RDB-PD.
our board sdk is 1.01
Default switch setting is
SW2 ON ON OFF ON OFF ON ON OFF
SW3 OFF ON ON ON ON ON OFF ON
Using your u-boot.bin and default SW settings from SDK1.4, I was able to see u-boot console in terminal. Please try the SW settings provided by yipingwang.
Adrian
Hi
Our board sdk is 1.01..........
Hi
We need to enable the debugger pic setting their we need to give alternate load address 0xfff000000,,,,
You can set PIC load address in 2 mode:
- from Debug Configuration, select the configuration you are using, go to Debugger tab, go to PIC tab and set Alternate Load Address, Apply, then Debug
- while you are in debug mode, open Debugger Shell and use the command: setpicloadaddr 0xXXXX_XXXX
Adrian
Hi
our board bring up document tell's that the NOR FLASH base address is 0XEF000000 but in cw NOR FLASH base address is 0xff000000,,,,,,,,,,, which is wrong which is right,,,, I am unable to understand the base address of the nor, could u please tell why it is starting from 0xff instead of 0xef.............
Both address are correct. Marius explained in detail how u-boot map NOR flash and why in CodeWarrior we decided to use 0xFF00_0000 as base address from NOR flash. Please refer to thread https://community.freescale.com/message/366716?et=watches.email.thread#366716
Adrian
Hi
As our Board-Bring-up document show that NOR FLASH MEMORY MAPPED ADREESSS is show below, But as per the codewarrior development tool, we have to start the base address 0XFF000000,,,, Can u tell me why
We have start from this base address , and why we cont start from oxEF000000 this base address,,,,,,,,,,,, could u please give the resone…………
Start Address
End Address
Description
Size
0xef00_0000
0xef03_ffff
Vitesse 7385 Switch Firmware
256K
0xef04_0000
0xef07_ffff
dtb image
256K
0xef08_0000
0xef3f_ffff
Uimage
3.5M
0xef40_0000
0xefef_ffff
JFFS2 image
11M
0xeff0_0000
0xefff_ffff
u-boot(at eff80000) and it's env
(at eff60000)
1M
Thanks
Chaya
Hi,
Please provide more information about:
- u-boot is from SDK 1.4?
- switches on board are set for NOR boot, did you see something in terminal?
- did you try a Dump Flash action from Flash Programmer, to check if NOR has been written correctly?
Adrian
---- > SDK 1.01
---> switch setting is proper
---> nor flash have been corrupted so we are trying to Re-flash it from the codewarrior tool..............
The steps performed are correct. As you can see from the log Program with Verify Command Succeeded for both binary files. Additional, you can check using Dump Flash action (Dump region 0xFF7E0000 to 0xFF7FFFFF for first file and 0xFFF80000 to 0xFFFFFFFF for u-boot.bin) if the programming of the flash succeeded.
Hi
what is the run configuration
Run configuration that I used is Attach
Init file: P1020RDB_init_core.tcl and mem file: P1020RDB.mem
Adrian
Hi
I used run configuration same has u used......... it got programmed successfully ......... and also got same memory view how u got.......... still board is not
bring up........... can u tell me what will be the problem..... how can i solve it.
i used run configuration as NOR-FLASH-core00_RAM_P1020_Download i also got the same what u got from memory view.... but still my board is not bring up.... unable to fix what is the problem
OK, that's a good step. Now, if the switches on the board are correct setup and the serial cable is connected between pc and target board (baud rate for terminal set to 115200, correct serial cable, correct UART port - UART0), u-boot should be displayed on terminal.
Adrian
Hi
serial cable is connected between pc and target board is proper...i used 115200 baud rate only......