inav icon indicating copy to clipboard operation
inav copied to clipboard

New Target for JHEMCU GHF405 PRO AIO

Open scottrea123 opened this issue 3 years ago • 8 comments

Hope that support for this device can be added. Currently supported by Betaflight:

https://github.com/betaflight/unified-targets/blob/master/configs/default/JHEF-JHEF405PRO.config

scottrea123 avatar Jan 14 '22 19:01 scottrea123

JHEF405PRO.zip Ok, figured this one out - src is attached. Tested ok in the configurator.

scottrea123 avatar Jan 15 '22 00:01 scottrea123

@scottrea123 Where did you get that from? why is the black box deactivated? Because the wrong pins are specified for SPI2? Look here: en.DM00037051.pdf

Do you have the target and is it working for you now?

Odin263 avatar Jan 15 '22 11:01 Odin263

I modified an existing target with info from the beta flight code. I have the board and can confirm it does work for the mimimim that I have setup. Only currently have the receiver connected but the gyro baro and radio all work.

scottrea123 avatar Jan 15 '22 16:01 scottrea123

based on the betaflight config, i think BB flash and OSD is on SPI3 I changed the "CS PINS" accordingly. Does this look better?

#define USE_SPI_DEVICE_3 #define SPI3_SCK_PIN PC10 #define SPI3_MISO_PIN PC11 #define SPI3_MOSI_PIN PC12

#define USE_MAX7456 #define MAX7456_SPI_BUS BUS_SPI3 #define MAX7456_CS_PIN PB14

#define ENABLE_BLACKBOX_LOGGING_ON_SPIFLASH_BY_DEFAULT #define USE_FLASHFS #define USE_FLASH_M25P16 #define M25P16_CS_PIN PB3 #define M25P16_SPI_BUS BUS_SPI3

scottrea123 avatar Jan 15 '22 17:01 scottrea123

@scottrea123 If everything works, then it's good. I just wanted to help and create a target but couldn't test it. Now that you have one, that's settled.

Odin263 avatar Jan 17 '22 09:01 Odin263

Hi - having some trouble with flight, wondering if the target.c is set up correctly? currently have:

const timerHardware_t timerHardware[] = {
DEF_TIM(TIM3, CH3, PB0, TIM_USE_MC_MOTOR, 0, 0), DEF_TIM(TIM3, CH4, PB1, TIM_USE_MC_MOTOR, 0, 0), DEF_TIM(TIM5, CH4, PA3, TIM_USE_MC_MOTOR, 0, 0), DEF_TIM(TIM5, CH3, PA2, TIM_USE_MC_MOTOR, 0, 0) };

Not sure about the last two parameters, any advice?

scottrea123 avatar Jan 20 '22 20:01 scottrea123

@scottrea123 and @Odin263 I also want to flash INAV on it to fly...any updates on this? Any luck with a firmware that seems to work?

armsp avatar May 15 '22 18:05 armsp

Any progress on JHEMCU GHF405 PRO target to be added to iNav?

Noramas avatar Jul 15 '22 07:07 Noramas

Any progress?

VendettaPrime avatar Dec 08 '22 19:12 VendettaPrime

Any news?

RedFraction avatar Dec 12 '22 21:12 RedFraction

@scottrea123 I am working on this Target too recently, Even though JHEMCU offer a inav 5.0.0 hex here, But I found this aio does not have scl/sda pads and inav does not have resource remapping ,So I want to change the scl/sda definitions to make it work。

amdgigabyte avatar Jan 20 '23 11:01 amdgigabyte

@amdgigabyte do you have the binary for download? the file you linked does not download

ltwin8 avatar Jan 21 '23 20:01 ltwin8

take a look at #8726

ltwin8 avatar Jan 22 '23 03:01 ltwin8

@amdgigabyte do you have the binary for download? the file you linked does not download

I am still working on it,I wanna contact the factory tech support for help, caus my binary still did not work properly.

amdgigabyte avatar Jan 26 '23 15:01 amdgigabyte

@amdgigabyte please take a look at #8726

ltwin8 avatar Jan 26 '23 15:01 ltwin8