mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-21 15:25:29 +03:00
Bump config size to 4k for 128k targets.
Note: The new G-Tune feature added a few configuration setting which pushed the NAZE target over 2K. 256k targets were already using 4kb.
This commit is contained in:
parent
3df86bfa38
commit
d8ba4b4aa0
3 changed files with 4 additions and 4 deletions
|
@ -118,8 +118,8 @@ void useRcControlsConfig(modeActivationCondition_t *modeActivationConditions, es
|
|||
#error "Flash page count not defined for target."
|
||||
#endif
|
||||
|
||||
#if FLASH_SIZE <= 128
|
||||
#define FLASH_TO_RESERVE_FOR_CONFIG 0x800
|
||||
#if FLASH_SIZE <= 64
|
||||
#define FLASH_TO_RESERVE_FOR_CONFIG 0x0800
|
||||
#else
|
||||
#define FLASH_TO_RESERVE_FOR_CONFIG 0x1000
|
||||
#endif
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
/* Specify the memory areas. */
|
||||
MEMORY
|
||||
{
|
||||
FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 126K /* last 2kb used for config storage */
|
||||
FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 124K /* last 4kb used for config storage */
|
||||
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 20K
|
||||
MEMORY_B1 (rx) : ORIGIN = 0x60000000, LENGTH = 0K
|
||||
}
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
/* Specify the memory areas. */
|
||||
MEMORY
|
||||
{
|
||||
FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 126K /* last 2kb used for config storage */
|
||||
FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 124K /* last 4kb used for config storage */
|
||||
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 40K
|
||||
MEMORY_B1 (rx) : ORIGIN = 0x60000000, LENGTH = 0K
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue