From SEGGER_Flash_Loader, the PageSize is meant that "This field describes in what chunks J-Link feeds the flash loader. The SEGGER_FL_Program() function will be called with a data chunk of multiple of <PageSize> bytes"
The NumByte of SEGGER_FL_Program() will be SectSize of FlashDevice and SEGGER_FL_Verify() will be the SectSize or PageSize of FlashDevice randomly. Is it normal? Thanks.
Display All
The NumByte of SEGGER_FL_Program() will be SectSize of FlashDevice and SEGGER_FL_Verify() will be the SectSize or PageSize of FlashDevice randomly. Is it normal? Thanks.
Source Code
- #define FLASH_PAGE_SIZE 0x00000100 // 256 Bytes
- #define FLASH_SECTOR_SIZE 0x00001000 // 4096 Bytes
- struct FlashDevice
- {
- U16 AlgoVer;
- U8 Name[128];
- U16 Type;
- U32 BaseAddr;
- U32 TotalSize;
- U32 PageSize;
- U32 Reserved;
- U8 ErasedVal;
- U32 TimeoutProg;
- U32 TimeoutErase;
- struct SECTOR_INFO SectorInfo[MAX_NUM_SECTORS];
- };
- struct FlashDevice const FlashDevice __attribute__((section("DevDscr"))) = {
- 0x0101,
- "MYTest",
- 1,
- 0x10000,
- 0x80000,
- FLASH_PAGE_SIZE,
- 0, // Reserved, must be 0
- 0xff,
- 1000000,
- 10000,
- FLASH_SECTOR_SIZE, 0x00000000,
- 0xFFFFFFFF, 0xFFFFFFFF
- };
The post was edited 2 times, last by sharon ().