Search found 22 matches

by mkschreder
Mon Mar 09, 2015 6:37 pm
Forum: AR-T6
Topic: FlySky FS-T6 Schematic and Firmware Development
Replies: 51
Views: 54474

Re: FlySky FS-T6 Schematic and Firmware Development

Pretty sure it is an 8. Looks like a snowman. B in the end is more flat on one side. Perhaps they just put 128k into them just to avoid reprogramming the production line for two different chips or something - maybe cheaper that way. I'm rather surprised as well, I must say. But I haven't looked deep...
by mkschreder
Mon Mar 09, 2015 6:24 pm
Forum: Software
Topic: Mavlink in software?
Replies: 1
Views: 1253

Re: Mavlink in software?

Having mavlink support in the tx allows for several nice things, first if you have a serial downlink from your model it allows you to read telemetry data and display it on your tx but if you also have a serial uplink, you can even use mavlink to send rc channels to your model. Mavlink has support fo...
by mkschreder
Mon Mar 09, 2015 5:49 pm
Forum: AR-T6
Topic: FlySky FS-T6 Schematic and Firmware Development
Replies: 51
Views: 54474

Re: FlySky FS-T6 Schematic and Firmware Development

Is it 128KiB flash CPU or not? Unfortunately it does not appear so. The CPU on the board is STM32F100R8T6B. This decodes as follows (according to http://www.st.com/st-web-ui/static/active/en/resource/technical/document/datasheet/CD00251732.pdf ) STM32F100R8T6B: STM32 - 32 bit arm micro-controller F...
by mkschreder
Mon Mar 09, 2015 5:12 pm
Forum: other
Topic: My custom firmware for the FS-T6
Replies: 0
Views: 4111

My custom firmware for the FS-T6

Here is a project I have been working on for the cheap chinese FS-T6 radios that one can find on ebay for $50. Current features: * 6 profile configurations accessible directly at the top of the main screen. * 6 output PPM channels that can be configured to use any key/joystick as input * Multiple tr...
by mkschreder
Mon Mar 09, 2015 4:56 pm
Forum: AR-T6
Topic: FlySky FS-T6 Schematic and Firmware Development
Replies: 51
Views: 54474

Re: FlySky FS-T6 Schematic and Firmware Development

I have been experimenting with the hardware and put together this: :) http://martinschroder.se/wp-content/uploads/2015/03/kt6_main_screen.jpg http://martinschroder.se/wp-content/uploads/2015/03/kt6_mix_settings.jpg http://martinschroder.se/wp-content/uploads/2015/03/kt6_channel_settings.jpg http://m...
by mkschreder
Mon Feb 16, 2015 2:09 pm
Forum: AR-T6
Topic: My custom firmware interface
Replies: 20
Views: 12251

Re: My custom firmware interface

How come you are not using ST peripheral lib? Is there an easy way to rip out gui code and make it use a set of specific methods for drawing everything? I'm thinking if gui code can be completely self contained and only focus on the gui it would be trivial to then render it using libk lcd interface ...
by mkschreder
Mon Feb 16, 2015 2:46 am
Forum: AR-T6
Topic: My custom firmware interface
Replies: 20
Views: 12251

Re: My custom firmware interface

Mike, you mentioned stm32 code above. In the repo I saw only avr code. Where was that stm32 code?
by mkschreder
Sun Feb 15, 2015 11:27 am
Forum: AR-T6
Topic: My custom firmware interface
Replies: 20
Views: 12251

Re: My custom firmware interface

Mike, you worry about size yet you still are not garbage collecting unused code and data? :) Size before: text data bss dec hex filename 57232 32 3354 60618 ecca er9x.elf Added: -ffunction-sections -fdata-sections -Wl,--gc-sections Size after: text data bss dec hex filename 56670 32 3353 60055 ea97 ...
by mkschreder
Sun Feb 15, 2015 2:02 am
Forum: AR-T6
Topic: My custom firmware interface
Replies: 20
Views: 12251

Re: My custom firmware interface

That's for AVR. For STM32 there is void gpio_configure(gpio_pin_t p, uint16_t flags). Usage: gpio_configure(GPIO_PA1, GP_INPUT | GP_ANALOG | GP_PULLUP); Avr code is very much macro based for maximum speed. However some macros that are getting bigger will be converted to static inline / normal method...
by mkschreder
Sat Feb 14, 2015 11:04 pm
Forum: AR-T6
Topic: My custom firmware interface
Replies: 20
Views: 12251

Re: My custom firmware interface

Got PPM working today for FS-T6 TX. Now all peripherals on FS-T6 are supported! Demo: https://github.com/mkschreder/martink/blob/master/examples/fst6-demo/main.cpp * KS0713 display * UART on the back * PPM for the radio * Sticks, buttons and rotary encoder http://martinschroder.se/wp-content/uploads...
by mkschreder
Sat Feb 14, 2015 4:45 pm
Forum: AR-T6
Topic: My custom firmware interface
Replies: 20
Views: 12251

Re: My custom firmware interface

by mkschreder
Sat Feb 14, 2015 4:29 pm
Forum: AR-T6
Topic: My custom firmware interface
Replies: 20
Views: 12251

Re: My custom firmware interface

BTW, Is your code capable to write fst6's EEPROM in quantities smaller than the page? I have problem with this. Yes. Example: uint8_t buf[10]; at24_read(&_board.eeprom, 0, buf, 10); for(int c = 0; c < 10; c++) printf("%c ", buf[c]); printf("\n"); at24_write(&_board.eeprom, 0, (const uint8_t*)"00000...
by mkschreder
Sat Feb 14, 2015 4:09 pm
Forum: AR-T6
Topic: My custom firmware interface
Replies: 20
Views: 12251

Re: My custom firmware interface

I was mistaken thinking libk is specifically & only for transmitters. No, not at all specifically for transmitters. But board files are specific for each board layout and on-board hardware. Board files take care of initialising all on-board devices connected to the soc interfaces. One could think o...
by mkschreder
Fri Feb 13, 2015 12:04 pm
Forum: AR-T6
Topic: My custom firmware interface
Replies: 20
Views: 12251

Re: My custom firmware interface

why make this call "board specific"? I'd think this would be a common service for transmitter boards? although, granted number of channels varies (this could be handled by libk configuration though) Statically linked call is specific to the board because it uses board specific devices and GPIO pins...
by mkschreder
Thu Feb 12, 2015 11:28 am
Forum: AR-T6
Topic: My custom firmware interface
Replies: 20
Views: 12251

Re: My custom firmware interface

WHEN The best point is when one wants to start using some of the existing device drivers. There are probably many small issues that will get fixed along the way as support for specific boards is added. Yet it took me only a couple of days to add support for fs-t6 transmitter board. I did not need to...
by mkschreder
Thu Feb 12, 2015 11:10 am
Forum: AR-T6
Topic: My custom firmware interface
Replies: 20
Views: 12251

Re: My custom firmware interface

Abstracting graphics display (different size, colors?). Menu system? PPM? It feels some abstraction layers are strongly part of application type (such as "transmitter fw") and hence perhaps belong to the application, should it choose to be portable. No these don't need abstractions. The scope of li...
by mkschreder
Wed Feb 11, 2015 11:05 am
Forum: AR-T6
Topic: FlySky FS-T6 Schematic and Firmware Development
Replies: 51
Views: 54474

Re: FlySky FS-T6 Schematic and Firmware Development

Already tried flashing original firmware. Works like a charm. When it comes to EEPROM support, libk is build such that the board "driver" is the top level interface. Typically, as I have done in my flight controller project, I would have a method in the board driver called "write_settings" and "read...
by mkschreder
Wed Feb 11, 2015 6:46 am
Forum: Software
Topic: LibK: firmware programming interface library
Replies: 0
Views: 982

LibK: firmware programming interface library

I'm working on a project that makes the same device drivers work on many different boards. It's currently called LibK (Lib-Kernel). I have been using it to develop my quadcopter flight controller which runs on both stm32 based openpilot boards as well as on multiwii boards. And today I have gotten l...
by mkschreder
Wed Feb 11, 2015 6:19 am
Forum: AR-T6
Topic: My custom firmware interface
Replies: 20
Views: 12251

My custom firmware interface

I have added board driver for fs-t6 to my libk project. Here is a video of the demo included in libk: [BBvideo 425,350]https://www.youtube.com/watch?v=JD_hfML0R8c[/BBvideo] Souce code: https://github.com/mkschreder/martink/blob/master/examples/fst6-demo/main.cpp To build the example using with libk:...
by mkschreder
Sun Feb 08, 2015 10:35 pm
Forum: Other Radios
Topic: FlySky Fs-T6
Replies: 11
Views: 9044

Re: FlySky Fs-T6

It also has 128kb flash, not 64 (as of board version 2.3).
by mkschreder
Sun Feb 08, 2015 10:34 pm
Forum: Other Radios
Topic: FlySky Fs-T6
Replies: 11
Views: 9044

Re: FlySky Fs-T6

Connect left side of c27 with left side of r77. That will pull BOOT0 pin high. Then power on the radio. It will not turn the display on, but it will be in firmware upgrade mode. Then you can flash using stm32flash and a serial cable connected to the serial port on the back (TX, RX and GND pins).
by mkschreder
Sun Feb 08, 2015 9:27 pm
Forum: AR-T6
Topic: FlySky FS-T6 Schematic and Firmware Development
Replies: 51
Views: 54474

Re: FlySky FS-T6 Schematic and Firmware Development

I was able to put the stm32f100 into boot mode by shorting pin 60 (BOOT0) with VDD (+). This allows low level flashing using the built in ROM bootloader. You can then use stm32flash to flash the firmware over the main serial interface on the back. The BOOT0 pin has to be pulled high before turning o...

Go to advanced search