Go Down

Topic: arduino software with iRobot Create Command Module (Read 1 time) previous topic - next topic

braingram

I would like to configure the arduino software for use with the iRobot Create Command Module. It contains a atmega168 preloaded with a irobot bootloader that seems similar to the arduino bootloader.

However, I am unsure where I should start modifying the arduino software. Can anyone layout a basic 'tutorial for adding board support to the arduino software'?

I'm guessing I should start by editing hardware/boards.txt, adding an entry for the new board. This is what I have so far
Code: [Select]

commandModule.name=iRobot Create Command Module

commandModule.upload.protocol=stk500
commandModule.upload.maximum_size=14336
commandModule.upload.speed=19200

commandModule.bootloader.low_fuses=0xff
commandModule.bootloader.high_fuses=0xdc
commandModule.bootloader.extended_fuses=0xf8
commandModule.bootloader.path=null
commandModule.bootloader.file=null
commandModule.bootloader.unlock_bits=0x3F
commandModule.bootloader.lock_bits=0xef

commandModule.build.mcu=atmega168
commandModule.build.f_cpu=18432000L
commandModule.build.core=arduino

I cannot find a .hex file for the irobot bootloader although the manual does list the fuses and lock bits (but not the unlock bits, the lock bits are listed as "Lock = 0xEF (read as 0x2F by avrdude)" what does that mean?)

So, assuming I cannot find a bootloader, is it 'safe' for me to just plug in the command module and start trying to upload programs? Specifically, what is the worst thing that will happen (will I hose the irobot bootloader or brick the command module)?

Any help would be greatly appreciated.

chiefcrash


Go Up