Skip to contentSkip to conversation

Confusion in loading of reset configuration words on MPC8360

U-Boot Elison Niven 2 participants 2 messages Nov 18, 2008

lore
Share & tools
lore
#0 lore raw

Hi List,

I have confusion in the manner the MPC8360 loads the reset configuration words from FLASH. According to the datasheet, it should read from the following locations:

0x00 0x08 0x10 0x18 0x20 0x28 0x30 0x38

But I have observed the following on my board. The LCS goes low for eight cycles. The addresses during these cycles are as follows:

LA27 LA28 LA29 LA30 LA31

0          0          0          0          0
0          0          0          1          0
0          0          1          0          0
0          0          1          1          0
0          1          0          0          0
0          1          0          1          0
0          1          1          0          0
0          1          1          1          0

Thus, the addresses on which I need to write the reset configuration words become 0x00, 0x02, 0x04, 0x06, 0x08, 0x0A, 0x0C, 0x0E.

In the u-boot.bin file, the reset config words are placed not on the above addresses but it is according to the datasheet:

0x00 : 04 04 04 04 04 04 04 04 0x08 : 04 04 04 04 04 04 04 04
0x10 : 00 00 00 00 00 00 00 00 0x18 : 06 06 06 06 06 06 06 06

0x20 : B0 B0 B0 B0 B0 B0 B0 B0 0x20 : 60 60 60 60 60 60 60 60
0x30 : 00 00 00 00 00 00 00 00 0x38 : 00 00 00 00 00 00 00 00

This file seems correct to me. Then why does the processor read from the wrong addresses? Can anyone point out what is wrong and what needs to be done? Has anyone encountered a similar problem?

U-boot version - 1.2.0
With patches from ltib-iso - 2007.08.12
make clean
make mpc8360_emdsconfig
make

Best Regards,
Elison

#1 lore raw

Hi Elison,

Quoted 5 lines

I have confusion in the manner the MPC8360 loads the reset configuration words from FLASH. According to the datasheet, it should read from the following locations:

0x00 0x08 0x10 0x18 0x20 0x28 0x30 0x38

http://www.ovro.caltech.edu/~dwh/carma_board/powerpc_mpc8349e.pdf

p33 has a logic analyzer capture from an MPC834EA board. It'll be similar on the MPC8360.

The logic analyzer captures the address bits in little-endian order due to the way the logic analyzer header was routed on the PCB (and the inability of the logic analyzer to flip them) so, the 5-bits get shown in bit-reversed order, i.e.,

LA[27..31] bits logic analyzer trace

   0x00     0_0000   0x00
   0x08     0_1000   0x02
   0x10     1_0000   0x01
   0x18     1_1000   0x03

But the addresses are as per the data sheet.

Quoted 2 lines

But I have observed the following on my board. The LCS goes low for eight cycles.

Hmm, the p33 trace show LCS# low always, and its ALE you want to trigger off. I think I had to rework the Freescale board to route LALE to the logic analyzer header though ...

Quoted 12 lines

The addresses during these cycles are as follows:

LA27 LA28 LA29 LA30 LA31

0          0          0          0          0
0          0          0          1          0
0          0          1          0          0
0          0          1          1          0
0          1          0          0          0
0          1          0          1          0
0          1          1          0          0
0          1          1          1          0
Quoted 2 lines

Thus, the addresses on which I need to write the reset configuration words become 0x00, 0x02, 0x04, 0x06, 0x08, 0x0A, 0x0C, 0x0E.

Check your schematic, are the signals routed correctly?

Quoted 6 lines

In the u-boot.bin file, the reset config words are placed not on the above addresses but it is according to the datasheet:

0x00 : 04 04 04 04 04 04 04 04 0x08 : 04 04 04 04 04 04 04 04
0x10 : 00 00 00 00 00 00 00 00 0x18 : 06 06 06 06 06 06 06 06

Quoted 6 lines

0x20 : B0 B0 B0 B0 B0 B0 B0 B0 0x20 : 60 60 60 60 60 60 60 60
0x30 : 00 00 00 00 00 00 00 00 0x38 : 00 00 00 00 00 00 00 00

This file seems correct to me. Then why does the processor read from the wrong addresses? Can anyone point out what is wrong and what needs to be done? Has anyone encountered a similar problem?

I'd suspect your logic analyzer pod assignments, or your PCB at this point.

Use your JTAG debugger to read from specific addresses and see if the LA[] signals toggle appropriately.

Cheers,
Dave