We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provided example assumes sizeof(ULONG) is 4B
/* Setup pointer. */ pointer = (ULONG *) &nor_memory_area[0]; /* Loop to erase block. */ words = sizeof(nor_memory_area)/(sizeof(ULONG)); while (words--) { /* Erase word of block. */ *pointer++ = (ULONG) 0xFFFFFFFF; }
when changed to
memset((uint8_t *) &nor_memory_area[0], 0xFF, sizeof(FLASH_BLOCK) * TOTAL_BLOCKS);
subsequent write/read test failes
The text was updated successfully, but these errors were encountered:
also internal checks are done in 4B mode, e.g. in _lx_nor_flash_logical_sector_find
_lx_nor_flash_logical_sector_find
if (list_word == LX_NOR_PHYSICAL_SECTOR_FREE)
with
#define LX_NOR_SECTOR_MAPPING_CACHE_ENTRY_MASK 0x7FFFFFFF #define LX_NOR_SECTOR_MAPPING_CACHE_ENTRY_VALID 0x80000000 #define LX_NOR_PHYSICAL_SECTOR_VALID 0x80000000 #define LX_NOR_PHYSICAL_SECTOR_SUPERCEDED 0x40000000 #define LX_NOR_PHYSICAL_SECTOR_MAPPING_NOT_VALID 0x20000000 #define LX_NOR_LOGICAL_SECTOR_MASK 0x1FFFFFFF #define LX_NOR_PHYSICAL_SECTOR_FREE 0xFFFFFFFF
Sorry, something went wrong.
this should be solved in PR #23
No branches or pull requests
Provided example assumes sizeof(ULONG) is 4B
when changed to
subsequent write/read test failes
The text was updated successfully, but these errors were encountered: