Hello guest, if you read this it means you are not registered. Click here to register in a few simple steps, you will enjoy all features of our Forum.
This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Flight controller programming
#1
I would like to program a newly purchased flight controller using stm32cube ide. The issue I have is that I cannot find a documentation for the flight controller, so I don't know which each MCU pin is connected to which component, If I want to make the LEDs blink, I need at least to know to which MCU pin it is connected to. My FC is an F4 1S 12A AIO brushless flight controller 2022
Reply
Login to remove this ad | Register Here
#2
Unless you’re doing something very non-standard, I think you’re over complicating this. We usually just use something like Betaflight Configurator to configure the firmware.

If you need the mcu pinout to do some sort of custom programming, you’ll need to look at the top of the mcu to determine if it’s an stm32F411 or an stm32F405. Datasheets and pinouts for both are widely available online.
Dangerous operations.

Disclaimer: I don’t know wtf I’m talking about.
I wish I could get the smell of burnt electronics out of my nose.
Reply
#3
(01-Jul-2023, 09:22 PM)Lemonyleprosy Wrote: Unless you’re doing something very non-standard, I think you’re over complicating this. We usually just use something like Betaflight Configurator to configure the firmware.

If you need the mcu pinout to do some sort of custom programming, you’ll need to look at the top of the mcu to determine if it’s an stm32F411 or an stm32F405. Datasheets and pinouts for both are widely available online.

Thank you very much. It is not the pinout that I am looking for, but the component connections to those pinouts. if there are people who developped betaflight configurator, then there must be a way, a documentation somewhere that says to which pinout is each electronic component connected to.
Reply
#4
It sounds like what your looking for is a wiring diagram for the flight controller.

We need to know its brand name and model. If you’re unsure, post clear, well lit, up close photos of the flight controller.

I’m still unsure of why you want to use stm32cube ide to program it. What is your end goal? What are you trying to do?
Dangerous operations.

Disclaimer: I don’t know wtf I’m talking about.
I wish I could get the smell of burnt electronics out of my nose.
Reply
#5
Thank you for the interest you have shown to this thread.
The FC : https://betafpv.com/products/f4-1s-12a-f...controller

My goal is to build an entire (different) drone from scratch, including the software. So I don't want to go through betaflight configurator. I want to do everything by myself (with exception to some libraries and drivers).

This FC has a usb connector, I have an ST-link v2 programmer but needs a SWD/jtag connector, which the FC doesn't have. 

So I wonder how are the FCs programmed ?
Reply
#6
Wiring diagram:
[Image: msEffrCl.jpg]

It has an STM32F411CEU6 mcu.

Datasheet:
https://www.st.com/resource/en/datasheet...f411ce.pdf

Pinout:
[Image: 2vOc5q6l.jpg]

You might find this video useful as well:
Dangerous operations.

Disclaimer: I don’t know wtf I’m talking about.
I wish I could get the smell of burnt electronics out of my nose.
Reply
#7
I think that’s about all the help I can offer? Feel free to ask more questions, I’ll do my best- but I am not a coder, and designing/coding your own firmware from scratch is definitely well beyond my abilities and knowledge.
Dangerous operations.

Disclaimer: I don’t know wtf I’m talking about.
I wish I could get the smell of burnt electronics out of my nose.
Reply
#8
(08-Jul-2023, 09:07 PM)Lemonyleprosy Wrote: I think that’s about all the help I can offer? Feel free to ask more questions, I’ll do my best- but I am not a coder, and designing/coding your own firmware from scratch is definitely well beyond my abilities and knowledge.

Thank you for your help. I will post this in the software section.
Reply
#9
(09-Jul-2023, 08:41 AM)maths soso Wrote: Thank you for your help. I will post this in the software section.

But this is hardware and will be a much lower level language than software. This is probably assembly language and you would need at least some ADA knowledge, I would assume.

Firmware programming and software programming are unrelated relations. They are similar, but very different.

Each board will be different, and you would need the trace diagram for each board to see where they go.

Or, do what most other reverse engineers do and grab your multimeter and start tracing it out yourself.
[-] The following 1 user Likes Pennywise's post:
  • Lemonyleprosy
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  Help No response flight controller with receiver Crazyart 1 246 09-Jan-2024, 12:53 AM
Last Post: Crazyart
  BetaFPV F4 FR 2S flight controller issues. itsmerandy 30 1,722 02-Nov-2023, 09:01 AM
Last Post: SnowLeopardFPV
  Radiolink Crossflight controller NHSA 7 933 07-Oct-2023, 06:44 PM
Last Post: SnowLeopardFPV
  Help JHEMCU GF16 F405 Flight Controller sdellava 4 1,741 25-Aug-2023, 08:57 AM
Last Post: PDK
  Help Flight Controller (FC) buzzing, humming high pitch noise sound qcay12 1 393 31-Jul-2023, 11:03 PM
Last Post: SnowLeopardFPV


Login to remove this ad | Register Here