Hello, Iam trying to port Gordon Doughmans' bootloader for the B32 into the Metrowerks compiler V1.2 so I can program an 912D60A from the serial port. If I use any of the directives in the program I get an Ignore Directive warning C12062. The help file for the compiler does not even show a c12062 warning. I would like to define storage and use the org directive to force the pc to a know place so that the code is ram address independent just like the original assembler code. Any ideas??? Thanks, |
|
HC12 Inline Assembler & CW V1.2
Started by ●October 10, 2003
Reply by ●October 11, 20032003-10-11
C12062: Ignored directive [DISABLE, INFORMATION, WARNING, ERROR] Description The compiler does not support the directive referenced in this message. Usually this is one of following assembler directives: ALIGN, BASE, CLIST, DCB, DS, END, EQU, EVEN, EXTERNAL, FAIL, GLOBAL, INCLUDE, LIST, LLEN, LONGEVEN, MLIST, NOL, NOLIST, NOPAGE, ORG, PAGE, PLEN, PUBLIC, RMB, SECTION, SET, SPC, TABS, TITLE, TTL, XDEF, XREF, XREFB. Example __asm { xdef myVar LDX #myVar } Tips Try to use the C equivalent (e.g. for XDEF) extern short myVar; __asm { LDX #myVar } You can use the #pragma CODE_SEG to place your code at a specific address. See the manual/help page on the #pragma CODE_SEG. Place the code in the linker prm file with the segment name you use with the pragma at the address you want. The compiler does not support the ORG directive. If you want to use assembly ORG, I suggest to write it for the assembler (and not in C/compiler code). Erich > -----Original Message----- > From: bitjockey1 [mailto:] > Sent: Freitag, 10. Oktober 2003 17:27 > To: > Subject: [68HC12] HC12 Inline Assembler & CW V1.2 > Hello, > Iam trying to port Gordon Doughmans' bootloader for > the B32 into the Metrowerks compiler V1.2 so I can program an > 912D60A from > the serial port. If I use any of the directives in the program I get > an Ignore Directive warning C12062. The help file for the compiler > does not even show a c12062 warning. I would like to define storage > and use the org directive to force the pc to a know place so that the > code is ram address independent just like the original > assembler code. Any ideas??? > > Thanks, > ------------------------ Yahoo! Groups Sponsor > ---------------------~--> Rent DVDs from home. Over 14,500 > titles. Free Shipping & No Late Fees. Try Netflix for FREE! > http://us.click.yahoo.com/ArdFIC/hP.FAA/ySSFAA> /dN_tlB/TM > -------------------------- > -------~-> > > -------------------- ">http://docs.yahoo.com/info/terms/ |
Reply by ●October 11, 20032003-10-11
You can save yourself the trouble: it won't work. The D60A has a
very different FLASH, and needs a different bootloader. Gary Olmstead Toucan Technology Ventura CA www.toucantechnology.com At 03:27 PM 10/10/03 +0000, you wrote: >Hello, > Iam trying to port Gordon Doughmans' bootloader for the B32 >into the Metrowerks compiler V1.2 so I can program an 912D60A from >the serial port. If I use any of the directives in the program I get >an Ignore Directive warning C12062. The help file for the compiler >does not even show a c12062 warning. I would like to define storage >and use the org directive to force the pc to a know place so that the >code is ram address independent just like the original assembler code. >Any ideas??? > > Thanks, > >-------------------- > >">http://docs.yahoo.com/info/terms/ > |
Reply by ●October 13, 20032003-10-13
Gary, I understand the underlying Flash technology (SST's silicon) on the D60A will have to be bulk erased per flash page and row programmed 64 bytes at a time. That's part of the porting process. I am a Newbie to emdedded C (Programmed in assembler for 19+ years). I guess my question lies more with Code Warrior and how it process inline assembler. I thought it would just get to the __asm{} and chew what was between the braces whether it was definition of vars, equs, orgs, or assembly code. Apparently this is not the case. Thanks for the reply, Brian K. Mohlman Sr. Design Engineer (Electrical) Advanced Concepts Design Engineering JLG Industries Inc. 1 JLG Drive McConnellsburg, PA 17233 Ph. (717) 485-6495 mailto: http://www.jlg.com http://www.gradall.com *********************************************************************** The information contained in this transmission is confidential. It is intended solely for the use of the individual(s) or organization(s) to whom it is addressed. Any disclosure, copying or further distribution is not permitted unless such privilege is explicitly granted in writing by JLG Industries, Inc. Further, JLG Industries, Inc. is not responsible for the proper and complete transmission of the substance of this communication nor for any delay in its receipt. |