inav icon indicating copy to clipboard operation
inav copied to clipboard

Building the new HAKRCH743 target, OSD cannot function properly

Open HAKRC8899 opened this issue 1 month ago • 10 comments

Current Behavior

I am currently working on building an INAV target for a HAKRC H743 flight controller. This target exists in Betaflight. However, after compiling and flashing the firmware, the OSD does not work properly, no OSD information is displayed on the screen.

Desired Behavior

  1. Get in touch with the development team for assistance.
  2. Add a new HAKRCH743 target.

Suggested Solution

We can provide samples and schematics to the development team for testing and verification

Who does this impact? Who is this for?

All users, drone users, beginners, advanced users.

Additional context

HAKRC8899 avatar Nov 27 '25 01:11 HAKRC8899

Does the video feed pass through properly? It is the standard MAX7456 or are you trying to do something creative?

OSD feature definitely turned on in the firmware?

sensei-hacker avatar Nov 27 '25 03:11 sensei-hacker

Does the video feed pass through properly?视频信号传输正常吗? It is the standard MAX7456 or are you trying to do something creative?这是标准的 MAX7456,还是你想做一些创新?

OSD feature definitely turned on in the firmware?固件中是否已启用 OSD 功能?

  1. The video input signal is normal, but the OSD cannot display the flight control data.
Image Image
  1. Standard MAX7456.
  2. The OSD feature has been enabled in the firmware. Image
Image This target already exists in Betaflight, and all function tests are normal.

HAKRC8899 avatar Nov 27 '25 04:11 HAKRC8899

Okay. Anything unusual about your SPI configuration? Maybe using unusual pins?

sensei-hacker avatar Nov 27 '25 04:11 sensei-hacker

Okay. Anything unusual about your SPI configuration? Maybe using unusual pins?

/*** SPI bus ***/ #define USE_SPI #define USE_SPI_DEVICE_1 #define SPI1_SCK_PIN PA5 #define SPI1_MISO_PIN PA6 #define SPI1_MOSI_PIN PD7

#define USE_SPI_DEVICE_3 #define SPI3_SCK_PIN PB3 #define SPI3_MISO_PIN PB4 #define SPI3_MOSI_PIN PB5

#define USE_SPI_DEVICE_4 #define SPI4_SCK_PIN PE12 #define SPI4_MISO_PIN PE13 #define SPI4_MOSI_PIN PE14

/*** OSD ***/ #define USE_MAX7456 #define MAX7456_SPI_BUS BUS_SPI3 #define MAX7456_CS_PIN PE2

The SPI is configured as above, and the OSD is connected to SPI3.

HAKRC8899 avatar Nov 27 '25 04:11 HAKRC8899

@sensei-hacker I previously suspected that the MAX7456_CS_PIN configured pin could not use PE2. After consulting the STM32H743 manual, I connected the MAX7456_CS_PIN to PB12 and PA15, and set the MAX7456_CS_PIN to the corresponding pins for testing, but the OSD still could not work. However, it works normally in Betaflight.

HAKRC8899 avatar Nov 27 '25 04:11 HAKRC8899

Okay. I'll try to take a look in a couple days. To confirm - you are using an actual MAX7456? Or trying to emulate one?

If you're trying to use a digital signal to emulate the analog chip, there is a path to getting that working, but it's a hassle.

sensei-hacker avatar Nov 27 '25 05:11 sensei-hacker

Okay. I'll try to take a look in a couple days. To confirm - you are using an actual MAX7456? Or trying to emulate one?

If you're trying to use a digital signal to emulate the analog chip, there is a path to getting that working, but it's a hassle.

Thank you, I am using a actual MAX7456 with an analog video transmitter for display. I haven't tested it with a digital video transmitter yet. If needed, I can send you a sample flight controller board for testing.

HAKRC8899 avatar Nov 27 '25 05:11 HAKRC8899

Yeah we'll eventually need a test board anyway. Also if you want to link to the full code you're using I can run some analysis.

sensei-hacker avatar Nov 27 '25 16:11 sensei-hacker

Yeah we'll eventually need a test board anyway. Also if you want to link to the full code you're using I can run some analysis.

If possible, please give me a mailing address, and I will send you the flight control board sample for testing. Additionally, I will create a new pull request to provide you with the complete code.

HAKRC8899 avatar Nov 28 '25 00:11 HAKRC8899

Yeah we'll eventually need a test board anyway. Also if you want to link to the full code you're using I can run some analysis.

I sent you an email, please check your inbox.

HAKRC8899 avatar Nov 28 '25 00:11 HAKRC8899