Re: Record length in Windows CE 5.0 Run time image

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Easier is to create an nk.nb0 file which is the raw data that you need for
the JTAG programming. You can do that automatically by makeing some changes
to your config.bib, or you can use cvrtbin.

--
Bruce Eitman (eMVP)
Senior Engineer
beitman AT applieddata DOT net

Applied Data Systems
www.applieddata.net
An ISO 9001:2000 Registered Company
Microsoft WEP Gold-level Member

"Milind" <milind.vk@xxxxxxxxx> wrote in message
news:f0ba45bb-4bb9-4bdd-9f98-b9ca8f5a97bc@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
On Dec 30, 10:00 am, "zhoumc" <zho...@xxxxxxxxxx> wrote:
You can define the totol size of OS image , then you get the nk.nb0.
As for singlerecord, I have not heard about it ever.
By the way, why do you do that?

"Milind" <milind...@xxxxxxxxx>wrote:
On Dec 26, 5:41 pm, "zhoumc" <zho...@xxxxxxxxxx> wrote:





Recordaddress 4 Physical starting address of datarecord.
If this value is zero, therecordaddress is the end of the file,
andrecordlengthcontains the starting address of the run-time image.

"Milind" <milind...@xxxxxxxxx> wrote:
Hi there,

Is there any way I can change therecordlengthin Windows CE5.0
runtime image? I observed thatRecordlengthis dynamically decided.

FYI,

Windows CE binary format:

15 bytes - ImageHeader
...Recordheader0,Recordheader1 and so on...

Eachrecordheader contains :

Recordaddress - 4bytes
RecordLength-4bytes
RecordChecksome -4 bytes
andRecorddata - Number of bytes specified in therecordlength

Also how does platform builder determines the end ofNK.bin.

I am storing theNK.binin the flash memory and when I took dump of
flash memory after downloading and flashing the image using platform
builder, I observed that platform builder removes the imageheaderand
recordheaders.

Basically how PB parses the Nk binary?

Thanks
-Milind- Hide quoted text -

- Show quoted text -

Hi,
Is there anyway I can fix therecordlength of Windows CE run time
image? If so how to do that?

Thanks
-Milind- Hide quoted text -

- Show quoted text -

Hi,

Thanks for the quick reply. Actually I am working on Nk.bin flashing
using JTAG. I want to parse NK.bin and flash the image. It would be
easy if record length is equal to size of the flash block size. When
we download the Nk.bin using platform builder it parses the record
header and does padding if necessary based on the record address, and
calculates the next record based on record length (next record address
= previous record address + previous record length). I have written a
function to parse the NK.bin and write onto flash which does exactly
the same but complex. That is why if the record length is fixed then I
can just remove the Image header and remove the record header and
write the data directly and this will not have dependency on previous
record length and hence reduces complexity.

And I am finding the end of the image by finding record where record
address is zero. I wanted to know is this the way to find or any
simpler method is there...

Is this correct method (i.e. parsing NK.bin removing reocrd header and
image header and then writing) of flashing Windows CE run time image
using jtag or any other simpler method is there?


.



Relevant Pages