Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CUST-CKFLIGHTF4 Custom Designed target #1326

Closed
wants to merge 9 commits into from

Conversation

ckflight
Copy link

I have my custom flight controller design where i have used for many years with my firmware as well as betaflight.

I was using STM32F4DISCOVERY firmware and CLI to program it. However after 4.5.0 update, i could not use STM32F4DISCOVERY. The cli configuration was not enough to set peripherals correctly.

I used other boards' config files and managed it to work. However i want my own config file now to be added to the betaflight targets if it is possible please.

The flight controller is tested many times and working. I can prove it as well.

The pin definitions are correct and DMA streams are selected accordingly.

Some Board Details:
MCU: STM32F405
Gyro&Acc: ICM20602
Barometer: MS5611
Mag: MLX90393 (it is not supported by betaflight i suppose so i did not add it to pin config)
On board Analog OSD: MAX7456
On board I2C external pin : I2C2
On board UART external pin: USART1 RX TX
On board UART external pin: UART4 RX TX
Selectable interverted rx receiver for sbus at UART6
2 User Leds
1 RGB (3.3v to 5v converted)
1 Buzzer with 4KHz pwm
SPI SDCard interface
1/10 scaled Lipo and current reading to ADC inputs

I am adding the board images as well.

20240521_155957
20240521_160129

@ckflight ckflight requested a review from a team as a code owner May 21, 2024 13:18
@nerdCopter
Copy link
Member

4.5 and beyond now uses config.h files.
documentation: https://betaflight.com/docs/development/manufacturer/creating-configuration
repository: https://github.com/betaflight/config

nerdCopter
nerdCopter previously approved these changes May 21, 2024
Copy link
Member

@haslinghuis haslinghuis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ERROR: File configs/default/CUST-CKFLIGHTF4.config has got invalid (DOS) line endings.

@nerdCopter
Copy link
Member

@ckflight , please see https://betaflight.com/docs/development/Git#recommended-git-global-environment for recommended global settings which will mitigate line-ending issues.

@ckflight
Copy link
Author

ckflight commented May 21, 2024

Hi, sorry for this mistake, i dont have experience on developing over github. I just created this file using sublime text and added to my github forked repository and the pulled it. What is the correct way of doing it. It is cross platform new line encoding issue i suppose.

@nerdCopter
Copy link
Member

such is perfectly fine, i use sublimetext myself. just set your git global environment as suggested. may have to save/commit the file again.

Copy link
Author

@ckflight ckflight left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I edited file with github desktop app and used clrf settings as below so i hope it should work now

[core]
autocrlf = input
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[user]
name = Cenk Keskin
email = cnkkskn001@gmail.com

@ckflight ckflight requested a review from haslinghuis May 21, 2024 17:30
@haslinghuis
Copy link
Member

Should revise the board to not share SPI but as I understand the board will not be public available.

set sdcard_spi_bus = 3
set max7456_spi_bus = 3

@ckflight
Copy link
Author

ckflight commented May 21, 2024

Should revise the board to not share SPI but as I understand the board will not be public available.

set sdcard_spi_bus = 3
set max7456_spi_bus = 3

It is already divided. SD Card uses spi 3 and OSD uses spi 2. I have corrected the mistake on the config file.
I made lots of open source projects for others to learn such as radar, linux board and blhelis esc which are available at my github page.

In the near future i want to sell flight controller since this hobby is not well developed in Türkiye and i want to contribute with hardwares to the community. For now, I just wanted to add the board to betaflight environment since 4.5.0 now requires it. I have H7 design as well if this one goes well, i want to add that desing as well

@ckflight ckflight requested a review from haslinghuis May 21, 2024 18:03
@nerdCopter nerdCopter changed the title Custom Desing Pull Request CUST-CKFLIGHTF4 Custom Designed target May 21, 2024
@haslinghuis
Copy link
Member

Lols, guess we need to head on to config repo instead. It was planned to lockout this repo for further development.
Please head over to https://github.com/betaflight/config

image

@ckflight
Copy link
Author

Lols, guess we need to head on to config repo instead. It was planned to lockout this repo for further development. Please head over to https://github.com/betaflight/config

image

Thank you so much i just moved to that part now. I will create config.h file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants