Page 1 of 1

Offset Issues

Posted: Sun Sep 30, 2007 1:15 am
by Fusion Ed
Just been playing with nistune version 0.9110b.

I am working on the K11 micra again with the grid board. I can now offset it correctly, however when I have done so consult wont work correctly and shows totally incorrect (all pretty much maxed out) figures. If I remove the offset this works again, but then obviously I cannot tune.

Matt any advice?

Posted: Tue Oct 02, 2007 11:32 pm
by Matt
Sounds like the CONSULT table which NIStune uses in 'tuner mode' is being adjusted to the wrong location once you change the OFFSET value

I checked the code and the OFFSET is being used to help with location of the table

For example default K11 values are OFFSET = 0x8000 and CONSULT = 0x0F80. This means that table in physical memory sits at 0x8F80 but adjusting the offset will screw up the consult location

You will need to override the offset by adding an extra parameter in the address file

CONSULT=&Hxxxx

Where xxxx is 0x8F80 - OFFSET value to get the consult table in the correct location again

Posted: Wed Oct 03, 2007 12:40 am
by Fusion Ed
ahh ok so is this a bug or a feature :)?!

Posted: Wed Oct 03, 2007 12:02 pm
by Matt
thats a difficult one...

the original ROM Editor address entries start from the offset. So a 32K ROM would have addresses 0000h-7FFFh in the address file (with an imaginary offset of 8000h where the maps really lived)

so the CONSULT parameter was done the same.

changing the OFFSET however is having two effects
- Romulator offset where the image gets loaded in the emulator
- ECU offset where the image expects to be run

Have to think about this one and see what the best solution is

Posted: Wed Oct 03, 2007 7:42 pm
by Fusion Ed
Ok. Provided there is awork around for now that will be fine.

Did you get my email about the type 1 boards?

Posted: Mon Oct 08, 2007 3:59 am
by Fusion Ed
All works fine now :)