User manual

114
mikoBasic PRO for dsPIC30/33 and PIC24
MikroElektronika
CHAPTER 3
mikroBasic PRO for dsPIC30/33
and PIC24 Command Line Options
Usage: mBdsPIC.exe [-<opts> [-<opts>]] [<inle> [-<opts>]] [-<opts>]]
Inle can be of *.mbas, *.mcl and *.pld type.
The following parameters and some more (see manual) are valid:
-P <devicename> : MCU for which compilation will be done.
-FO <oscillator> : Set oscillator [in MHz].
-SP <directory> : Add directory to the search path list.
-N <lename> : Output les generated to le path specied by lename.
-B <directory> : Save compiled binary les (*.mcl) to ‘directory’.
-O : Miscellaneous output options.
-DBG : Generate debug info.
-L : Check and rebuild new libraries.
-DL : Build all les as libraries.
-UICD : ICD build type.
-EH <lename> : Full EEPROM HEX le name with path.
-Y : Dynamic link for string literals.
-LHF : Generate Long hex format.
-GC : Generate COFF le.
-PF : Project le name.
-RA : Rebuild all sources in project.
Example:
mBdsPIC.exe -MSF -DBG -p30F4013 -Y -DL -O11111114 -fo80 -N”C:\Lcd\Lcd.mbpds” -SP”C:\
Program Files\Mikroelektronika\mikroBasic PRO for dsPIC\Defs”
-SP”C:\Program Files\Mikroelektronika\mikroBasic PRO for dsPIC\Uses” -SP”C:\
Lcd\” “__Lib_Math.mcl” “__Lib_MathDouble.mcl”
“__Lib_System.mcl” “__Lib_Delays.mcl” “__Lib_LcdConsts.mcl” “__Lib_Lcd.
mcl” “Lcd.mbas”