Solved! Go to Solution.
Hello Ron,
To avoid the complex directory structure of a CW project, you can run the CW Assembler program(a08hc.exe) independently from the IDE. Doing it this way, absolute assembly seems to be implicit, with all the include files necessary, located in the same directory as the primary .asm file. However, you also need to have a config.ini file in the directory, and load this prior to assembly, so that the assembler can find the include files. All output files generated by the assembler also go to the one directory. Note that the .S19 file actually has the extension .SX.
This method works well with "drag and drop". Perhaps others can point out any likely problems and deficiencies with the method.
I use this approach for adapting existing projects, previously assembled with P&E CASM08, to now assemble using CW.
Regards,
Mac
Hello Ron,
To clarify a couple of points -
With the assembly method outlined in my previous post, since I am not using the CW IDE, I need to use my own text editor of choice anyway. The assembler program, when used alone, doesn't know anything about default text editors. The assember window is only accessed when I need to assemble the code - when this is done, it's back to my text editor window to do any corrections.
In my previous post I referred to a 'config.ini' file. Of course this should have been a 'project.ini' file. This is necessary only so the assembler can find the include files within the current directory, and by initially using the File/Load Configuration assembler menu item.
Regards,
Mac
Hello
Just a side note. If you want to use the macro assembler in stand alone mode you can get rid of the project.ini file if using the options -ENV.
For instance to indicate paths where the assembler should look at, add option
-ENV"GENPATH=MyDir1;MyDir2;"
So in stand alone or batch mode you can use the assembler without any config file. All configuration settings can be done within a -ENV option.
Just FYI if someone is interested....
CrasyCat
Hello CrasyCat,
Is there any way that the assembler can be setup, perhaps using the -ENV option, so that it can find files "in the current directory", whatever that may be?
It would appear that the -ENV option requires that each directory be specifically named. The problem with this is that, whenever I create a new project directory, I need to manually update the assembler configuration. Puting a "default" project.ini file in my working directory seemed to be the only work-around.
Regards,
Mac
Hello
Basically the directory where you start the assembler from is the current directory.
So just start the assembler from your project directory using the DOS command
"C:\Program Files\Freescale\CW HC08 V5.0\prog\ahc08.exe my asmFile.asm"
If you are starting the assembler double clicking on its icon in the Explorer or on the desktop, then you have to go through a .ini file or define a shortcut for each project with InitialDirectory or Start in pointing to your project directory.
I would prefer the first solution.
CrasyCat
CrasyCat wrote:Hello
Just a side note. If you want to use the macro assembler in stand alone mode you can get rid of the project.ini file if using the options -ENV.
For instance to indicate paths where the assembler should look at, add option
-ENV"GENPATH=MyDir1;MyDir2;"So in stand alone or batch mode you can use the assembler without any config file. All configuration settings can be done within a -ENV option.
Just FYI if someone is interested....
CrasyCat
Hello
You can start the debugger from the command line the same way you are starting the assembler.
The executable file name is HIWAVE.exe and it is located in the prog directory.
CrasyCat
Quote:... IF I can learn how to launch the debugger without the CW wrapper.