AnsweredAssumed Answered

NOR image execute

Question asked by Nikolay Kulikov on Jun 20, 2017
Latest reply on Jun 21, 2017 by Nikolay Kulikov

I'm using U-boot with my board on P1010 and download the barmetal application over TFTP. This application works correctly. Then I save this application into NOR flash and try to run this application - the application does not work. Comparing both images (obtained by tftp and read with NOR), they coincide in content.

 

Load from TFTP:

=> tftp 0x10000 b.bin

=> go 0x10100

--Correct start application--

 

Store and load from NOR Flash:

=> tftp 0x10000 b.bin

=> protect off 0xEC000000 +0x6ea14

=> erase 0xEC000000 +0x6ea14

=> cp.b 0x10000 0xEC000000 0x6ea14

=> reset

=> cp.b 0xEC000000 0x10000 0x6ea14

=> go 0x10100

--Application not starting--

 

Compare image:

=> tftp 0x100000 b.bin
Speed: 100, full duplex
Using eTSEC1 device
TFTP from server 192.168.200.104; our IP address is 192.168.200.201
Filename 'b.bin'.
Load address: 0x100000
Loading: T T ###############################
done
Bytes transferred = 453140 (6ea14 hex)
=> cp.b 0xEC000000 0x10000 0x6ea14
=> cmp.b 0x10000 0x100000 0x6ea14
Total of 453140 bytes were the same

 

However, (it was found out by experience) if after copying from NOR to make loading on TFTP in other area RAM - the image copied from NOR will work ((

 

 

Information:

* 0x6ea14 - filesize of application

* 0xEC000000 - start address NOR Flash

* 0x10000 - RAM address for load binary image

* 0x10100 - entry point of application

Outcomes