Code Warrior 5.6  Can't get a handle on using it, need help.

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Code Warrior 5.6  Can't get a handle on using it, need help.

2,629件の閲覧回数
erokc
Contributor I
I use my own text editor for writing assembly code for HC705C9 and now moved to HC908AP.  I don't want to learn a new editor.  I need to assemble code and run the ICE and Debugger on the FSICEBASE.  I can't find the START button for the HC08 assembler.  Is it in the CW IDE?
 
The CW development system has many features I won't use.  Maybe I would if I understood what they did.  I don't write in C.  Maybe I would if I knew how to compile it with the assembly.
 
Could someone give me an outline to step me through the process, please.
 
Dave
ラベル(1)
0 件の賞賛
返信
3 返答(返信)

547件の閲覧回数
bigmac
Specialist III

Hello Dave,

The simplest approach may be to run the CW assembler and debugger/simulator as separate tools, when required, and not via the CW IDE.  This will permit you to  use your own text editor, and can potentially give a much simpler structure for the project.  Note that this approach is suitable for absolute assembly only (not re-locatable assembly), but I guess this also applied your old HC705C9 code anyway.

You will probably need to include a "default" project.ini file within the same directory as your main assembly file and any incude files, so the assembler can find them.  The method that works for me is to open the assembler program, drag the project.ini file to the assembler window (done once per session), and then drag the main assembly file to the assembler window, as required.

Alternatively, if you have previously used P&E tools for the HC705, it may be simpler to stick with them for the HC908.  These are a free download from the P&E web site for the HC908 devices.

Note that there are a number of differences to be taken into account between code written for CW assembler, and P&E CASM08 assembler, particularly for pseudo-ops and directives.  The CW assembler gives more flexibility for conditional assembly, and the like.

Regards,
Mac

 

0 件の賞賛
返信

547件の閲覧回数
erokc
Contributor I
Mac, thanks for your reply.  It's starting to make sense now.  Freescale answered my request telling me that the MAKE button is the Assemble function and the Debugger assembles and creates an S19 file.  Is the S19 file used in the process.  I only used it to burn an EPROM.  It doesn't have symbols in it so the Debugger or the assembler must create a symbol table for the Debugger.
 
I think I will use the CW Project and just do my editing outside the project.  I'm thinking the process may work smoother that way.
 
So will the FSICEBASE load object code into an assembled product with the microcontroller mounted or will I have to build the RS232 driver mentioned in the data sheet?  I put contact pads on the board for connection with spring pins. Does anyone make the hardware for that?  Also I would like to put a serial number in each device. I could use a program routine that sequenced the SN for each load.
 
Dave
0 件の賞賛
返信

547件の閲覧回数
bigmac
Specialist III

Hello Dave,

For programming the flash, you will need to use the MON08 interface, or something equivalent.  I happen to use the MON08-MULTILINK product from P&E, but there are other products.  You can also construct your own interface.  I also use the P&E  PROG08SZ flash programmer software, available from their web site.  This directly uses the S19 file.

However, I do not directly use the 16-pin header associated with MON08 - it is too bulky, and leaves the pins of the device rather exposed to accidental contact, and possibly more prone to damage due to static discharge.  I would normally provide a row of eight plated-through holes on the PCB, with six connections to the required port pins, plus Vdd and ground.  When I wish to program the MCU, I have made up an adaptor that "plugs" into the holes, with contact maintained by applying sideways pressure during the short period required for programming.

I also notice that P&E also have a utility called "Serialise", intended to handle sequential serial numbers, although I have not personally used this yet.

Regards,
Mac

 

0 件の賞賛
返信