Use this forum to chat about hardware specific topics for the ESP8266 (peripherals, memory, clocks, JTAG, programming)

User avatar
By Phil colbert
#52833 Hi

I have a GPS that I am feeding into the ESP.

If I attach a FDTI connector to the RX input it works fine, the GPS wont.

However if I set up Softserial on another Pin, then softserial works with the FTDI AND the GPS, apart from it has data corruption.

So the hardware UART doesnt work and the soft UART has corruption, so I am kind of stuck

Totally baffled me.... any ideas out there ?

Thanks
User avatar
By Phil colbert
#52849 Thanks for reply, found the solution however strange and bizarre, but might help someone sometime!

The code is about 25,000 lines long, so difficult to find the problem.

However the solution was just to remove this line :-

free_mem = system_get_free_heap_size();

All corruption to the data was gone.

Weird but that worked for me ! :)