rizacelik / STM32F405RGT6_INAV_Firmware

New INAV Firmware Flight Controller
GNU General Public License v3.0
18 stars 6 forks source link

connecting to mission planner #3

Open madamidopingo opened 9 months ago

madamidopingo commented 9 months ago

hi sir. first thank you for your effort . i have the stm32f405rgt6 dev board (not WE ACT STUDIO ) I have flashed arduplane firmware to it using inav and connected the mpu9250 with spi2 in the dev board when I open mission planner the port appears to me (ardupilot port 9 ) but I cannot connect to it it says no packet received. tried the same connection and flash inav 7.0 to the same board it worked .

rizacelik commented 9 months ago

Which board did you use?

madamidopingo commented 9 months ago

stm32f405rgt6 devEBox S3b9a7b7a85d0415b8ad9e5f3d51b95a1e S6a7c96cf144e4ff4ac147601af93848cX

madamidopingo commented 9 months ago

Hi sir. first thank you for your effort. I have the stm32f405rgt6 dev board (not WE ACT STUDIO ) I have flashed arduplane firmware to it using inav and connected the mpu9250 with spi2 in the dev board when I open mission planner the port appears to me (ardupilot port 9 ) but I cannot connect to it it says no packet received. tried the same connection and flash inav 7.0 to the same board it worked.

this explanation of what i mean Screenshot 2024-02-08 145931 Screenshot 2024-02-08 145949

rizacelik commented 9 months ago

Is there a stm32f405rgt6 devEBox board pinout diagram? I could not find. If you have a schematic and pinouts, write me and I will help you.

madamidopingo commented 9 months ago

thank you for your reply . yes i have schematic for this board STM32F405RGT6_Feather_Schemaic.pdf

rizacelik commented 9 months ago

Since the pins of this card and the card we use are used for different purposes, the firmware will not work. Your card uses PB3, PB4, PB5 pins for FLASH. That's why conflict occurs. You cannot use it. This will not work in INAV. PB3, PB4, PB5 are motor pins.

image

madamidopingo commented 9 months ago

thanks sir for your help ♥️

rizacelik commented 9 months ago

I will prepare firmware for your card. It may take a day or two.

madamidopingo commented 9 months ago

thank you sir very much for helping me , wish you all the best ♥️

synersignart commented 9 months ago

can you also have the Target available for both so I can check as well , thanks Riza oh I may have some info on the H7 hit me up as well

synersignart commented 9 months ago

BY the way the SD card doesnt seem to work on the set F405 for some reason

madamidopingo commented 9 months ago

hi sir , i have a question . PC1 pin in stm32f405rgt6 in the datasheet it's functions are : ETH_MDC/ EVENTOUT / ADC123_IN11 so how it can be used as chip select pin for SPI 2

rizacelik commented 9 months ago

I haven't been able to complete the firmware yet due to workload. I will definitely prepare it tomorrow. I'm sorry for keeping you waiting.

rizacelik commented 9 months ago

Today I found time and redefined the pins for you. The compilation process is finished. I couldn't test it because I don't have a board. If you test it and let me know the result, I can edit it again.

For the Board, you must connect an mpu9250 or mpu6500 and add a BAROMETER. BAROMETER is mandatory. All Compass sensors are supported.

For Compass and Barometer you need to use I2C1. Pin numbers are given below. Since there is AK8963 compass inside the mpu9250, you do not need to connect additional compass.

----- Receiver pins ----

PA3 RC In

-------- mpu6500 or mpu9250 sensor pins ------- PB13 SPI2 SCK PB14 SPI2 MISO PB15 SPI2 MOSI PB12 CS

------ Compass or Barometer pins ----------

BARO BMP180 (BMP085) BARO MS56XX BARO BMP280 BARO BMP388

external All compass types.

PB8 I2C1 SCL PB9 I2C1 SDA

--- Motor pins ----

PC6 Motor 1 PC7 Motor 2 PC8 Motor 3 PC9 Motor 4

DeveBoxSTM32F405.zip

rizacelik commented 9 months ago

sinersignart I will compile for H743. I ordered the board.

madamidopingo commented 9 months ago

first thank you sir very much , i will flash it now .

madamidopingo commented 9 months ago

I put the board in dfu mode and flashed the firmware using Inav configurator 7 until a successful message appeared then I put the board in flash mode and connected mpu9250 to the mapping that you provided sir, but the same problem appeared.

rizacelik commented 9 months ago

Which sensors did you use?

rizacelik commented 9 months ago

MPU650 or MPU9250 Sensor pins connection.

image

madamidopingo commented 9 months ago

thank you sir very much. I am very sorry. I checked the connection but no gain, I don't know what is the problem.

rizacelik commented 9 months ago

Since I don't have the board, it is difficult to edit and test the software. Let's wait for others to try it too. I hope we can find a solution.

mursa1en commented 9 months ago

IMG_20240216_175855.jpg

I'm using the same board and both firmware works fine. The problem I'm facing on mission planner is that i need to reinstall it every time or the doesn't connect.

rizacelik commented 9 months ago

I don't have this board. I compiled it for you, but I was told it didn't work. Since there is no board, I have to do the compilation by default. There's nothing I can do about this.

madamidopingo commented 9 months ago

IMG_20240216_175855.jpg

I'm using the same board and both firmware works fine. The problem I'm facing on mission planner is that i need to reinstall it every time or the doesn't connect.

hi mursa1en i think you are flashing firmware using usb to ttl because when you are on bootloader mode you can flash the firmware but you need to convert to flash mode before you remove the device cause the firmware will be erased

madamidopingo commented 9 months ago

I am flashing the firmware in dfu by using inav it flashed successfully but it doesn't connect to mission planner

rizacelik commented 8 months ago

I recompiled it. Can you install it on the board and test it?

DeveBoxSTM32F405.zip

madamidopingo commented 8 months ago

I recompiled it. Can you install it on the board and test it?

DeveBoxSTM32F405.zip

thank you sir very much ,I installed it but the same problem appear .I appreciate your help , wish you all the best , can you please share hwdef for this board , so I can try with it .

rizacelik commented 8 months ago

hwdef for this board hwdef.zip

madamidopingo commented 8 months ago

hwdef for this board hwdef.zip

thank you sir very much.

mursa1en commented 8 months ago

Since the pins of this card and the card we use are used for different purposes, the firmware will not work. Your card uses PB3, PB4, PB5 pins for FLASH. That's why conflict occurs. You cannot use it. This will not work in INAV. PB3, PB4, PB5 are motor pins.

image

Will it work if I remove this component from the board? Sorry for this dumb question sir. I want to make this but the board you've used is not available here

rizacelik commented 8 months ago

https://www.aliexpress.com/item/1005006051651136.html STM32F405RGT6 board is very cheap. It is 50% cheaper than the card you have. I think you should get this. I can't compile software because I don't have your board.

NOTE: Since FLASH is embedded, you cannot remove it. Board still doesn't work. Don't try. The board will be damaged.

madamidopingo commented 8 months ago

https://www.aliexpress.com/item/1005006051651136.html STM32F405RGT6 board is very cheap. It is 50% cheaper than the card you have. I think you should get this. I can't compile software because I don't have your board.

NOTE: Since FLASH is embedded, you cannot remove it. Board still doesn't work. Don't try. The board will be damaged.

thanks sir very much . i have already buy it .

mursa1en commented 8 months ago

https://www.aliexpress.com/item/1005006051651136.html STM32F405RGT6 board is very cheap. It is 50% cheaper than the card you have. I think you should get this. I can't compile software because I don't have your board.

NOTE: Since FLASH is embedded, you cannot remove it. Board still doesn't work. Don't try. The board will be damaged.

Thanks a lot for your response. I don't have access to AliExpress and that board is not available in the local market.

Also I should have listened to you. Now the board only draws tons of current and heats up.

I will be making the f411 now.

skimans commented 7 months ago

https://www.aliexpress.com/item/1005006051651136.html STM32F405RGT6 board is very cheap. It is 50% cheaper than the card you have. I think you should get this. I can't compile software because I don't have your board. NOTE: Since FLASH is embedded, you cannot remove it. Board still doesn't work. Don't try. The board will be damaged.

Thanks a lot for your response. I don't have access to AliExpress and that board is not available in the local market.

Also I should have listened to you. Now the board only draws tons of current and heats up.

I will be making the f411 now.

hi @mursa1en F411 board work ?? i think have problem of low memory..

skimans commented 7 months ago

@madamidopingo do you have solved ? your board connect now to Mission Planner ?

mursa1en commented 7 months ago

https://www.aliexpress.com/item/1005006051651136.html STM32F405RGT6 board is very cheap. It is 50% cheaper than the card you have. I think you should get this. I can't compile software because I don't have your board. NOTE: Since FLASH is embedded, you cannot remove it. Board still doesn't work. Don't try. The board will be damaged.

Thanks a lot for your response. I don't have access to AliExpress and that board is not available in the local market.

Also I should have listened to you. Now the board only draws tons of current and heats up.

I will be making the f411 now.

hi @mursa1en F411 board work ?? i think have problem of low memory..

I'm using Mr Celik's firmware for the f411 and my quad is flying without any issues although it needs some tuning.

skimans commented 7 months ago

https://www.aliexpress.com/item/1005006051651136.html STM32F405RGT6 board is very cheap. It is 50% cheaper than the card you have. I think you should get this. I can't compile software because I don't have your board. NOTE: Since FLASH is embedded, you cannot remove it. Board still doesn't work. Don't try. The board will be damaged.

Thanks a lot for your response. I don't have access to AliExpress and that board is not available in the local market. Also I should have listened to you. Now the board only draws tons of current and heats up. I will be making the f411 now.

hi @mursa1en F411 board work ?? i think have problem of low memory..

I'm using Mr Celik's firmware for the f411 and my quad is flying without any issues although it needs some tuning.

@mursa1en Excelent news!! these vening i try to install firmware on my STM32F411NCEU board.

then do you have used this firmware...right ??

https://github.com/rizacelik/STM32F411CEU6_INAV_Firmware

thanks for info

mursa1en commented 7 months ago

https://www.aliexpress.com/item/1005006051651136.html STM32F405RGT6 board is very cheap. It is 50% cheaper than the card you have. I think you should get this. I can't compile software because I don't have your board. NOTE: Since FLASH is embedded, you cannot remove it. Board still doesn't work. Don't try. The board will be damaged.

Thanks a lot for your response. I don't have access to AliExpress and that board is not available in the local market. Also I should have listened to you. Now the board only draws tons of current and heats up. I will be making the f411 now.

hi @mursa1en F411 board work ?? i think have problem of low memory..

I'm using Mr Celik's firmware for the f411 and my quad is flying without any issues although it needs some tuning.

@mursa1en Excelent news!! these vening i try to install firmware on my STM32F411NCEU board.

then do you have used this firmware...right ??

https://github.com/rizacelik/STM32F411CEU6_INAV_Firmware

thanks for info

Yes. I used the inav 7.0https://github.com/rizacelik/STM32F405RGT6_INAV_Firmware/assets/108753302/ef250e0a-54c5-44a1-8050-d1a38ced7c34

skimans commented 7 months ago

https://www.aliexpress.com/item/1005006051651136.html STM32F405RGT6 board is very cheap. It is 50% cheaper than the card you have. I think you should get this. I can't compile software because I don't have your board. NOTE: Since FLASH is embedded, you cannot remove it. Board still doesn't work. Don't try. The board will be damaged.

Thanks a lot for your response. I don't have access to AliExpress and that board is not available in the local market. Also I should have listened to you. Now the board only draws tons of current and heats up. I will be making the f411 now.

hi @mursa1en F411 board work ?? i think have problem of low memory..

I'm using Mr Celik's firmware for the f411 and my quad is flying without any issues although it needs some tuning.

@mursa1en Excelent news!! these vening i try to install firmware on my STM32F411NCEU board. then do you have used this firmware...right ?? https://github.com/rizacelik/STM32F411CEU6_INAV_Firmware thanks for info

Yes. I used the inav 7.0https://github.com/rizacelik/STM32F405RGT6_INAV_Firmware/assets/108753302/ef250e0a-54c5-44a1-8050-d1a38ced7c34

@mursa1en then you dont have installed Ardupilot on F411 ? but only Inav...

mursa1en commented 7 months ago

https://www.aliexpress.com/item/1005006051651136.html STM32F405RGT6 board is very cheap. It is 50% cheaper than the card you have. I think you should get this. I can't compile software because I don't have your board. NOTE: Since FLASH is embedded, you cannot remove it. Board still doesn't work. Don't try. The board will be damaged.

Thanks a lot for your response. I don't have access to AliExpress and that board is not available in the local market. Also I should have listened to you. Now the board only draws tons of current and heats up. I will be making the f411 now.

hi @mursa1en F411 board work ?? i think have problem of low memory..

I'm using Mr Celik's firmware for the f411 and my quad is flying without any issues although it needs some tuning.

@mursa1en Excelent news!! these vening i try to install firmware on my STM32F411NCEU board. then do you have used this firmware...right ?? https://github.com/rizacelik/STM32F411CEU6_INAV_Firmware thanks for info

Yes. I used the inav 7.0https://github.com/rizacelik/STM32F405RGT6_INAV_Firmware/assets/108753302/ef250e0a-54c5-44a1-8050-d1a38ced7c34

@mursa1en then you dont have installed Ardupilot on F411 ? but only Inav...

The F411 theoretically can't run ardupilot. 🫥 I guess inav offers more than my requirements

mursa1en commented 5 months ago

@rizacelik

Sir, I apologize for bothering you again. I’ve found this board at the local market. Could you please review its schematic and tell me if the firmware is meant to work with this board? It would also be very helpful if you could share the schematic for the WeAct board

-466492430.png

573417657.png

-8631104.png

834863183.png

rizacelik commented 5 months ago

Install STM32F405RGT6 Firmware, it should work.

rizacelik commented 5 months ago

An Baro, Acceleration and Gyroscope module must be connected to the board. It will not connect to the Bare Board Configurator.

rizacelik commented 5 months ago

the schematic for the WeAct board https://github.com/WeActStudio/WeActStudio.STM32F4_64Pin_CoreBoard/blob/master/Hardware/WeAct-STM32F4_64PIN-CoreBoard_V10%20SchDoc.pdf

skimans commented 2 months ago

@madamidopingo i have same board of you. I cannot connect board to Mission Planner. Do you have solved ? you can connect it ? wich version work fine ? thanks

madamidopingo commented 2 months ago

@madamidopingo do you have solved ? your board connect now to Mission Planner ?

@madamidopingo i have same board of you. I cannot connect board to Mission Planner. Do you have solved ? you can connect it ? which version work fine ? thanks

no , i buyed weact stm32f405 and worked perfectly
thanks @rizacelik

mursa1en commented 2 months ago

@madamidopingo do you have solved ? your board connect now to Mission Planner ?

@madamidopingo i have same board of you. I cannot connect board to Mission Planner. Do you have solved ? you can connect it ? which version work fine ? thanks

no , i buyed weact stm32f405 and worked perfectly
thanks @rizacelik

Which IMU did you use? I have the mpu6500 but it is detected as the MPU 6000 on arducopter firmware although it works fine on inav.