tinyFISH FC – initial setup & flashing tutorial II/II

By | January 18, 2017

In the previous tutorial we flashed the betaflight firmware into the STM32 of our flightcontroller, this time we will flash the tinyFISH FC receiver firmware. We are going to use the frsky compatible OpenSky firmware. You can now decide to download the latest version of OpenSky here and build the tinyfish target yourself (make TARGET=TINYFISH). Or you can download the latest release hex file from the release download page (download opensky_tinyfish_full.hex).

In order to flash this hex file into the receiver you will need a cc debugger or an arduino/rapsberry set up with special software. In this tutorial I am going to use the TI CC Debugger. Before we can start flashing we will have to connect the cc debugger to the CC2510 ISP port:

Please use the following connection scheme:

CC GND   -> CC DEBUGGER PIN 1 [GROUND       ]
CC CLOCK -> CC DEBUGGER PIN 3 [CLOCK        ]
CC DATA  -> CC DEBUGGER PIN 4 [DATA         ]
CC RESET -> CC DEBUGGER PIN 7 [RESET        ]
CC 3V    -> CC DEBUGGER PIN 2 [VOLTAGE SENSE]

Once connected make sure to power the FC by connecting 4V to the IN- and IN+ connection tabs. Press reset on the CC debugger, the CC debugger led should turn green. The following commands will download, build, and flash the latest OpenSky firmware for your tinyFISH FC:

git clone https://github.com/fishpepper/OpenSky.git
cd OpenSky
export TARGET=TINYFISH
make clean
make flash

In case you downloaded the pre-compiled hex file you can flash it using the TI cc debugger application or by executing

cc-tool -f -e -w opensky_tinyfish_full.hex

Both ways should give you a similar output as this:

Programmer: CC Debugger
Target: CC2510
Erasing flash...
Completed       
Writing flash (13 KB)...
Completed (1.45 s.)

Done! Your FC is flashed! Now disconnect the programmer and press the bind button (or short the pads on rev 0.1) while unplugging and reconnecting the power supply. Put your TX in bind mode. The red and green leds on the bottom of the fc should do some blinking and stop with a regular pattern. Power-cycle the FC again and switch your fc into normal mode, you should now see a steady pulsing green light (or red if you accidently swapped the leds on assembly 😉 ).

 

19 thoughts on “tinyFISH FC – initial setup & flashing tutorial II/II

  1. 24367dfa

    Hi Simon,

    i managed to successfully flash the cc2510 using a raspberryPi and jimmyw’s fork of CCLib [1]. The problem is, that the LEDs of the receiver part of the FC don’t turn on and binding with my transmitter does not work either. The main MCU works fine and is currently flashed with betaflight. Do you have an idea what the problem could be or how i would go about verifying that the cc2510 is working correctly?

    Regards,
    David

    [1] https://github.com/jimmyw/CC2510Lib

    Reply
    1. fishpepper Post author

      Did the flashing/verify suceed? Check the crystal and the capacitors (maybe you swapped them with the wrong value?). Could be a problem that the crystal is not starting up -> the code will not run. If i remember correctly the cc2510 uses an internal osc for flashing.

      Reply
  2. Sam

    Trying to flash the CC2510 on Linux through an arduino (nano).

    Wired up according to this:
    https://github.com/fishpepper/CC2510Lib

    When I run anything it detects the arduino, and the lights on the CC2510 go off momentarily, but it returns this:
    ERROR: ord() expected a charecter, but string length 0 found

    Any ideas?
    Cheers,
    Sam

    Reply
    1. fishpepper Post author

      No, both are only compatible to Frsky D8 mode.

      Reply
  3. He Zhongrui

    Hi Simon,
    I have found a new problem,the fc board is easy to restart.

    Reply
    1. fishpepper Post author

      You mean it resets in flight? This should not be the case. Together with some friends we have finished and flown six different pepperF1SH without any problems. You can actually fly until the Lipo is dangerously deep discharged without noticing…
      Did you use the correct voltage regulator?

      Reply
  4. He Zhongrui

    Hi Simon,
    I want to install firmware upgrades for the RX from within betaflight,what shout I do?I have short the rx boot pads,but I don’t know what to do next.

    Reply
    1. fishpepper Post author

      Did you do the initial flashing with a cc debugger? You need to do that first to install the bootloader. Once Opensky was initially flashed you can use the bootloader to update.

      Reply
      1. He Zhongrui

        yes,I have done the initial flashing with a cc debugger first,now I want to install firmware upgrades for the RX from within betaflight,but I don’t know what to do ?In betaflight I don’t find a interface to load
        upgrades.hex file.Could you mindly to write a document to introduce how to upgrade?

        Reply
  5. He Zhongrui

    Hi!I have compiled 3 files.What is the use of the opensky_tinyfish_update.hex and bootloader.hex?

    Reply
    1. fishpepper Post author

      1) opensky_tinyfish_full.hex = bootloader + opensky_tinyfish_update.hex
      2) opensky_tinyfish_update.hex = only opensky fw

      You will flash #1 when you do the initial flashing with the cc debugger. Aftzer that you can use betaflight to update the opensky fw using the bootloader. When you do this you will need to flash opensky_tinyfish_update.hex which does not include the bootloader. The bootloader can not overwrite itself during update 😉

      Reply
  6. Sevim Halibryam

    Hi Simon,
    it will be very helpful if you have the time and explain to us how to flash the cc2510 using a regular arduino because not all of us have cc debugers 🙁 and also on rev0.1 board there is a boot pads also next to bind ones , what are they for ?
    thanks
    sevo

    Reply
    1. fishpepper Post author

      I might do this in the future.
      When you short the rx boot pads on v0.1 (or press the button on 0.2) during power up, OpenSky will enter a special bootloader mode. This way you can install firmware upgrades for the RX from within betaflight (!) I will write a tutorial on that soon.
      However thihs does not help you with the initial flashing, the bootloader is flashed together with your initial Opensky flashing.

      Reply
      1. PHM

        Hi Simon,
        I download the latest release hex file from the release download page (download opensky_tinyfish_full.hex)
        flash the tinyFISH FC rev 0.2 receiver firmware. Unable BIND.can You publish a REV0.2 receiver firmware?

        thanks

        PHM

        Reply
        1. fishpepper Post author

          Try to bind by shorting CC_CLOCK to GND. Does this work? The hex file should support both options.

          Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

*