ESP8266 Developer Zone The Official ESP8266 Forum 2018-10-12T20:45:42+08:00 https://bbs.espressif.com:443/feed.php?f=65&t=11879 2018-10-12T20:45:42+08:00 2018-10-12T20:45:42+08:00 https://bbs.espressif.com:443/viewtopic.php?t=11879&p=33583#p33583 <![CDATA[Re: ESP8266 non OS: Fatal exception 3(LoadStoreErrorCause)]]> https://github.com/espressif/ESP8266_RTOS_SDK

Statistics: Posted by Her Mary — Fri Oct 12, 2018 8:45 pm


]]>
2018-08-05T23:31:28+08:00 2018-08-05T23:31:28+08:00 https://bbs.espressif.com:443/viewtopic.php?t=11879&p=22540#p22540 <![CDATA[ESP8266 non OS: Fatal exception 3(LoadStoreErrorCause)]]>
Have following structure:

Code:

#pragma pack(push, 1)
typedef struct
{
    UINT32 magicNumber;
    UINT32 length;
    UINT32 crc16;
    UINT32 applicationMajorVersion;
    UINT32 applicationMinorVersion;
} applicationHeader_t;
#pragma pack(pop)


Mapped to 0x40280000.


So assume I have:
const applicationHeader_t appHdr at 0x40280000.

I can read a member of the structure with os_memcpy(&testVAriable, &appHdr->magicNumber, sizeof(testVAriable))

but I can't read it directly as: (ends up with LoadStoreErrorException at 0x40280000):
const applicationHeader_t * ptr = &appHdr;
UINT32 test = ptr->magicNumber; <<<- it will crash here


Any suggestions?

Statistics: Posted by sedlacek.david — Sun Aug 05, 2018 11:31 pm


]]>