I am trying to upload a sketch to my esp8266-01, but get an error: '.text' will not fit in region íram_0_seq'.
I suspect this means that there is not enough memory, but can't understand why, it has 512kb hasn't it? On an arduino mini pro (32k prog. mem, 2kb sram) it uploads fine and reports the sketch uses 7.6kB prog. mem and 1.8kb sram. I really want to use the esp8266-01 for its high clock-speed.
The sketch is a 6502 cpu (e.g. c64) emulator and has a large rom table (const unsigned char BIOS[10496] and const unsigned char BIOStop[256] ). The original sketch used progmem to put this rom table in flash, but progmem doesn't work om the eps8266, so I removed progmem references. For testing purposes I reduced the rom table to 2 bytes but the error persisted. If I reduce the program code however (there is a large switch statement with all opcodes), the error vanishes.
Do I have to use some specific esp command to load the sketch in the correct memory-part? Or is the esp despite it's large memory of 512kb not as capable as the arduino ATM328 boards? I can't believe this however, and hope I am missing something!
Any help much appreciated! (Banging my head against the wall for two days now and internet is not of much help either.)