Обновление 23.06.2026

This commit is contained in:
Дарья Бараева 2026-06-23 20:48:36 +03:00
parent 58cf6f726b
commit 209086f615
3 changed files with 12 additions and 4 deletions

View File

@ -5,6 +5,7 @@
#include "fc7xxx_driver_fmc.h"
#include "InternalFlashPage.h"
#include "memory.h"
#include "BootJump.h"
#define _BootloaderSize (64 * 1024)
#define _BootloaderBegin 0x01000000
@ -122,11 +123,13 @@ int main(void) {
*/
if (NumberBank == 1) {
swap_bank(0);
swap_bank(1);
} else {
swap_bank(0);
}
Boot2App();
BootFastJumpToAddress(_FirmwareMainBegin);
// Boot2App();
}

View File

@ -3,8 +3,8 @@ SET(CMAKE_TOOLCHAIN_FILE ${CMAKE_SOURCE_DIR}/MODULES/CmakeConfig_GCC_CortexM7/gc
ENABLE_LANGUAGE(ASM)
CMAKE_MINIMUM_REQUIRED(VERSION 3.8.0)
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -O2")
set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -O2")
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -O0")
set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -O0")
IF (${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_BINARY_DIR})
MESSAGE(

View File

@ -43,6 +43,11 @@
"repo": "InternalFlashPage_Flagchip_FC7240"
},
{
"type": "git",
"provider": "HVAC_M7",
"repo": "BootJump_Flagchip_FC7240"
},
{