Flashing Teensy LC bootloader onto Flysky i6?

Status
Not open for further replies.

benbojangles

New member
Hello, first post, bit random.

Please could Paul Stoffregen (or someone super knowledgeable) tell me how I could install the teensy LC (M0+) bootloader onto a device I have.
I have a Flysky i6 RC radio transmitter which a bunch of us are reverse engineering the .hex code for. Even though we have some really good results happening (https://github.com/benb0jangles/FlySky-i6-Mod-) it is quite a tough job to work with .hex files.
We are wondering if it is possible to flash the teensy bootloader to the MCU (M0+), this would then allow us to write code using Arduino IDE (C++) for the i6 from scratch. How would we do this? Is teensy bootloader compatible? There is more information on the i6 here: http://dalybulge.blogspot.co.uk/2015/02/ghetto-controller-idea.html?view=classic
And info on the M0+ MCU here: http://www.mouser.co.uk/ProductDeta...tor/MKL16Z64VLH4/?qs=GRnjYRM7H5YElcKsBFo1oA==

On the i6 we have SWD & UART available, I am guessing we would flash using SWD, but please could you tell us the magic procedure? And potential problems?

Thanks for reading and best wishes. My first post :)
 
Just to be clear, the bootloader does not go onto the chip you're programming. It's a separate chip which you wire up to the MKL26.

It absolutely will not work with a MKL16 chip, because that chip lacks USB.

However, you might be able to run the HEX file for the MKL16 on the MKL26 of Teensy LC. Maybe. If that works, maybe you could (greatly) hack the hardware to completely remove the MKL16 chip and put a Teensy LC into its place. That would give you an ugly-wires-everywhere but easily reprogrammable system to try your firmware changes.
 
Status
Not open for further replies.
Back
Top