Flash RFbee with CULfw and use with FHEM

Hello!

I have an RFbee and a Raspberry B+ under raspbian. My aim is to flash that RFbee with the CULfw to use it through FHEM (a domotic soft) and comunicate with various element with MAX! protocol.

I’ve got a Foca v2.2 serial module and i’d like to flash throug avrdude the CULfw firmware (culfw/culfw/Devices/RFbee at master · cgommel/culfw · GitHub)

I tried in many ways to flash the module but with no success. The compilation goes OK but i think some bits get lost during the transfert and i get this errorcode :

 RFbee.hex: 14 558 / 16 384 Bytes (88,85%)
    ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~

    avrdude.exe: AVR device initialized and ready to accept instructions

    Reading | ################################################## | 100% 0.02s

    avrdude.exe: Device signature = 0x1e9406
    avrdude.exe: NOTE: "flash" memory has been specified, an erase cycle will be performed
                 To disable this feature, specify the -D option.
    avrdude.exe: erasing chip
    avrdude.exe: reading input file "F:\RFbee\RFbee.hex"
    avrdude.exe: input file F:\RFbee\RFbee.hex auto detected as Intel Hex
    avrdude.exe: writing flash (14558 bytes):

    Writing | ################################################## | 100% 12.73s

    avrdude.exe: 14558 bytes of flash written
    avrdude.exe: verifying flash memory against F:\RFbee\RFbee.hex:
    avrdude.exe: load data flash data from input file F:\RFbee\RFbee.hex:
    avrdude.exe: input file F:\RFbee\RFbee.hex auto detected as Intel Hex
    avrdude.exe: input file F:\RFbee\RFbee.hex contains 14558 bytes
    avrdude.exe: reading on-chip flash data:

    Reading | ################################################## | 100% 10.93s

    avrdude.exe: verifying ...
    avrdude.exe: verification error, first mismatch at byte 0x3800
                 0x0c != 0x5a
    avrdude.exe: verification error; content mismatch

    avrdude.exe done.  Thank you.

I tried the reset-methode but the same error.

Is there a specific way to flash the firmware? I tried Arduino IDE but it doesn’t accept .hex files. The firmware Makefile is made to work with avrdude and the arduino bootloader.
Maybe should I use a specific library to compile?

I’m quite lost…

Thx in advance!! I’m working on this since weeks and really want to move on and build my install! For the moment i’m stuck at this starting point.

I have an RFbee

But, do you have a link to this device, so that we can tell why you supposed that the Arduino IDE can be used to program it?

Yes, sorry.

The RFbee from Seeedstudio is based on the arduino architecture (Atmega 168) with a RF transceiver CC1101.