-
-
Notifications
You must be signed in to change notification settings - Fork 19.3k
New issue
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
STM32F4x SD-based settings storage #14808
STM32F4x SD-based settings storage #14808
Conversation
I think you should apply #14809 to this PR |
fc264bf
to
e69eef6
Compare
190a6c6
to
30f4e9e
Compare
d161010
to
580a0a0
Compare
Rebased and squashed. To update your working copy use the Git console and:
|
580a0a0
to
dd930f2
Compare
if (!file.open(&root, EEPROM_FILENAME, O_RDONLY)) | ||
return false; | ||
|
||
int16_t bytes_read = file.read(HAL_eeprom_data, HAL_STM32F4_EEPROM_SIZE); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you left some HAL_STM32F4_EEPROM_SIZE
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#define HAL_STM32F4_EEPROM_SIZE (E2END + 1) // 16KB
#define _ALIGN(x) attribute ((aligned(x))) // SDIO uint32_t* compat.
static char _ALIGN(4) HAL_eeprom_data[HAL_STM32F4_EEPROM_SIZE];
@tpruvot You should fix this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will try, but ive no boards using "STM32" hal
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done, in PR #14844 ... the alignment is for the SDIO transferts, but unsure the STM32 has ported it...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems that in the latest firmware, stm32f103xxx chip board, using SD to simulate EEPROM seems to have a bug, that is, it needs to create a new EEPROM.DAT file in SD card first.But there is nothing wrong with the previous download. I am not sure what changes you have made
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see #14845
Requirements
Description
Benefits
Related Issues