Search found 15 matches

by sedlacek.david
Sun May 05, 2019 12:37 am
Forum: ESP8266 SDK
Topic: [ESP8266 nonOS sdk] Can't execute my own function pointer
Replies: 4
Views: 475

Re: [ESP8266 nonOS sdk] Can't execute my own function pointer

Just for the others. It was my mistake - the address I was loading wasn't correct.
by sedlacek.david
Fri May 03, 2019 3:50 am
Forum: ESP8266 SDK
Topic: [ESP8266 nonOS sdk] Can't execute my own function pointer
Replies: 4
Views: 475

Re: Can't execute my own function pointer

If I remove the Cache_Read_Enable I got this: sp 0x3ffff7c0 epc1=0x40001800, epc2=0x00000000, epc3=0x00000000, excvaddr=0x0068e0f1, depc=0x0 0000000 Fatal exception (28): epc1=0x40001800, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00637ff0, depc=0x0 0000000 Fatal exception (28): epc1=0x40001800, e...
by sedlacek.david
Fri May 03, 2019 3:31 am
Forum: ESP8266 SDK
Topic: [ESP8266 nonOS sdk] Can't execute my own function pointer
Replies: 4
Views: 475

Re: Can't execute my own function pointer

I'm sorry for the confusion, but I just figured out that it is not my pointer what is causing the exception. It is the Cache_Read_Enable function... And don't know why.
by sedlacek.david
Fri May 03, 2019 3:26 am
Forum: ESP8266 SDK
Topic: [ESP8266 nonOS sdk] Can't execute my own function pointer
Replies: 4
Views: 475

Re: Can't execute my own function pointer

Forgot to mention that loadrom() returns exactly 0x40100004 - thats where the entry point of an application I'm loading sits.

And epc1=0x4010fd7d is an address somewhere at the end of call_user_start() function I posted above.
by sedlacek.david
Fri May 03, 2019 3:23 am
Forum: ESP8266 SDK
Topic: [ESP8266 nonOS sdk] Can't execute my own function pointer
Replies: 4
Views: 475

[ESP8266 nonOS sdk] Can't execute my own function pointer

Hi, have a strange problem. Trying to manually load IRAM/DRAM contents from the flash and execute an entry function. Basically I'm trying to mimic a simple bootloader. I have managed to load everything correctly = verified by reading out the memory. What is really strange to me is when I execute a m...
by sedlacek.david
Fri Aug 17, 2018 11:30 pm
Forum: ESP8266 SDK
Topic: Rom function SPIRead() (esp8266, non os sdk)
Replies: 0
Views: 3420

Rom function SPIRead() (esp8266, non os sdk)

Hi, can I use the built in SDK ROM function to read 8 Bytes from address for example 0x81008 ? Do I have to call it from IRAM for example? I'd like know if there are any constraints like address that it can read. The only known limitation is that the address has to by 4-Bytes aligned. Assuming that ...
by sedlacek.david
Wed Aug 15, 2018 4:00 pm
Forum: General Q&A
Topic: ESP8266 - two sdk applications
Replies: 3
Views: 3784

Re: ESP8266 - two sdk applications

Hi, thank you for your reply!

I've been scrutinizing how does it work and it is clear now. I have to load the cca 3 volatile sections (IRAM/DRAM..) and reset the stack manually from the FLASH before jumping into my application.
by sedlacek.david
Wed Aug 15, 2018 3:32 pm
Forum: ESP8266 SDK
Topic: LoadStoreErrorCause help
Replies: 5
Views: 2800

Re: LoadStoreErrorCause help

Thank you for your reply.

So there is nothing wrong with it. What I have to do now is refactor some of my C structures mapping some UINT8 stuff stored in the FLASH.
by sedlacek.david
Wed Aug 15, 2018 1:15 am
Forum: ESP8266 SDK
Topic: LoadStoreErrorCause help
Replies: 5
Views: 2800

Re: LoadStoreErrorCause help

Can someone help?
by sedlacek.david
Sun Aug 05, 2018 11:31 pm
Forum: General Q&A
Topic: ESP8266 non OS: Fatal exception 3(LoadStoreErrorCause)
Replies: 1
Views: 3575

ESP8266 non OS: Fatal exception 3(LoadStoreErrorCause)

Can somebody help. Have an ESP8266 with 4MB of external memory. It works well except this. Have following structure: #pragma pack(push, 1) typedef struct { UINT32 magicNumber; UINT32 length; UINT32 crc16; UINT32 applicationMajorVersion; UINT32 applicationMinorVersion; } applicationHeader_t; #pragma ...

Go to advanced search