inav icon indicating copy to clipboard operation
inav copied to clipboard

Custom firmware v.2.3.0 for MATEKSYS

Open romko1 opened this issue 6 years ago • 8 comments

Hello, Santa brought me the Christmas TBS Micro RX and Nano TX for both of my drones. I have an older version FW 2.2.1 for MATEKF405 and MATEKF722mini I have modified FW for TARGET - MATEK405: target.c and target.h and for TARGET - MATEKF722: target.h. However, I wanted to create a new custom FW v.2.3.0, but when Linking MATEKF405 crashes the compilation. Please someone to compile my own FW for the MATEKF405 and MATEKF722mini board. Modification for MatekF722mini target.h: (mod line 182) #define AIRSPEED_ADC_CHANNEL ADC_CHN_4

// *************** PINIO *************************** #define USE_PINIO #define USE_PINIOBOX #define PINIO1_PIN PC8 // VTX power switcher #define PINIO2_PIN PB3 // Camera on/off

// *************** LEDSTRIP ************************ #define USE_LED_STRIP


Modification for MatekF405 target.c: (mod line 36) #endif DEF_TIM(TIM8, CH2, PC7, TIM_USE_MC_MOTOR | TIM_USE_FW_SERVO, 0, 1), // S2 UP(2,1) DEF_TIM(TIM8, CH3, PC8, TIM_USE_MC_MOTOR | TIM_USE_FW_SERVO, 0, 1), // S3 UP(2,1) DEF_TIM(TIM8, CH4, PC9, TIM_USE_MC_MOTOR | TIM_USE_FW_SERVO, 0, 0), // S4 UP(2,1)

DEF_TIM(TIM2, CH1, PA15, TIM_USE_PWM                                           , 0, 0), // S5  UP(1,7) - smartaudio VTX

#ifdef MATEKF405_SERVOS6

Modification for MatekF405 target.h (mod line 122) #define USE_SOFTSERIAL2 #define SOFTSERIAL_2_TX_PIN PA15 //smartaudio VTX - S5 #define SOFTSERIAL_2_RX_PIN NONE //free

Thank you. R

romko1 avatar Dec 24 '19 23:12 romko1

Issue Label Bot is not confident enough to auto-label this issue. See dashboard for more details.

issue-label-bot[bot] avatar Dec 24 '19 23:12 issue-label-bot[bot]

Hello,

I followed this procedure: https://github.com/iNavFlight/inav/blob/master/docs/development/Generic_Linux_development.md and I still have a problem with Linking MATEKF405 :(

Please help. Thank you. R

romko1 avatar Dec 27 '19 09:12 romko1

If you actually posted the compiler and linker output then maybe someone can help you. Just saying it doesn't work is pointless.

stronnag avatar Dec 27 '19 13:12 stronnag

Sorry, here are 2 print-screens: pb_compilation . . . . pb_compilation_2

romko1 avatar Dec 27 '19 21:12 romko1

Don't use a native Windows environment, it can't cope with a 32bit cross compiler in a 64bit run time. Use Linux, WSL or a Linux VM.

stronnag avatar Dec 27 '19 21:12 stronnag

@stronnag thank you for the guidance, but I do not currently have Linux available and W10. Can you generate the hex files, please? Thank you.

romko1 avatar Dec 29 '19 20:12 romko1

Everyone with W10 can have Linux available. Just follow this easy to follow instructions. https://github.com/iNavFlight/inav/blob/master/docs/development/Building%20in%20Windows%2010%20with%20Linux%20Subsystem.md

datamann avatar Dec 30 '19 10:12 datamann

@datamann thank you, according to this procedure I created new firmware 2.3.0, but I had two warnings there. is it something important or is it OK? Thank you for your response. compilation_custom_FW

romko1 avatar Jan 01 '20 11:01 romko1