fix: disable cache

This commit is contained in:
2024-12-14 14:16:25 +06:00
parent a0072d3d3a
commit 8f5085862a
5 changed files with 27 additions and 66 deletions

View File

@@ -14,6 +14,9 @@
#define FLASH_WORD_SIZE 4
#define VERIFY_CHUNK_SIZE 4
#define VERIFY_WORDS (VERIFY_CHUNK_SIZE / FLASH_WORD_SIZE)
#ifndef FLASH_SECTOR_SIZE
#define FLASH_SECTOR_SIZE 4096
#endif
#define WRITE_CHUNK_SIZE 256
@@ -110,6 +113,7 @@ typedef struct {
} FLASH_InitTypeDef;
/* external ROM bloat */
__always_long_call void Cache_Enable(uint32_t Enable);
extern FLASH_InitTypeDef flash_init_para;
extern __always_long_call uint32_t DiagPrintf(const char *fmt, ...);