Failed to read s-file issue.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Failed to read s-file issue.

1,137 Views
gibbon1
Contributor III

I been using the USBDM Flash Programmer utility.  Which I like very much*

I have problem that when we convert our firmware bin files to s19 files we get an error.

We;re using the bin2srec.exe utility from here.

http://www.s-record.com/

What I found was when it converts the bin file it adds a type S5 record to the end of the s19 file. And the flash programmer utility barfs on it.

I think the all S5 (and S6) records do is indicate the number of lines in the file. So they probably should be detected and ignored.

PS: I'm planning on creating a USBDM programmer based on the K20 (same as the freedom board) but that fits in a small off the shelf case.

And hopefully put the design on github as an open source project.

0 Kudos
Reply
3 Replies

784 Views
pgo
Senior Contributor V

Hi Matthew,

Can you provide an example of a converted file with the offending record and I will look at it.

This will save me chasing up things :smileyhappy:

bye

0 Kudos
Reply

784 Views
gibbon1
Contributor III

Sorry if I just paste an example in here but this fails to load, if you remove the second to last line (S5030020DC) it works fine

00600004844521B

S12300002369666E646566204556454E545F480D0A23646566696E65204556454E545F4816

S12300200D0A0D0A23696E636C756465203C737464696E742E683E0D0A23696E636C756408

S123004065203C737464626F6F6C2E683E0D0A0D0A2F2F2F205573657220646566696E650B

S1230060642063616C6C6261636B20747970650D0A7479706564656620766F696420282A9D

S1230080486F6F6B2928766F6964202A293B0D0A0D0A2F2A2A0D0A202A200D0A202A200D5A

S12300A00A202A2F0D0A7479706564656620737472756374204576656E740D0A7B0D0A0918

S12300C0766F696420282A616374696F6E2928737472756374204576656E74202A293B0DA7

S12300E00A09756E696F6E0D0A097B0D0A23696620646566696E656428434F4E4649475FF0

S12301004B45524E5F5349474E414C532920262620434F4E4649475F4B45524E5F534947FF

S12301204E414C530D0A09097374727563740D0A09097B0D0A0909097374727563742050D4

S1230140726F63657373202A7369675F70726F633B20202F2A2050726F6365737320746F96

S1230160206265207369676E616C6C6564202A2F0D0A0909097369676269745F7420202061

S123018020202020207369675F6269743B2020202F2A205369676E616C20746F2073656EFF

S12301A064202A2F0D0A09097D205369673B0D0A23656E6469660D0A09097374727563742C

S12301C00D0A09097B0D0A090909486F6F6B202066756E633B2020202020202020202F2A14

S12301E020506F696E74657220746F20736F6674696E7420686F6F6B202A2F0D0A09090954

S1230200766F6964202A757365725F646174613B202020202F2A204461746120746F2062F3

S12302206520706173736564206261636B20746F207573657220686F6F6B202A2F0D0A09B8

S1230240097D20496E743B0D0A0D0A09097374727563740D0A09097B0D0A090909626F6F93

S12302606C20636F6D706C657465643B202020202020202020202020202F2A2047656E655E

S1230280726963206576656E7420636F6D706C6574696F6E202A2F0D0A09097D2047656E27

S12302A03B0D0A097D2045763B0D0A7D204576656E743B0D0A0D0A2F2A2A20496E6974698D

S12302C0616C697A6520746865206576656E74205C6120652077697468206120736F6674C7

S12302E07761726520696E74657272757074202863616C6C2066756E6374696F6E205C61F7

S123030020662C207769746820706172616D65746572205C61207529202A2F0D0A23646553

S123032066696E65206576656E745F696E6974536F6674696E7428652C662C7529205C0D69

S12303400A09282865292D3E616374696F6E203D206576656E745F686F6F6B5F736F6674F5

S1230360696E742C2865292D3E45762E496E742E66756E63203D202866292C202865292D90

S12303803E45762E496E742E757365725F64617461203D20287529290D0A0D0A696E6C69DB

S12303A06E6520766F6964206576656E745F686F6F6B5F736F6674696E74284576656E74B2

S12303C0202A65290D0A7B0D0A09652D3E45762E496E742E66756E6328652D3E45762E49A7

S12003E06E742E757365725F64617461293B0D0A7D0D0A0D0A23656E6469660D0ACE

S5030020DC

S9030000FC

0 Kudos
Reply

784 Views
pgo
Senior Contributor V

Hi Matthew,

It will be updated to ignore S5 and S6(?) records in the next release.

bye

0 Kudos
Reply