1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-19 14:25:20 +03:00
Commit graph

49 commits

Author SHA1 Message Date
Steve Evans
d78f2081db Fix pg_resetdata location in FLASH 2021-08-30 20:12:42 +01:00
Michael Keller
b83bc86713 Rearranged flash on targets >512 kB to keep first sector from overflowing. 2021-08-09 10:06:27 +12:00
Steve Evans
87c8847c13 New SPI API supporting DMA
Call targetConfiguration() once before config is loaded and again afterwards in case the config needs to be changed to load from SD card etc

Drop SPI clock during binding

Remove debug

Add per device SPI DMA enable

Fix sdioPinConfigure() declaration warning

Reduce clock speed during SPI RX initialisation
2021-07-25 12:40:25 +12:00
Michael Keller
5549a906f6 Added a Unified Target for STM32H743. 2021-06-27 18:49:45 +12:00
mikeller
3529195b9f Moved some data into FLASH1 from FLASH to free up space. 2021-05-18 01:49:09 +12:00
Steve Evans
0dbd712233 Allow normal RAM overflow to occupy start of CCM, and only reserve 2560 bytes for vector table and stack in CCM 2021-05-17 12:28:30 +01:00
mikeller
03d3d94497 Added Unified Target for STM32G4. 2021-04-26 16:18:28 +12:00
Michael Keller
00a75326c0 Fixed RAM overflow on NUCLEOH743_RAMBASED. 2020-12-16 01:16:59 +01:00
Steve Evans
cb908a6893 Add USE_LEDSTRIP_CACHE_MGMT option to use explicit cache management for LED strip.
Ensure DMA_RAM section is at start of RAM and the the region defining the shareable region is covered.
Enable USE_LEDSTRIP_CACHE_MGMT on NUCLEOH743 target
2020-12-14 19:35:13 +00:00
jflyper
1feb306674 [H7] H723/H725 support 2020-11-11 23:45:15 +09:00
Michael Keller
4bf3e99e9c
Merge pull request #10318 from jflyper/bfdev-h7-h7a3
[H7] H7A3 support
2020-11-05 02:11:20 +13:00
Michael Keller
49679ce0ef
Merge pull request #10247 from SteveCEvans/h7mscsrc 2020-11-01 11:27:52 +13:00
jflyper
697d0f7ed3 [H7] H7A3 support 2020-11-01 00:32:39 +09:00
Steve Evans
31b06cd7d2 Add USB MSC support for H7 2020-10-30 19:30:38 +00:00
Michael Keller
7763ab6a1e Moved parameter group defaults into main flash for STM32F722. 2020-10-25 18:50:24 +01:00
jflyper
e4d7c4e152 [G4][SYSTEM] Basic & build files 2020-09-30 18:20:05 +09:00
Michael Keller
4261f0499d
Revert "Clean up linker script" 2020-09-22 00:05:51 +12:00
Michael Keller
4ffe9dac9e
Merge pull request #10126 from SJ-Innovation/SJI_cleanup_linker_script 2020-09-13 16:15:46 +12:00
Sam Lane
bf3fb24aa1 Remove missed duplicate LMA 2020-08-23 09:04:18 +01:00
Sam Lane
4c99ad743d Rename FAST_RAM to FAST_DATA 2020-08-23 08:49:26 +01:00
Sam Lane
00d9fbbcd6 Clean up non aliased LMAs 2020-08-23 08:34:59 +01:00
Dominic Clifton
ad3f434aef Provide ability to build H750 for 1M when EXST support is not used.
Default for EXST is `yes`
2020-03-26 16:51:32 +01:00
Dominic Clifton
09ac5be8d6 Cleanup and de-duplicate H7 linker scripts 2020-03-26 16:50:21 +01:00
Dominic Clifton
bba5a1986b Update comment in the h743 ram based file to match the filename. 2020-03-26 16:37:12 +01:00
Dominic Clifton
fb6f93bc0d Remove 'flash' from the ram-based linker script filename. 2020-03-26 16:37:00 +01:00
jflyper
6dcb373257 [F1] Maintenance to keep F1 buildable 2020-03-23 10:30:33 +09:00
Michael Keller
39c8d1851e Revert the workaround for the EXST linker script. 2019-11-27 18:14:12 +13:00
mikeller
a302b5bae2 Removed ATOMIC_BARRIER check, fixed ITCM_RAM overflow. 2019-11-25 01:16:08 +13:00
Michael Keller
564f3031b2
Add NUCLEOF303RE target (#8938)
Add NUCLEOF303RE target
2019-10-20 22:50:18 +13:00
Michael Keller
9f5bbf6e5c
DSHOT telemetry optimizations (#8772)
DSHOT telemetry optimizations
2019-10-20 22:39:32 +13:00
jflyper
cb1bdfe204 Add Nucleo-F303RE support 2019-10-18 00:19:52 +09:00
jflyper
4e9923569a NUCLEOF103RG target
NUCLEOF103RG is a target for Nucleo-F103RG (Nucleo-F103RB transplanted
with STM32F103RG which has 1MB of FLASH).
Such hardware with this target comes in handy when a firmware that
doesn't fit in smaller FLASH variant when compiled with DEBUG option.

The target definition files are straight copy of NAZE, except LED0_PIN
has been redefined to use Nucleo's LD2 (User LED).

It is also easy to convert exisiting F1 targets to be built to run on
the Nucleo-F103RG board:

- Add
    #define FLASH_PAGE_SIZE 0x800
    to target.h

- Also add
    #undef USE_DSHOT
    #undef USE_LED_STRIP
    #undef USE_TRANSPONDER
    #undef USE_CAMERA_CONTROL
    to target.h to avoid non-F1 compatible code from getting in.

- Add
FLASH_SIZE  = 1024
    to target.mk
2019-09-23 23:58:03 +09:00
Dominic Clifton
376441f89f F3 - Add support for code in CCM RAM. 2019-09-02 18:40:13 +02:00
mikeller
3128328224 Fixed start / end addresses for custom defaults. 2019-09-01 13:35:10 +12:00
mikeller
5c9e51bb5f Fix extended custom defaults. 2019-08-18 16:12:33 +12:00
mikeller
35e075098d Renamed things to make them more understandable. 2019-08-11 21:32:58 +12:00
mikeller
2c8d197ccb Added support for custom defaults in sector 0. 2019-08-11 21:32:01 +12:00
mikeller
7518ec67f5 Experimental support for on-board custom defaults. 2019-08-11 21:32:01 +12:00
Dominic Clifton
a76e0bccfc EXST - Use the .bin file as the source for the hex file.
* This bypasses the problem introduced when the .data section was moved
from RAM to DTCM_RAM.
* This also ensures that the hash in the .hex file will be valid when
the hex is flashed to a NAND chip as the hash is generated from the .bin
file content.  If the hex contains gaps between sections and the gaps
are erased on the NAND flash then erased sectors are full of 0xFF, not
0x00, which will mean the computed hash won't match.

EXST - Add note regarding currently supported bootloader requirements
regarding the CODE_RAM address.

EXST - Fix make 'dirty' file issue.

When `make` is run twice, the TARGET_BIN is recreated incorrectly.

Root cause was that objcopy actually modifies the INPUT file when no
output file is specified, even when the operation is to extract a
section from the input file...

EXST - Improve messaging when generating EXST bin files.

This should help with understanding of the exact operations required for
EXST bin file generation.

Added warning about hard coded start address.
2019-08-10 13:36:03 +12:00
Dominic Clifton
aa1f22d9e1
Merge pull request #8682 from hydra/fix-invalid-spracingh7extreme-load-address-2
Fix invalid H7 EXST targert invalid load addresses (Solution B)
2019-08-09 12:32:43 +02:00
Michael Keller
ed583af1f2
Removed non-printable characters from 'stm32_flash_h743_ram_bas… (#8670)
Removed non-printable characters from 'stm32_flash_h743_ram_based'.
2019-08-08 22:46:48 +12:00
Dominic Clifton
924552318a STM32H750_EXST - Move initialised data into DTCM ram. 2019-08-08 12:09:20 +02:00
Dominic Clifton
17c34edfce Revert "Fix RAM overflow on SPRACINGH7EXTREME."
This reverts commit ebc33bb45b.
2019-08-07 15:32:54 +02:00
mikeller
d3fce37ade Removed non-printable characters from 'stm32_flash_h743_ram_based'. 2019-08-07 01:31:25 +12:00
mikeller
ebc33bb45b Fix RAM overflow on SPRACINGH7EXTREME. 2019-08-06 22:33:19 +12:00
mikeller
1c60776487 Added target variant NUCLEOH743_RAMCONFIG to get CI coverage of 'EXST' changes.
Changing over to be RAM based.

Changes required for MPU configuration service.

Added documentation.
2019-07-27 18:20:05 +12:00
jflyper
c8252fabdd Introduce memProtXXX MPU configuration service 2019-07-24 11:32:11 +09:00
jflyper
dad1110181 [H7] Relocate LD files to match betaflight/master branch 2019-06-26 12:36:34 +02:00
blckmn
4e529e1c25 moved the linker files to the src directory head 2019-04-28 16:04:44 +10:00