Discuss here different C compiler set ups, and compiling executables for the ESP8266

User avatar
By ToSa
#20470 Are all examples expected to work with the new SDK? Whatever I try I can't get any of the CPP examples to work. They either output nothing (but the boot msg) or they output rubbish at full speed.
This could be caused by some mis-configuration on my end but before I spend more time on this I'd like to understand if anybody else is able to compile these with the latest dev kit based on SDK 1.1.1.
User avatar
By ToSa
#20689
ToSa wrote:Are all examples expected to work with the new SDK? Whatever I try I can't get any of the CPP examples to work. They either output nothing (but the boot msg) or they output rubbish at full speed.
This could be caused by some mis-configuration on my end but before I spend more time on this I'd like to understand if anybody else is able to compile these with the latest dev kit based on SDK 1.1.1.


Answering my own question - the CPP examples won't work without adjusting the linker scripts. Merging the CPP linker scripts (in C:\Espressiv\extra\ld) and the new linker script provided with 1.1.1 (or 1.1.2) did the trick.
I did a couple of additional changes to the linker scripts so I don't have one ready for everybody to share but it's a rather easy merge - if I remember correctly moving two lines over was sufficient.