Add bootloader flag in the flash

This commit is contained in:
Valentin Dabstep 2025-05-23 09:10:51 +03:00
parent ec086e2d47
commit c0c42339f1
5 changed files with 17 additions and 2 deletions

View file

@ -19,6 +19,7 @@ enum {
pid_p = 1,
pid_i,
pid_d,
firmw,
foc_id,
angl,
vel
@ -31,8 +32,8 @@ union{
}conv_float_to_int;
#define FLASH_RECORD_SIZE sizeof(FLASH_RECORD) //size flash struct
#define PARAM_COUNT 4 // count data in flash
#define PARAM_COUNT 5 // count data in flash
#define FIRMWARE_FLAG (uint32_t)0xDEADBEEF
// Flash sectors for STM32F407
#define SECTOR_2 0x08008000 // 16KB