Writing bins hex offsets

General Tuning Questions And Discussions
Post Reply
User avatar
Dec_head
Posts: 505
Joined: Thu Dec 17, 2009 10:33 pm
cars: VR Calais

Writing bins hex offsets

Post by Dec_head »

Is their a guide somewhere to explain hex offsets
I want to write a 16k vn v8 file to the nvram to test it what offset do i use
User avatar
Jayme
Posts: 2585
Joined: Sun Mar 01, 2009 8:59 am
Location: North Coast, NSW

Re: Writing bins hex offsets

Post by Jayme »

16k = 16384 bytes = 4000 hex
32k = 32768 bytes = 8000 hex
64k = 65536 bytes = 10000 hex
128k = 131072 bytes = 20000 hex

you just have to remember to always put the file at the end of the chip. eg: a 64k chip is 10000 hex long, you have to put it at the end, your 16k bin is 4000 hex long so you use offset C000.
(use windows calculator in Hex mode for calculating this stuff)
the nvram is 128k but split into two 64k halves by VL400's board, end of the lower half is 10000, to put it at the end of the lower half is 10000 - 4000 = C000. end of the upper half is hex 20000, minus your 4000 long bin is 1C000
User avatar
Dec_head
Posts: 505
Joined: Thu Dec 17, 2009 10:33 pm
cars: VR Calais

Re: Writing bins hex offsets

Post by Dec_head »

Thanks
Post Reply