Difficulty building for esp8266

Posted on
  • Hi All,

    Brand new here and pretty much brand new to Espruino and esp8266.

    Tonight I decided to set up the esp8266 tool chain and compile the Espruino esp8266 code. I ran into one snag and was hoping if some one could let me know if I missed something along the way. When doing the compile, the linking errors out because it cannot find the pwm functions (pwm_init, pwm_start, etc). I was able to get past the error by commenting out the code in the jshPinAnalogOutput function of jshardware.c for the esp8266.

    I have the latest expressif sdk version 1.4.0 with the latest build I saw on their website. I know c so-so, but not nearly as familiar with all the compiler and linker commands and options. I was thinking the issue might be in their linker script???

    Does anybody have any suggestions as to what I might have set up incorrectly?

    Let me know if there's any additional info I can provide that might help.

    Thanks,

    Les

  • Add -lpwm to the following line in the Makefile around line 1340:

    LIBS += -lc -lgcc -lhal -lphy -lpp -lnet80211 -llwip_536 -lwpa -lmain -lpwm
    

    As soon as Gordon merges my PR this will be fixed.

  • Yes, sorry about that, I'll do it today. I wasn't at the PC much this weekend :)

  • Thanks!

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

Difficulty building for esp8266

Posted by Avatar for Les @Les

Actions