logo       

CVS: python titext2ihex.py,NONE,1.1: msg#00010

Subject: CVS: python titext2ihex.py,NONE,1.1
Update of /cvsroot/mspgcc/python
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3058/python

Added Files:
        titext2ihex.py 
Log Message:
add a litlle utility to convert TI text to intel hex

--- NEW FILE: titext2ihex.py ---
#!/usr/bin/env python
# simple TI text to intel hex converter
# data is read from stdin and output on stdout
# usage: cat file.txt | titext2ihex >out.a43
#
# (C) 2004 Chris Liechti <cliechti@xxxxxxx>
# this is distributed under a free software license, see license.txt
#
# $Id: titext2ihex.py,v 1.1 2004/07/09 23:19:45 cliechti Exp $

from msp430.util import hexdump, makeihex, _ihexline
from msp430 import memory
import sys

data = memory.Memory()                      #prepare downloaded data
data.loadTIText(sys.stdin)                  #TI's format
for segment in data:
    #~ hexdump((segment.startaddress, segment.data))            #print a hex 
display
    makeihex((segment.startaddress, segment.data), eof=0)           #ouput a 
intel-hex file
_ihexline(0, [], type=1)



-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
qnx.openqnx.dev...    politics.lenini...    audio.emagic.ex...    tex.texinfo.gen...    handhelds.linux...    ietf.sipping/20...    lang.erlang.gen...    cygwin.talk/200...    yellowdog.gener...    mozilla.devel.l...    xfree86.newbie/...    openbsd.ports/2...    db.oracle.devel...    kde.kalyxo.deve...    user-groups.lin...    bbc.cvs/2003-04...    gnu.libtool.bug...    redhat.k12osn/2...    emulators.wine....    freebsd.devel.d...    search.xapian.g...    java.izpack.use...    network.mrtg.us...    windows.total-c...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe