I AM A BEGINER AND AM NOT ABLE TO WRITE A SINGLE c code That WORKS ON MY BOARD FOR the past two weeks. REQUEST SOMEBODY TO REPLY TO THIS PROBLEM> I have a board with the 68hc11 F series processor The board is operating with a buffalo monitor. HOW IS THE S RECORD GENERATED USING CODE WARRIOR FOR A GIVEN .c FILE. IF GENERATED FROM THE ABS FILE (HOW CAN I CREATE THE ABS FILE FOR A GIVEN COMMAND). Can this s record file generated by code warrior in turn be transfered to the ram for execution.(I can transfer s records to the ram using ericom's software.) IF ANYONE HAVE SOME SUGESTIONS AS TO WHICH GROUP I CAN POST THIS MSG ON FOR A REPLY ALSO WOULD BE USEFUL. |
|
S record generation
Started by ●April 3, 2004
Reply by ●April 3, 20042004-04-03
In a message dated 4/3/04 3:59:49 PM Eastern Standard Time, writes: I AM A BEGINER AND AM NOT ABLE TO WRITE A SINGLE c code That WORKS ON MY BOARD FOR the past two weeks. REQUEST SOMEBODY TO REPLY TO THIS PROBLEM> I have a board with the 68hc11 F series processor The board is operating with a buffalo monitor. =========================== I use the imagecraft c compiler for the hc11 every day. I also have f1 processors. What compiler do you use? What xtal speed do you use? does the buffalo monitor 'sign on'? (I've never used the buffalo monitor.... I assume to use it you dl the prog to ram, then jump to it using the monitor, right so far?) How much ram do you have? Where is it orged to? Do you tell the compiler to put your stack poiunter at the end of ram (either internal or external?). Maybe one of these items will fix the problem for you! |
Reply by ●April 3, 20042004-04-03
--- In , "Selvan David" <selvnd@y...> wrote: > HOW IS THE S RECORD GENERATED USING CODE WARRIOR FOR A GIVEN .c > FILE. IF GENERATED FROM THE ABS FILE (HOW CAN I CREATE THE ABS > FILE FOR A GIVEN COMMAND). > > Can this s record file generated by code warrior in turn be > transfered to the ram for execution.(I can transfer s records to > the ram using ericom's software.) I am not familiar with the CodeWarrior tools for the HC11, but I may be able to offer you some general advice that will help you solve your problem. In general, generating object code from C source(s) for a microcontroller target involves three major steps: Compilation of all source (.C) files, linking the object file(s) generated by the compiler together, along with relevant libraries and 'CRT' runtime module (which I am guessing is the step that gives you the .ABS file you mentioned), and then converting the absolute binary file into a format that can be used by a device programmer or loader. This third step - conversion of .ABS to, say, S-records, usually involves the use of a utility program that is provided by the compiler vendor. Since I am not familiar with CodeWarrior, I can't tell you what this utility is called, but it might go under a name like "OBJCONV" or "OBJSEND" or something similar. This functionality might also be available from the IDE. Oftentimes, the utility in question will be able to take a absolute object file and convert it into any one of several different formats, including the ubiquitous S-record (S19) format. You will have to check the compiler's documentation to identify the name of the utility and the command line options it uses. If the compiler package includes one or more 'sample projects', you might try opening one of these in the IDE (if it has one) or look at the makefiles (if it uses them) for the project to see if they can give you any clues. For large projects, such as those intended to be stored in a external ROM or internal OTP or EPROM, you would usually use a dedicated device programmer to program the device using the S-record file previously generated. If your program is small enough to fit within the HC11's EEPROM, or you are using a debugging board that provides sufficient RAM for temporary program storage, you might be able to use John Beatty's JBUG to program/upload your code, which you can get at: http://freespace.virgin.net/john.beatty/ Hope this helps. |
Reply by ●April 4, 20042004-04-04
Hello, If you use one of the CodeWarrior stationeries, you see that the project contains a burner.bbl. This is a burner batch language file. With this, a S-Record is generated out of the .abs file. See the documentation assoziated with the burner (you can use the burner as well from a make file/etc), and the burner has full set of options to control the S-Record generation. To create the .abs file: see as well the project delivered with CodeWarrior: individual .c files are compiled to object files (.o), which are then linked by the linker (with linker parameter file .prm input) to an absulute file (.abs). To create a project with the stationeries: launch CodeWarrior IDE, select menu File > New, then HC11 Stationery, and then go forward with the base stationery you want to use. Erich > -----Original Message----- > From: Selvan David [mailto:] > Sent: Samstag, 3. April 2004 22:56 > To: > Subject: [m68HC11] S record generation > I AM A BEGINER AND AM NOT ABLE TO WRITE A SINGLE c code That WORKS ON > MY BOARD FOR the past two weeks. REQUEST SOMEBODY TO REPLY TO THIS > PROBLEM> > > I have a board with the 68hc11 F series processor > The board is operating with a buffalo monitor. > > HOW IS THE S RECORD GENERATED USING CODE WARRIOR FOR A GIVEN .c FILE. > IF GENERATED FROM THE ABS FILE (HOW CAN I CREATE THE ABS FILE FOR A > GIVEN COMMAND). > > Can this s record file generated by code warrior in turn be > transfered to the ram for execution.(I can transfer s records to the > ram using ericom's software.) > > IF ANYONE HAVE SOME SUGESTIONS AS TO WHICH GROUP I CAN POST THIS MSG > ON FOR A REPLY ALSO WOULD BE USEFUL. > > ------------------------ Yahoo! Groups Sponsor > ---------------------~--> Buy Ink Cartridges or Refill Kits > for your HP, Epson, Canon or Lexmark Printer at MyInks.com. > Free s/h on orders $50 or more to the US & Canada. http://www.c1tracking.com/l.asp?cidU11 http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/dN_tlB/TM ---------------------------------~- Yahoo! Groups Links |