Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Write hex file in a memory

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    www.mcselec.com Forum Index -> BASCOM-AVR Archive
View previous topic :: View next topic  
Author Message
pinkfloyd11

Bascom Member



Joined: 02 Jul 2007
Posts: 248

italy.gif
PostPosted: Mon Nov 05, 2007 9:03 pm    Post subject: Write hex file in a memory Reply with quote

Dear Friends

I should write an hex file in an external memory.
For do it I should simply read byte to byte from hex file and write in a memory or there are header in hex file that I must skip?

Thanks
Back to top
View user's profile
AdrianJ

Bascom Expert



Joined: 16 Jan 2006
Posts: 2472
Location: Queensland

australia.gif
PostPosted: Tue Nov 06, 2007 12:33 am    Post subject: Reply with quote

It depends whether you need the hex file itself in memory, or just the data content. An Intel Hex file contains ascii characters representing a start character, header, address, data and a checksum on each line. To store just the data, you have to strip out all other stuff, and translate the characters representing the data into bytes, then store them at the correct addresses.

Google for the Intel Hex file structure.

_________________
Adrian Jansen
Computer language is a framework for creativity
Back to top
View user's profile Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    www.mcselec.com Forum Index -> BASCOM-AVR Archive All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum