PBL.bin for LS1021A

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

PBL.bin for LS1021A

792 Views
z_v
Contributor I

Hello,

In CW I created a new QorIQ configuration project and checked only PBL. 

I selected "Create default configuration" and got the following snapsoht:

Capture.PNG

I also got a 256 bit file called PBL.bin

My question:

How should I configure the boot source (NOR \ QSPI) ?

In the TWR it can be configured using SW-2, SW-3 that overrides (I think) the RCW. 

In what flash address should I burn PBL.bin ?

Thank you in advance,

Z.V

0 Kudos
3 Replies

471 Views
ufedor
NXP Employee
NXP Employee

> I also got a 256 bit file called PBL.bin

The PBL.bin size is 80 bytes (512 bits).

The default PBL.bin located in the Generated_Code folder of the project is RCW binary image corresponding to the default settings of the Reset Configuration Word fields.

> How should I configure the boot source (NOR \ QSPI) ?

Please refer to the QorIQ LS1021A Reference Manual, 4.4.5.1 Reset configuration word (RCW) source where it is explained that there are RCW source inputs (cfg_rcw_src[0:8]) selecting the source for the RCW data.

This signals are controlled by the mentioned switches on the TWR board.

0 Kudos

471 Views
z_v
Contributor I

Hello ufedor,

According to 4.4.5.1, for example:

0_0001_xxxx : 8-bit NOR Flash

Should I read the bits from left to right ?

xxxx are cfg_rcw_src[5:8] ?

In CW, I created a QorIQ Configuration project and got the following PBL.bin

I found:

pastedImage_4.png

In PBL.bin, byte 0x22 (bits 272:280) is changing upon changing IFC_MODE in the GUI. 

But according to CW, the IFC_MODE is in 203-211.

The first 4 bytes are "AA 55 AA 55". This looks like a pattern. But according to the manual,

bits 0-1 is SYS_PLL_CFG. 

What am I missing here ?

Thank you,

Z.V

0 Kudos

471 Views
ufedor
NXP Employee
NXP Employee

> xxxx are cfg_rcw_src[5:8] ?

Correct.

In the RM, "Table 4-9. RCW source encodings" bit order is not explicitly shown, but above that table it is written "cfg_rcw_src[0:8]"

> The first 4 bytes are "AA 55 AA 55". This looks like a pattern.

> But according to the manual, bits 0-1 is SYS_PLL_CFG. 

> What am I missing here ?

RCW is loaded by the PBL.

Please refer to the RM, 8.4.3 Required format of data structure used by PBL.

0 Kudos