Go Down

Topic: DuinOS: small and simple rtos (Read 51 times) previous topic - next topic

juliandasilva

Hi gwen,

Many thanks for your comments.
The 644 and 1284 ports are already there, the only thing you must do is to add something like this to the /hardware/boards.txt file (just be carefull with the type of bootloader/protocol you are using, and with the build.f_cpu param -crystal freq-):

Code: [Select]

##############################################################

Multiplo_Brain_M644_DuinOS.name=Multiplo.Brain.M644 + DuinOS
Multiplo_Brain_M644_DuinOS.upload.protocol=usbasp
Multiplo_Brain_M644_DuinOS.upload.maximum_size=65536
Multiplo_Brain_M644_DuinOS.upload.speed=19200
Multiplo_Brain_M644_DuinOS.upload.verbose=true

Multiplo_Brain_M644_DuinOS.bootloader.low_fuses=0xFF
Multiplo_Brain_M644_DuinOS.bootloader.high_fuses=0xDC
Multiplo_Brain_M644_DuinOS.bootloader.extended_fuses=0xFD
Multiplo_Brain_M644_DuinOS.bootloader.path=ADABootloader
Multiplo_Brain_M644_DuinOS.bootloader.file=ADABoot_644p.hex
Multiplo_Brain_M644_DuinOS.bootloader.unlock_bits=0x3F
Multiplo_Brain_M644_DuinOS.bootloader.lock_bits=0x0F

Multiplo_Brain_M644_DuinOS.build.mcu=atmega644p
Multiplo_Brain_M644_DuinOS.build.f_cpu=16000000L
Multiplo_Brain_M644_DuinOS.build.core=arduino.DuinOS
Multiplo_Brain_M644_DuinOS.build.verbose=true

##############################################################

Multiplo_Brain_M1284_DuinOS.name=Multiplo.Brain.M1284 + DuinOS
Multiplo_Brain_M1284_DuinOS.upload.protocol=stk500v2
Multiplo_Brain_M1284_DuinOS.upload.maximum_size=131072
Multiplo_Brain_M1284_DuinOS.upload.speed=19200
Multiplo_Brain_M1284_DuinOS.upload.verbose=true

Multiplo_Brain_M1284_DuinOS.bootloader.low_fuses=0xFF
Multiplo_Brain_M1284_DuinOS.bootloader.high_fuses=0xDC
Multiplo_Brain_M1284_DuinOS.bootloader.extended_fuses=0xFD
Multiplo_Brain_M1284_DuinOS.bootloader.path=ADABootloader
Multiplo_Brain_M1284_DuinOS.bootloader.file=ADABoot_1284p.hex
Multiplo_Brain_M1284_DuinOS.bootloader.unlock_bits=0x3F
Multiplo_Brain_M1284_DuinOS.bootloader.lock_bits=0x0F

Multiplo_Brain_M1284_DuinOS.build.mcu=atmega1284p
Multiplo_Brain_M1284_DuinOS.build.f_cpu=16000000L
Multiplo_Brain_M1284_DuinOS.build.core=arduino.DuinOS
Multiplo_Brain_M1284_DuinOS.verbose=true

##############################################################


We have tested it on the 644 and looks that is working, however, please remember that this is the v0.1-Aplha, so you may find bugs.
Please let me know any issue.

Regards,
Julián
http://robotgroup.com.ar

gwen

#31
Nov 20, 2009, 09:40 pm Last Edit: Nov 20, 2009, 09:54 pm by gwen Reason: 1
Hi Julian,
  really cool I will attempt to add  that stanza to the boards.txt and modify appropriately for the sanguino and test and get back to you.
  and of course my app uses pulsein to measure PWM from a CO2 meter(but can move to I2C) and a RCtime routine to read an HS1101 humidity sensor(and soon a MG811 Co2 sensor). so all will have to be refactored/re-engineered I suspect.
          sigh
         gwen
ps changes for sangunio follow

gwen

Sanguino_DuinOS.name=Sanguino.M644 + DuinOS
Sanguino_DuinOS.upload.protocol=stk500
Sanguino_DuinOS.upload.maximum_size=63488
Sanguino_DuinOS.upload.speed=38400
Sanguino_DuinOS.upload.verbose=true

Sanguino_DuinOS.bootloader.low_fuses=0xFF
Sanguino_DuinOS.bootloader.high_fuses=0xDC
Sanguino_DuinOS.bootloader.extended_fuses=0xFD
Sanguino_DuinOS.bootloader.path=atmega644p
Sanguino_DuinOS.bootloader.file=ATmegaBOOT_644P.hex
Sanguino_DuinOS.bootloader.unlock_bits=0x3F
Sanguino_DuinOS.bootloader.lock_bits=0x0F

Sanguino_DuinOS.build.mcu=atmega644p
Sanguino_DuinOS.build.f_cpu=16000000L
Sanguino_DuinOS.build.core=arduino.DuinOS
Sanguino_DuinOS.build.verbose=true

gwen

Looks like the ebook on FreeRtos is starting to look like a reasonable investment :)


     gwen
ps I will be using Duinos for automating the measurement, control and supervisory tasks of running a hydroponic growing chamber.(now if only I could figure out a mostly software approach to measuring PPM of nutrients :)(that is just using the hardware that comes on an arduino.)

gwen

#34
Nov 20, 2009, 11:15 pm Last Edit: Nov 21, 2009, 12:00 am by gwen Reason: 1
OUCH.. using core=arduino.duinos instead of sanguino on the 644 chip results in the onewire routines NOT working and hanging up the RTOS instead.

  Any thoughts greatly welcome will post some sample code shortly after I I make a clean example(app too buggy right now :)


      gwen
using 1wire to read temp sensors

Go Up