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

iFlight Beast H7 V2 no SPI-Flash (BMI270 version) #11518

Closed
ltwin8 opened this issue Apr 12, 2022 · 14 comments · Fixed by #11537
Closed

iFlight Beast H7 V2 no SPI-Flash (BMI270 version) #11518

ltwin8 opened this issue Apr 12, 2022 · 14 comments · Fixed by #11537
Labels
BUG Bugs are excluded from automatically being marked as stale

Comments

@ltwin8
Copy link

ltwin8 commented Apr 12, 2022

Describe the bug

SPI-Flash chip not discovered. checked against older V1 board, here the flash is accessible for logging

To Reproduce

fast RC4 IFLIGHT_H743_AIO_V2

Expected behavior

dropdown on blackbox tab should let me select the onboard flash

Flight controller configuration

diff

# version
# Betaflight / STM32H743 (SH74) 4.3.0 Apr  6 2022 / 07:58:58 (2fd2e8eca) MSP API: 1.44
# config: manufacturer_id: IFRC, board_name: IFLIGHT_H743_AIO_V2, version: 7e234e11, date: 2022-02-22T08:28:23Z

# start the command batch
batch start

board_name IFLIGHT_H743_AIO_V2
manufacturer_id IFRC

# serial
serial 1 1 115200 57600 0 115200
serial 3 64 115200 57600 0 115200

# beacon
beacon RX_SET

# map
map TAER1234

# led
led 0 5,12::CTOBVIW:0
led 1 6,12::CTOBVIW:0
led 2 7,12::CTOBVIW:0
led 3 8,12::CTOBVIW:0
led 4 9,12::CTOBVIW:0
led 5 10,12::CTOBVIW:0

# aux
aux 0 0 0 1700 2100 0 0
aux 1 1 1 900 1300 0 0
aux 2 2 1 1300 1700 0 0
aux 3 13 2 1700 2100 0 0
aux 4 15 2 1300 1700 0 0

# vtxtable
vtxtable bands 6
vtxtable channels 8
vtxtable band 1 BOSCAM_A A CUSTOM  5865 5845 5825 5805 5785 5765 5745 5725
vtxtable band 2 BOSCAM_B B CUSTOM  5733 5752 5771 5790 5809 5828 5847 5866
vtxtable band 3 BOSCAM_E E CUSTOM  5705 5685 5665 5645 5885 5905 5925 5945
vtxtable band 4 FATSHARK F CUSTOM  5740 5760 5780 5800 5820 5840 5860 5880
vtxtable band 5 RACEBAND R CUSTOM  5658 5695 5732 5769 5806 5843 5880 5917
vtxtable band 6 BAND_D   D CUSTOM  5362 5399 5436 5473 5510 5547 5584 5621
vtxtable powerlevels 5
vtxtable powervalues 25 100 200 400 600
vtxtable powerlabels 25 100 200 400 600

# master
set gyro_lpf2_type = BIQUAD
set gyro_lpf2_static_hz = 250
set gyro_to_use = FIRST
set gyro_lpf1_dyn_min_hz = 200
set acc_calibration = 0,29,55,1
set mag_hardware = NONE
set serialrx_provider = CRSF
set blackbox_sample_rate = 1/16
set dshot_bidir = ON
set align_board_yaw = -135
set report_cell_voltage = ON
set osd_vbat_pos = 2337
set osd_rssi_pos = 2074
set osd_link_quality_pos = 148
set osd_tim_2_pos = 2497
set osd_flymode_pos = 2508
set osd_current_pos = 2401
set osd_mah_drawn_pos = 2433
set osd_power_pos = 2465
set osd_warnings_pos = 14761
set osd_avg_cell_voltage_pos = 2369
set debug_mode = GYRO_SCALED
set vtx_band = 4
set vtx_channel = 4
set vtx_power = 2
set vcd_video_system = PAL
set gyro_1_sensor_align = DEFAULT
set gyro_1_align_yaw = 900

profile 0

# profile 0
set dterm_lpf1_dyn_min_hz = 70
set dterm_lpf1_dyn_max_hz = 170
set p_pitch = 32
set i_pitch = 63
set d_pitch = 27
set f_pitch = 100
set p_roll = 29
set i_roll = 59
set d_roll = 25
set f_roll = 95
set p_yaw = 31
set i_yaw = 63
set f_yaw = 95
set level_limit = 75
set d_min_roll = 16
set d_min_pitch = 18

rateprofile 0

# rateprofile 0
set rates_type = BETAFLIGHT
set roll_rc_rate = 100
set pitch_rc_rate = 100
set yaw_rc_rate = 100
set roll_srate = 80
set pitch_srate = 80
set yaw_srate = 80

# end the command batch
batch end

# 
# 

# resource show all
Currently active IO resource assignments:
(reboot to update)
--------------------
A00: SERIAL_TX 4
A01: SERIAL_RX 4
A02: SERIAL_TX 2
A03: SERIAL_RX 2
A04: GYRO_CS 1
A05: SPI_SCK 1
A06: SPI_MISO 1
A07: SPI_MOSI 1
A08: LED_STRIP
A09: FREE
A10: FREE
A11: USB
A12: USB
A13: SWD
A14: SWD
A15: FREE
B00: MOTOR 1
B01: MOTOR 2
B02: FREE
B03: CAMERA_CONTROL
B04: MOTOR 3
B05: MOTOR 4
B06: FREE
B07: FREE
B08: I2C_SCL 1
B09: I2C_SDA 1
B10: I2C_SCL 2
B11: I2C_SDA 2
B12: PREINIT 2
B13: SPI_SCK 2
B14: SPI_MISO 2
B15: SPI_MOSI 2
C00: FREE
C01: FREE
C02: ADC_CURR
C03: ADC_BATT
C04: FREE
C05: ADC_RSSI
C06: FREE
C07: FREE
C08: FREE
C09: FREE
C10: SPI_SCK 3
C11: SPI_MISO 3
C12: SPI_MOSI 3
C13: LED 1
C14: FREE
C15: FREE
D00: GYRO_EXTI
D01: FREE
D02: BEEPER
D03: FREE
D04: FREE
D05: FREE
D06: FREE
D07: FREE
D08: FREE
D09: FREE
D10: FREE
D11: FREE
D12: FREE
D13: FREE
D14: FREE
D15: FREE
E00: FREE
E01: FREE
E02: SPI_SCK 4
E03: FREE
E04: OSD_CS
E05: SPI_MISO 4
E06: SPI_MOSI 4
E07: FREE
E08: FREE
E09: FREE
E10: FREE
E11: FREE
E12: FREE
E13: FREE
E14: FREE
E15: FREE
F00: FREE
F01: FREE
F02: FREE
F03: FREE
F04: FREE
F05: FREE
F06: FREE
F07: FREE
F08: FREE
F09: FREE
F10: FREE
F11: FREE
F12: FREE
F13: FREE
F14: FREE
F15: FREE
G00: FREE
G01: FREE
G02: FREE
G03: FREE
G04: FREE
G05: FREE
G06: FREE
G07: FREE
G08: FREE
G09: FREE
G10: FREE
G11: FREE
G12: FREE
G13: FREE
G14: FREE
G15: FREE

Currently active Timers:
-----------------------
TIM1:
    CH1 : LED_STRIP
TIM2: FREE
TIM3: FREE
TIM4: FREE
TIM5: FREE
TIM6: FREE
TIM7: FREE
TIM8:
    CH1 : DSHOT_BITBANG 2
TIM12: FREE
TIM13: FREE
TIM14: FREE
TIM15: FREE
TIM16: FREE
TIM17: FREE

Currently active DMA:
--------------------
DMA1 Stream 0: DSHOT_BITBANG 2
DMA1 Stream 1: ADC 1
DMA1 Stream 2: SPI_MOSI 1
DMA1 Stream 3: SPI_MISO 1
DMA1 Stream 4: SPI_MOSI 4
DMA1 Stream 5: SPI_MISO 4
DMA1 Stream 6: FREE
DMA1 Stream 7: FREE
DMA2 Stream 0: FREE
DMA2 Stream 1: FREE
DMA2 Stream 2: ADC 3
DMA2 Stream 3: FREE
DMA2 Stream 4: FREE
DMA2 Stream 5: FREE
DMA2 Stream 6: LED_STRIP
DMA2 Stream 7: FREE

# 

Flight controller

Flight Beast H7 55A V2 BMI270 version

Other components

none of interest

How are the different components wired up

none of interest (just uarts)

Add any other context about the problem that you think might be relevant here

checked SPI Bus 3, pins seem correct. maybe build with wrong flash type?

@ltwin8 ltwin8 added the Template: Bug Set by auto_close_issue. label Apr 12, 2022
@ltwin8
Copy link
Author

ltwin8 commented Apr 12, 2022

Winbound 25Q128 seems to be build in (16MByte) did not find that defined in target.h of the FC

@haslinghuis
Copy link
Member

Please test with:
betaflight_4.3.0_STM32H743_norevision.zip

First select or detect your board and then use local firmware button to choose the download to flash.

@ltwin8
Copy link
Author

ltwin8 commented Apr 12, 2022 via email

@haslinghuis
Copy link
Member

haslinghuis commented Apr 12, 2022

Added line to /home/mark/dev/betaflight/betaflight/src/main/target/STM32_UNIFIED/target.h

#define USE_FLASH_W25Q128FV        // 16MB Winbond 25Q128

@haslinghuis
Copy link
Member

Can you look at the board which version is being used. I have one with 25Q128J / 25Q128JV.
This include only covers the 25Q128FV driver as we don't have drivers for the other variants of this chip in our code base.

@ltwin8
Copy link
Author

ltwin8 commented Apr 12, 2022

25Q128JVPQ it is I think

@ltwin8
Copy link
Author

ltwin8 commented Apr 12, 2022

tried your *.hex, sadly no success
Bildschirmfoto 2022-04-12 um 22.17.55.zip

screenshot attached

@haslinghuis
Copy link
Member

Yes just failed test on Holybro Kakute H7 mini as it seems we need a new driver for this chip.

@ltwin8
Copy link
Author

ltwin8 commented Apr 12, 2022

i do not exactly know if it worked with the manufacturers firmware (some 4.3.0) I have a second quad with this board, but bought not at the same time (so maybe some quiet change?) there the flash is working its not upgraded yet

@ltwin8
Copy link
Author

ltwin8 commented Apr 12, 2022

works now! added

#define USE_FLASH_W25Q128FV

to betaflight-master/src/main/target/IFLIGHT_H743_AIO_V2/target.h

@haslinghuis
Copy link
Member

Was assuming it was using STM32H743 unfied target, so it didn't 👌

@ltwin8
Copy link
Author

ltwin8 commented Apr 12, 2022

strange it did not.

created a fork and will pull-request it

@haslinghuis haslinghuis added BUG Bugs are excluded from automatically being marked as stale and removed Template: Bug Set by auto_close_issue. labels Apr 12, 2022
@haslinghuis
Copy link
Member

@ltwin8 Thanks. Please report resource show all with the fix applied as I want to have a look at:

B12: PREINIT 2

@haslinghuis haslinghuis added this to Bug Tracker in Finalizing Firmware 4.3 Release via automation Apr 15, 2022
Finalizing Firmware 4.3 Release automation moved this from Bug Tracker to Finished (Merged) Apr 20, 2022
@ltwin8
Copy link
Author

ltwin8 commented Oct 11, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BUG Bugs are excluded from automatically being marked as stale
Projects
No open projects
2 participants