Espressif_Faye wrote:If your problem is still unsolved, please offer your entire project.
I've attached a .zip file containing a simple makefile and the source code. The makefile uses the
esptool-ck utility (lines 24 and 25 of the Makefile) to produce the image files from the ELF file. The code was compiled on a Windows 7 system using the v1.3.0 SDK. The makefile will probably need to be modified slightly to account for the installation directories of the compiler and SDK (lines 4 and 5 of "Makefile"). Beyond that, the makefile should build the app on either Windows or Linux.
In the .zip file, there are two subdirectories - "regInterrupt" and "nmiInterrupt" which contain the generated ELF file and image files for the regular interrupt build and the NMI build, respectively. The only difference between the two was changing the conditional on line 84 of user_main.c so that it uses either a normal interrupt or an NMI.
The images were flashed to an ESP8266 with a 512KB Flash chip and the "regInterrupt" version works exactly as expected while the "nmiInterrupt" version starts with a small amount of the normal boot-up output and then output garbage.
Thanks for looking into this. It's probably something simple but I don't see it. I believe that I've provided everything (other than the compiler, SDK and esptool-ck) to allow you to build exactly the same ELF and image files to confirm the observation.