Arduino-Debug icon indicating copy to clipboard operation
Arduino-Debug copied to clipboard

ESP8266 support

Open ramondcosta opened this issue 8 years ago • 2 comments

I was looking for a debug library for arduino and esp8266, then i found that one, but there it's not compatible with esp. So i start to make some changes and was able to make the demo scketch compile for esp.

I disable the heap and the quit options

#define DEBUG_NO_PRINT_HEAP //<fix>
#define DEBUG_NO_QUIT //<fix>

And also added a condition to variable print function

    else if (m_size == sizeof(int)) {//<fix><esp>
      debug.print('=');
      debug.print(*((int*) m_ref));
      debug.print(F(" (0x"));
      debug.print(*((int*) m_ref), HEX);
      debug.println(')');
    }

Plus some other changes I plan to try the stack debug later, which i have not finished adapting

Do you plan port it to esp?

ramondcosta avatar Nov 10 '16 20:11 ramondcosta

@ramondcosta Thanks for interest in this Arduino library. Currently I have no plans of supporting esp. This is mainly due to the simple fact that I do not have any project on that board. I would think that most of the code is straight forward but there are details such as the heap and stack handling that are very different.

mikaelpatel avatar Nov 10 '16 21:11 mikaelpatel

Ok, i understand. Yeah the stack and heap are really different. Anyway it still going to be usefull for me.

I think will try to port to esp anyway, cause i was planning to map some of these differences between the boards

Thanks.

ramondcosta avatar Nov 14 '16 15:11 ramondcosta