These are chat archives for SmingHub/Sming

4th
Feb 2017
sle118
@sle118
Feb 04 2017 18:48
@all/wondering if anyone has used gdb recently. I'm trying to debug some code, but when trying to use "GDB_IRAM_ATTR", I get a compile error "causes a section type conflict with void String::StringIfHelper() const"
laurentppol
@laurentppol
Feb 04 2017 21:25
@/all how to upgrade SDK? just change link in /opt/esp-open-sdk then make clean;make in Sming? Or have I to follow build instructions for esp-open-sdk from beginning?
I use 1.4.0, want to try 1.5.4
vjacob
@vjacob
Feb 04 2017 21:27
@slaff , I'm testing the latest develop branch. For my project I'm using the alternate UART pins to communicate with an external device. I've noticed that the HardwareSerial class was heavily refactored. The TX outwards from the ESP8266 seems to work, but I get garbage characters on the RX side, and I can confirm the external devices is sending valid data to the ESP. Short snippet:
/* Swap to alternate UART (GPIO13 / GPIO15) */
/* Old code, before refactor */
//PIN_FUNC_SELECT(PERIPHS_IO_MUX_MTCK_U, FUNC_U0CTS);        //CONFIG MTCK PIN FUNC TO U0CTS//gpio13
//PIN_FUNC_SELECT(PERIPHS_IO_MUX_MTDO_U, FUNC_U0RTS);        //CONFIG MTDO PIN FUNC TO U0RTS//gpio15
//SET_PERI_REG_MASK(0x3ff00028, BIT2);                        //SWAP PIN : U0TXD<==>U0RTS(MTDO) , U0RXD<==>U0CTS(MTCK)

/* New code, not working */
Serial.swap(15);
//Serial.swap();
laurentppol
@laurentppol
Feb 04 2017 21:27
current Xtensa GCC is 4.8.2, latest seen on esp-open-sdk is 4.8.5