bolderflight / sbus

Arduino and CMake library for communicating with SBUS receivers and servos.
MIT License
397 stars 141 forks source link

Problem on STM32F103C8T6 #9

Closed dirUAV closed 6 years ago

dirUAV commented 6 years ago

Hi I need to handler sbus signal by stm32f103c8t6 and Interrupt. I use SBUS_example.ino, but it wasn't successful! Arduino compiler shows : C:\Users\user\AppData\Local\Temp\arduino_build_27820/SBUS_example.ino.elf section .text' will not fit in regionrom'

flybrianfly commented 6 years ago

This library works with Teensy 3.x and LC devices, the STM32L4, and the Maple Mini. I would recommend working with the writer of the Arduino core that STM32F103C8T6 uses to see what's needed to integrate this library. The biggest task is usually getting the core library to support an inverted logic 100000 baud hardware serial. I'd be happy to merge pull requests supporting it once the core modifications are made.

dirUAV commented 6 years ago

It's true! actually i read sbus signal by arduino due and a simple converter (Transistor 2N3904 and two resistors). Firstly you said "Receiver signal should be connected to the microcontroller RX pin on the specified hardware serial port.". Is it possible? Secondly, how can i receive the sbus signal by STM32F103C8T6 and interrupt?