Verification faliure trying to download code

This forum is for the discussion of other projects on Megasquirt/Microsquirt hardware that don't fit into any of the other forums

Moderators: jsmcortina, muythaibxr

Verification faliure trying to download code

Postby 427v8 » Sun Jan 10, 2010 9:43 am

OK this used to work, but now when I try to download a new build I get a validation failure.
I can still download other things like the trans code so the hardware seems ok.

During download I see it does a 'Setting page register 0x01; just before the failure;
Here;
Code: Select all
Setting page register 0x01:
TX:  a2 00 30 01
RX:  e0 00 3e
Page set.
TX:  a7 00 00 01
RX:  00 10
RX:  e0 00 3e
Verification failed: At 0x10000 expected 0x70, found 0x00.
Exception caught: 4


I don't see this in anyone elses code, so I'm sure that has something to do with the problem.
trouble is I can't figure out what is causing it to happen.
The map files look similar, the listing files have no clues...

Any ideas?
I guess I need to learn about S19 files to fix this, grrr
427v8
MS/Extra Newbie
 
Posts: 9
Joined: Tue Jan 05, 2010 7:15 am

Re: Verification faliure trying to download code

Postby jsmcortina » Sun Jan 10, 2010 10:00 am

Attach the s19 file or email me. jsm@jsm-net.demon.co.uk sounds like your build is including stuff that shouldn't be there.

James
I can supply, repair or upgrade Megasquirts in UK.

My Success story: viewtopic.php?f=104&t=34277
MSEXTRA documentation at: http://www.msextra.com/doc/index.html
jsmcortina
Site Admin
 
Posts: 27569
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK

Re: Verification faliure trying to download code

Postby 427v8 » Sun Jan 10, 2010 10:04 am

Oh I'm sure I'm doing something I shouldn't, but what?
I've tried undoing the changes I've made ( I added a timer interrupt) but it still does it.

And Thanks a ton for looking at it!

I emailed you the S19, and posted it here to share

Code: Select all
S0450000433A5C446F63756D656E747320616E642053657474696E67735C6B656974682E504F4B45595C4D7920446F63756D656E74735C4152535C62696E5C4152532E616273D3
S1237000FE7050FD704E270E35ED31EC3169700434FB310326F2FE7052EC31270BED3118B1
S12370200A30700434F920F1FC7054270EFE7056ED313B341540303A0434F53DCF3568790C
S12370400011CC09395B105A1207B50680000001705CC052000070600000706034000068D9
S12370603D7900C8C60D5BC97900CA7900CB4CCB2CC7877C34007C34343D371410F63435F4
S123708037527B3435E681CE3436326BE4F63435C13225037934354CCB8010EF323D6CADE5
S12370A069821410F63400F134012720C6016B82B6340136427A3401CE340232A6E4EE8032
S11670C06A00B634018132250379340110EFE6821B833D99
S123C0004FCC802DF63434F134352725F6343437527B3434CE343633E6E55BCFF63434C107
S123C020322503793434F63434F1343526034DCB804FCC201AF6340037527B3400D6CFCE1E
S117C0403402326BE4F63400C13225037934000B000B000029
S123FF80C050C050C050C050C050C050C050C050C050C050C050C050C050C050C050C0505D
S123FFA0C050C050C050C050C050C050C050C050C050C050C050C050C050C050C050C0503D
S123FFC0C050C050C050C050C050C050C050C050C050C050C050C000C050C050C050C0506D
S123FFE0C050C050C050C050C050C050C050C050C050C050C050C050C050C050C050703C61
S206010000703C4C
S2243C80001B99CC023C5B304D3A405A347900354C3A404F3708FCC6805B3969856285E68569
S2243C8020C13C2DF8790002790003790009790252C6FF7B024279024A79024C1A84B75434AA
S2243C80401670603A16706110EFF60240C8807B02401A8434C6486E8216707AECA13BC669D5
S2243C806016707AECA13BC62016707A3AC7876C821A84341988B7646E8216709E1B82044117
S21D3C80800AEC803BE68816707A1B82EE82086E828EFFFF25DB20B21B8287
S804000000FB
427v8
MS/Extra Newbie
 
Posts: 9
Joined: Tue Jan 05, 2010 7:15 am

Re: Verification faliure trying to download code

Postby jsmcortina » Sun Jan 10, 2010 11:23 am

The problem line in your s19 is
Code: Select all
S206010000703C4C

It is trying to write 70 3c 4c to address 0x0000 with PPAGE=0x01
That doesn't make any sense as it is register space.

Delete this line from the s19 and it should load, but then you need to examine your application as to why it is generating that output.

EDIT: See also http://en.wikipedia.org/wiki/SREC_(file_format)

James
I can supply, repair or upgrade Megasquirts in UK.

My Success story: viewtopic.php?f=104&t=34277
MSEXTRA documentation at: http://www.msextra.com/doc/index.html
jsmcortina
Site Admin
 
Posts: 27569
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK

Re: Verification faliure trying to download code

Postby 427v8 » Sun Jan 10, 2010 8:51 pm

Ah thanks, I had a duplicate _Startup line in my isr_vectors.c, so it downloads again.

Now I just have to figure out what I broke so it won't run!
Gotta love computers
427v8
MS/Extra Newbie
 
Posts: 9
Joined: Tue Jan 05, 2010 7:15 am


Return to Other Development

Who is online

Users browsing this forum: No registered users and 1 guest