Replies: 1 comment
-
Reading/writing to flash is done via code pointed to by |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
HI teacher:
I am crazy when i cant resolve the problem
It was discovered that some of the grblHAL settings parameters were written in advance to the FLASH of GD32
at 0x0807E000, rather than calling FLASH read-write functions. How was this achieved?
flash.c
#define _EEPROM_Emul_Sector 63U /*暂定NVS在第63页上,0x0807E000-0x0807FFFF*/ #define _EEPROM_Emul_Start ((uint32_t)0x0807E000U)
nvsbuffer.c
`
bool nvs_buffer_init (void)
{
hal.nvs.size = ((hal.nvs.size - 1) | 0x03) + 1; // Ensure NVS area ends on a word boundary
}

`
Beta Was this translation helpful? Give feedback.
All reactions