should call espfsint first
The call is made in user_init(), as shown:
Code: Select all
void user_init(void)
{
...
/*Initialize espfs containing static webpages*/
espFsInit((void*)(webpages_espfs_start));
...
}
But this call is resulting in "ESPFS_INIT_RESULT_BAD_ALIGN", because of this first condition:
Code: Select all
EspFsInitResult espFsInit(void *flashAddress) {
// base address must be aligned to 4 bytes
if (((int)flashAddress & 3) != 0) {
return ESPFS_INIT_RESULT_BAD_ALIGN;
}
...
}
webpages_espfs_start has a value of 1076086519.
I'm kind of lost. Can anyone help? What am I doing wrong? I'll be happy to provide any other information that you may find useful to know in order to help.
Thanks!!