1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-17 13:25:24 +03:00
Commit graph

5277 commits

Author SHA1 Message Date
Michael Keller
4475586e59
Merge pull request #1862 from McGiverGim/update_catalan_translation
Update Catalan translation
2020-01-26 12:50:11 +13:00
Michael Keller
cee091f103
Merge pull request #1851 from fiam/agh_cf_serial_config
[MSP] Use MSP2_COMMON[_SET]_SERIAL_CONFIG for configuring ports
2020-01-26 12:48:05 +13:00
Michael Keller
d022cb827e
Merge pull request #1861 from jflyper/bfcdev-h7-rev-v-erase-weirdness-workaround
Workaround for H7 Rev.V weirdness on erase beyond 1MB
2020-01-25 20:04:14 +13:00
Miguel Angel Mulero Martinez
f18390c203 Update Catalan translation 2020-01-24 19:30:56 +01:00
jflyper
8ac29e0563 Workaround for H7 Rev.V weirdness on erase beyond 1MB
H743 Rev.V (probably other H7 Rev.Vs also) remains in dfuDNBUSY state after the specified delay time.

STM32CubeProgrammer deals with behavior with an undocumented procedure as follows.

  1. Issue DFU_CLRSTATUS, which ends up with (14,10) = (errUNKNOWN, dfuERROR)
  2. Issue another DFU_CLRSTATUS which delivers (0,2) = (OK, dfuIDLE)
  3. Treat the current erase successfully finished.

Here in this PR, we call clarStatus to get to the dfuIDLE state when dfuDNBUSY is detected after timeout.

---
Below is the complete description of the problem reported at ST community
(https://community.st.com/s/question/0D50X0000C0w7U9SQI/weird-stm32h743zi-revv-usb-dfu-erase-behavior-beyond-1mb-page-8)

Weird STM32H743ZI Rev.V USB DFU erase behavior beyond 1MB (sector 8)

Summary

I'm observing errors and what looks like a non-standard error recovery procedure for all sectors beyond 1MB (sectors 8 through 15) during sector erase on STM32H743ZI Rev.V (Nucleo-H743ZI2) under STM32CubeProgrammer.

Is this behavior documented anywhere?

Description

For sector erase start to sector 2 erase, a log from the STM32CubeProgrammer looks like this.

13:05:04:121 : Flash sector erase ...
13:05:04:121 : DFU status = 0
13:05:04:121 : DFU State = 9
13:05:04:121 : Status: 0, State: 9
13:05:04:121 : sending an abort request
13:05:04:122 : DFU status = 0
13:05:04:122 : DFU State = 2
13:05:04:122 : sending a page erase request @: 0x08000000
13:05:04:122 : data: 4100000008
13:05:05:025 : DFU status = 0
13:05:05:025 : DFU State = 4
13:05:05:026 : DFU status = 0
13:05:05:027 : DFU State = 5
13:05:05:027 : erasing sector 0000 @: 0x08000000 done
13:05:05:027 : DFU status = 0
13:05:05:027 : DFU State = 5
13:05:05:027 : Status: 0, State: 5
13:05:05:027 : sending a page erase request @: 0x08020000
13:05:05:027 : data: 4100000208
13:05:05:932 : DFU status = 0
13:05:05:932 : DFU State = 4
13:05:05:933 : DFU status = 0
13:05:05:934 : DFU State = 5
13:05:05:934 : erasing sector 0001 @: 0x08020000 done
13:05:05:935 : DFU status = 0
13:05:05:936 : DFU State = 5
13:05:05:936 : Status: 0, State: 5
...

I notice that sector erase requests are followed by what seems like a pair of GETSTATUS results, with (status, state) being (0, 4) and (0,5) and then declared as erase done.
States 4 and 5 are probably dfuDNBUSY and dfuDNLOAD-IDLE respectively.
All sectors within the first 1MB (sectors 0 through 7) behaves the same.

But for sectors beyond 1MB, it looks like this.

13:05:11:397 : DFU status = 0
13:05:11:397 : DFU State = 5
13:05:11:397 : Status: 0, State: 5
13:05:11:397 : sending a page erase request @: 0x08100000
13:05:11:397 : data: 4100001008
13:05:11:413 : DFU status = 0
13:05:11:413 : DFU State = 4
13:05:11:414 : DFU status = 0
13:05:11:414 : DFU State = 4
13:05:13:419 : sending a clear status request
13:05:13:421 : DFU status = 14
13:05:13:421 : DFU State = 10
13:05:13:421 : an error occured after sending the clear status request
13:05:13:421 : Status: errUNKNOWN, State: dfuERROR
13:05:13:421 : DFU status = 14
13:05:13:422 : DFU State = 10
13:05:13:422 : sending a clear status request
13:05:13:422 : DFU status = 0
13:05:13:422 : DFU State = 2
13:05:13:422 : DFU status = 0
13:05:13:422 : DFU State = 2
13:05:13:422 : erasing sector 0008 @: 0x08100000 done

Notice that GETSTATUS results are now (0,4) and (0,4), followed by CLEARSTATUS returning (14,10) which is attributed as dfuERROR, and then another CLEARSTATUS (may be two?) that returned (0,2). This particular sector erase process is treated as successful, but it looks like that the process has never confirmed the successful completion of the erase operation but forced clear an error caused by the preceding clear.

(status, state) in the process are probably:
(14, 10) = (errUNKNOWN, dfuERROR)
(0, 2) = (OK, dfuIDLE)

Btw, sector erase succeeds with (0,4) (0,5) on STM32H743ZI Rev.Y (Nucleo-H743ZI) for all sectors 0 through 15 under STM32CubeProgrammer.
2020-01-22 18:27:13 +09:00
Michael Keller
577ce99c1d
Merge pull request #1857 from nicolas-van/patch-1
Changed installation procedure for Linux user
2020-01-17 02:30:22 +13:00
Michael Keller
672923e810
Merge pull request #1849 from McGiverGim/fix_vtx_powerlevel
Fix VTX when PowerLevel tag is empty
2020-01-17 01:40:35 +13:00
Michael Keller
c85198a661
Merge pull request #1850 from McGiverGim/sonar_clean_vtx_js
Sonar clean vtx.js
2020-01-17 01:38:08 +13:00
Michael Keller
14ab7639ca
Update Basque translation (#1848)
Update Basque translation
2020-01-16 23:21:54 +13:00
Alberto García Hierro
b9b84e1c87 Change all console.log() calls to use string interpolation 2020-01-15 09:34:18 +00:00
Alberto García Hierro
35cb6a5e70 Change all shadowed variables use let/const
Otherwise sonarcloud complains about the shadowed variables
in the previous commit. Not ammending it into the previous one
to make review easier.
2020-01-15 09:34:18 +00:00
Alberto García Hierro
2defc901a9 [MSP] Use MSP2_COMMON[_SET]_SERIAL_CONFIG for configuring ports
Configurator side of https://github.com/betaflight/betaflight/pull/9332
2020-01-15 09:33:50 +00:00
Nicolas Vanhoren
05ac30e101
Update README.md 2020-01-13 12:36:10 +01:00
Nicolas Vanhoren
54db304758
Update README.md 2020-01-13 12:35:03 +01:00
Nicolas Vanhoren
ace1becd21
Changed installation procedure for Linux user
That's just the same recommandation with more explanation as the old one was not very precise.
2020-01-13 09:26:24 +01:00
Miguel Angel Mulero Martinez
d8e3b9ee44 Sonar clean vtx.js 2020-01-02 15:11:00 +01:00
Miguel Angel Mulero Martinez
de2ce14ca7 Fix VTX when PowerLevel tag is empty 2020-01-02 12:43:52 +01:00
Miguel Angel Mulero Martinez
a2dabba63f Update Basque translation 2019-12-30 16:13:53 +01:00
Michael Keller
9278e8ed77
I18n custom fallback and Portuguese Brazilian language (#1846)
I18n custom fallback and Portuguese Brazilian language
2019-12-30 16:08:42 +13:00
Miguel Angel Mulero Martinez
083a1818df Fix sonar issues in localization.js 2019-12-28 15:03:14 +01:00
Miguel Angel Mulero Martinez
a538aa6f37 Clean languages mapping file 2019-12-28 15:03:14 +01:00
Miguel Angel Mulero Martinez
5335d64def Add custom fallback for Portuguese and Portuguese Brazilian 2019-12-28 15:03:13 +01:00
Michael Keller
cfd1ee3275
Fixed URL for CP210x driver. (#1845)
Fixed URL for CP210x driver.
2019-12-28 12:53:48 +13:00
Michael Keller
3151217893
The PID slider heatmap now works with the dark theme (#1843)
The PID slider heatmap now works with the dark theme
2019-12-26 16:00:16 +13:00
mikeller
eab38147cd Fixed URL for CP210x driver. 2019-12-26 13:54:46 +13:00
Andrew Young
4c3ac659b5 The PID slider heatmap now works with the dark theme 2019-12-24 01:53:31 +00:00
Michael Keller
cefd7a6e8d
Added .editorconfig file with the main indentation settings (#1841)
Added .editorconfig file with the main indentation settings
2019-12-23 23:25:04 +13:00
Michael Keller
aea87c415a
Added FUNDING.yml. (#1840)
Added FUNDING.yml.
2019-12-23 23:23:46 +13:00
Michael Keller
225a711ea5
Added change heatmap to PIDs for the sliders (#1839)
Added change heatmap to PIDs for the sliders
2019-12-23 22:53:27 +13:00
Andrew Young
10fb05efc8 Added change heatmap to PIDs for the sliders 2019-12-23 00:28:47 +00:00
Andrew Young
780bda894e Added .editorconfig file with the main indentation settings 2019-12-22 04:00:16 +00:00
mikeller
9c3d797c4f Added FUNDING.yml. 2019-12-22 10:51:14 +13:00
Michael Keller
56fff56577
Fix bad powerTable in vtx lua output (#1835)
Fix bad powerTable in vtx lua output
2019-12-12 00:35:20 +13:00
Richard Cooper
a3e879288c Fix bad powerTable in vtx lua output 2019-12-10 10:15:35 +00:00
Michael Keller
91f4fbd009
Add support for "Auto" RC Smoothing derivative type (#1831)
Add support for "Auto" RC Smoothing derivative type
2019-12-02 11:31:38 +13:00
Bruce Luckcuck
f3cefcef81 Add support for "Auto" RC Smoothing derivative type 2019-11-30 19:03:35 -05:00
Michael Keller
49d0793c97
Fix OSD stat flight distance description (#1830)
Fix OSD stat flight distance description
2019-12-01 00:16:46 +13:00
Miguel Angel Mulero Martinez
8179081d0a Fix OSD stat flight distance description 2019-11-29 11:20:42 +01:00
Michael Keller
5ae30e3e2e
Adds RC Channels element to the OSD (#1826)
Adds RC Channels element to the OSD
2019-11-16 01:05:48 +13:00
Michael Keller
ec932af580
Fix unknown elements at the end in the OSD tab (#1825)
Fix unknown elements at the end in the OSD tab
2019-11-16 01:05:26 +13:00
Michael Keller
ba345c6de0
Let pid profile and rate selects grow (#1824)
Let pid profile and rate selects grow
2019-11-16 01:05:19 +13:00
Miguel Angel Mulero Martinez
2a79f7e612 Adds RC Channels element to the OSD 2019-11-13 08:53:37 +01:00
Michael Keller
8297af9c21
Re-ordered targets for flasher. (#1820)
Re-ordered targets for flasher.
2019-11-13 16:38:06 +13:00
Michael Keller
e67a1b4c52 Directly localise messages instead of reprocessing the entire page needlessly. 2019-11-13 13:37:31 +13:00
Michael Keller
e97fd5bef8 Moved styling into CSS file. 2019-11-13 11:46:17 +13:00
mikeller
3de7f6e167 Re-ordered targets for flasher. 2019-11-13 11:46:17 +13:00
Michael Keller
fd13a4483c
Write full vtx_tables to lua file (#1822)
Write full vtx_tables to lua file
2019-11-13 10:36:44 +13:00
Richard Cooper
cb1b63f5e7 use local not global tables and fix formatting 2019-11-12 20:35:45 +00:00
Miguel Angel Mulero Martinez
c9e0b4e276 Fix unknown elements at the end in the OSD tab 2019-11-12 16:41:02 +01:00
Miguel Angel Mulero Martinez
82c209bce4 Let pid profile and rate selects grow 2019-11-12 13:21:12 +01:00