LS1043ARDB FLASH PROGRAMMING VIA JTAG

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

LS1043ARDB FLASH PROGRAMMING VIA JTAG

Jump to solution
2,154 Views
nikhilprakash
Contributor IV

Hi,

I am currently working on LS1043ARDB board.I am trying to program the nand flash via  codewarrior tap.Could anyone explain the steps to be followed for programming nand flash via code warrior tap for LS1043ARDB.Also please provide the documents related to this if possible.

 

 

Thanks in advance.

Labels (1)
Tags (1)
1 Solution
1,457 Views
addiyi
NXP Employee
NXP Employee

Try to set the board to boot from NOR bank0 and using flash programmer erase uboot from offset 0x4100000.

Adrian

                                                                                                                                                        

View solution in original post

15 Replies
1,457 Views
nikhilprakash
Contributor IV

Hi Adrian,

We have set SW4=00010010 and SW5=10100100.

0 Kudos
1,458 Views
addiyi
NXP Employee
NXP Employee

                                      Virtual bank select

SW5[4] BANK_SEL0    • 000: No change (default value)

SW5[5] BANK_SEL1    • 001: Virtual bank #1

SW5[6] BANK_SEL2    • 010: Virtual bank #2

                                      • 011: Virtual bank #3

                                      • 100: Virtual bank #4

Adrian

0 Kudos
1,458 Views
nikhilprakash
Contributor IV

Hi Adrian,

We have tried both cases with bank select(001 and 100),but still no results.

0 Kudos
1,458 Views
nikhilprakash
Contributor IV

hi Adrian,

We have tried to flash uboot and rcw to bank 4 of nor flash.We were successful in writing uboot and rcw to the locations specified using flash programmer.However we are not able to boot from bank 4(we tried flashing with nor boot from bank 0).Below is the log of location we wrote.

=> md 64000000 (RCW)

64000000: 55aa55aa 0001ee01 0c001006 0000000a    .U.U............

64000010: 00000000 00000000 02005514 02400080    .........U....@.

64000020: 005002e0 002400c1 00000000 00000000    ..P...$.........

64000030: 00000000 00880300 00000000 00110000    ................

64000040: 96000000 01000000 78015709 10e00000    .........W.x....

64000050: 00001809 08000000 18045709 9e000000    .........W......

64000060: 1c045709 9e000000 20045709 9e000000    .W.......W. ....

64000070: 00065709 00000000 04065709 00001060    .W.......W..`...

64000080: c000ee09 00440000 58015709 00220000    ......D..W.X..".

64000090: 40800089 01000000 40006108 917458b7    ...@.....a.@.Xt.

=> md 64100000(uboot)

64100000: 1400000a d503201f 60100000 00000000    ..... .....`....

64100010: 00081130 00000000 00081130 00000000    0.......0.......

64100020: 000d0f68 00000000 58000cc2 58000ce4    h..........X...X

64100030: 12800003 b9000043 52800003 b9000083    ....C......R....

64100040: 18000bc5 710004a5 710000bf 54ffffc1    .......q...q...T

64100050: 52a40003 b9000083 18000b05 710004a5    ...R...........q

64100060: 710000bf 54ffffc1 10003cc0 d5384241    ...q...T.<..AB8.

64100070: f100303f 540000a0 f100203f 54000160    ?0.....T? ..`..T

64100080: f100103f 540001a0 d51ec000 d53e1100    ?......T......>.

64100090: b2400c00 d51e1100 d51e115f 580009a0    ..@....._......X

641000a0: d51be000 14000008 d51cc000 d2867fe0    ................

641000b0: d51c1140 14000004 d518c000 d2a00600    @...............

641000c0: d5181040 d2800800 d519f220 94000003    @....... .......

641000d0: 9400000b 94000cdb aa1e03fd d5380000    ..............8.

641000e0: d344fc00 92402c00 f1341c1f 54000060    ..D..,@...4.`..T

641000f0: aa1d03fe d65f03c0 17fffffe aa1e03fd    ......

What is the problem??Please help.

0 Kudos
1,458 Views
addiyi
NXP Employee
NXP Employee

What's the value for SW4 anf SW5 on your board? It should be SW4=00010010 and SW5=10110010, for booting from NOR, bank4.

Adrian

0 Kudos
1,458 Views
addiyi
NXP Employee
NXP Employee

Did you have the board set for booting from bank4, when you erased bank4?

Adrian

0 Kudos
1,458 Views
nikhilprakash
Contributor IV

We tried it with both bank 0 and bank 4 with SD card booting.

0 Kudos
1,458 Views
addiyi
NXP Employee
NXP Employee

Try to set the board to boot from NOR bank0 and using flash programmer erase uboot from offset 0x4100000.

Adrian

                                                                                                                                                        

1,458 Views
nikhilprakash
Contributor IV

Hi Adrian,

We set sd card booting and selected bank 0 by switch settings and then we wrote to bank 4 of nor.It worked.

Thanks

1,457 Views
nikhilprakash
Contributor IV

Thanks Adrian, will try it...

0 Kudos
1,457 Views
addiyi
NXP Employee
NXP Employee

First you should download CW4NET and install CodeWarrior for ARMv8. Then, go to Freescale\CW4NET_v2016.01\CW_ARMv8\ARMv8\Help\PDF\ and in ARMv8_Targeting_Manual.pdf, Chapter 7, Flash Programmer, you can find helpful information.

Adrian

0 Kudos
1,457 Views
nikhilprakash
Contributor IV

Hi Adrian,

We are trying to erase the nor flash bank 4(offset 0x4000000) rcw&uboot portion using flash programmer.But it is not working.Is this the correct way to do??Pls help.

0 Kudos
1,457 Views
addiyi
NXP Employee
NXP Employee

The address is correct. Could you provide the error message?

Adrian

0 Kudos
1,457 Views
nikhilprakash
Contributor IV

Hi Adrian,

Actually we are trying to erase the uboot portion from bank 4 which was programmed earlier.In the flash programmer we tried to erase that portion.We were successful in erasing that section as it showed no error.But when we tried to test the bank 4 it is still booting.That is even though we erased(erase was successful) the uboot portion it didn't work.Is there any other thing we need to do?Whats the issue??Pls help.

0 Kudos
1,457 Views
nikhilprakash
Contributor IV

Thanks Adrian will go through the document mentioned.

0 Kudos