When flashing or debugging a project for the first time, you need to specify which programmer you want to use and to which port it's connected.

Assuming that the project is called test, open the makefile test.mk using CodeLite file view.

Now edit the lines with the following variables:

test_PROGRAMMER_TYPE = programmer
test_PROGRAMMER_PORT = port

Note: If you are using the full BeRTOS SDK, this is unneeded because by simple clicking on flash button for first time,

the BeRTOS plug-in will show you the window to choose directly your programmer and port, and automatically it sets the correct value in the user makefile.

programmer is a string that identifies your programmer and must be one of the values below

  • AVR
    • programmer supported by  Avrdude
      arduino57600: Arduino baud=57600 (with atmega328p)
      arduino19200: Arduino baud=19200 (with atmega168)
      dt006: Dontronics DT006
      ere-isp-avr: ERE ISP-AVR, http://www.ere.co.th/download/sch050713.pdf
      frank-stk200: Frank's STK200 clone, http://electropol.free.fr/spip/spip.php?article15
      futurlec: Futurlec.com programming cable
      jtag1: Atmel JTAG ICE mkI, running at 115200 Bd
      jtag1slow: Atmel JTAG ICE mkI, running at 19200 Bd
      jtag2slow: Atmel JTAG ICE mkII (default speed 19200 Bd)
      jtag2: Atmel JTAG ICE mkII, running at 115200 Bd
      jtag2fast: Atmel JTAG ICE mkII, running at 115200 Bd
      jtag2isp: Atmel JTAG ICE mkII in ISP mode.
      jtag2dw: Atmel JTAG ICE mkII in debugWire mode.
      jtagmkI: Atmel JTAG ICE mkI, running at 115200 Bd
      jtagmkII: Atmel JTAG ICE mkII (default speed 19200 Bd)
      mib510: Crossbow MIB510 programming board
      pavr: Jason Kyle's pAVR Serial Programmer
      picoweb: Picoweb Programming Cable, http://www.picoweb.net/
      pony-stk200: Pony Prog STK200
      ponyser: design ponyprog serial, reset=!txd sck=rts mosi=dtr miso=cts
      siprog: Lancos SI-Prog, http://www.lancos.com/siprogsch.html
      sp12: Steve Bolt's Programmer
      stk200: STK200
      stk500: Atmel STK500, probing for either version 1.x or 2.x firmware
      stk500hvsp: Atmel STK500 in high-voltage serial programming mode(version 2.x firmware only)
      stk500pp: Atmel STK500 in parallel programming mode (version 2.xfirmware only)
      stk500v1: Atmel STK500, running a version 1.x firmware
      stk500v2: Atmel STK500, running a version 2.x firmware
      stk600: Atmel STK600 in ISP mode, or in PDI mode for ATxmega devices
      stk600hvsp: Atmel STK600 in high-voltage serial programming mode
      stk600pp: Atmel STK600 in parallel programming mode
      usbasp: USBasp, http://www.fischl.de/usbasp/
      usbtiny: USBtiny simple USB programmer, http://www.ladyada.net/make/usbtinyisp/
      xil: Xilinx JTAG cable 
      
  • ARM
    • programmer supported by  Openocd:
      jtag-tiny: Amontec programmer http://www.amontec.com/jtagkey-tiny.shtml.
      luminary: Stellaris Luminary Micro http://www.luminarymicro.com/
      

port is the port the programmer is connected to. It can be:

  • AVR
    • Avrdude supports both serial and usb programmers.
      comN: N is serial port number
      usb: if the programmer is connect to usb port
      
  • ARM
    • Openocd currently supports only usb programmers, so this value is ignored

Attachments