Copyright © https://mongoose-os.com

Mongoose OS Forum

frame
ATTENTION! This forum has moved to:

https://community.mongoose-os.com

Do not post any new messages.

Issues with latest master build

LexLex
edited January 2016 in Mongoose OS
Hi.

I have some comments, questions and issues with latest build from github sources (commit fc97281) for esp8266 .

  1. When building I got error in "smart.js/smartjs/platforms/esp8266/user/esp_heap_trace.c" line 6. There is no "internal.h" file in "v7/src". I have commented this line and build successfully.
  2. I know nearly nothing about docker which is used for building. Just installed docker and build sources. But I believe that it will be better if build output folders and files will have current user permissions. Right now they have ROOT permissions (I think this is due docker demon).
  3. Next code is executed successfully on esp8266, but I cannot figure out how to get HTTP Status value from r callback argument:
        Http.get('https://google.com/', function(r){ print(r); }).end()
  4. Next code crashes firmware:
        setTimeout(function(){ Http.get('https://google.com/', function(r){ print(r); }).end(); }, 1000)
    How can I fix it? Log:

    setTimeout(function() {Http.get('http://google.com/', function(r){print(r);}).end();}, 1000)

    undefined

    smartjs 21952/716$ set_errno spiffs error: -10002


    Trap 9: pc=0x4027a7da va=0x1

    Dumping core to debug output

    --- BEGIN CORE DUMP ---

    {"arch": "ESP8266","REGS": {"addr": 1073652020, "data": "UbciQND6/z8BAAAAgCUAAAAAAAAYAAAAEBsAAAAAAAAAAAAAwAIAAMD9/z8DAAAAmFj/PwAA//9wB/8/jFj/P9qnJ0AYAAAAAAAAAAAAAAAAAAAAMAAAAA=="},"DRAM": {"addr": 1073643520, "data": "AAAAAAAAAAAAAAAAAQEBAQABAAABAAAARR4AADA5vLF4AAAA/wAAABOEJ0AAAAAAuYMnQAQAAADFgydADAAAANGDJ0AQAAAA4oMnQBQAAAD7gydAHAAAAAKEJ0AgAAAAD4QnQCQAAAAhhCdAKAAAAC+EJ0AsAAAA

  5. How can I use CORE DUMP output on crash? Maybe to get stack trace or something?


Thank you for you work! Smart.js is very interesting firmware.

Regards,
Alexey.

Comments

  • Hello, Alexey.

    When building I got error in "smart.js/smartjs/platforms/esp8266/user/esp_heap_trace.c" line 6. There is no "internal.h" file in "v7/src". I have commented this line and build successfully.


    Are you talking about latest master of this repo: https://github.com/cesanta/smart.js, right?
    The problem with `internal.h` was fixed, and a bunch of bugs were fixed due preparation to beta 2 release.
    Could you git pull latest changes and try again?

    I know nearly nothing about docker which is used for building. Just installed docker and build sources. But I believe that it will be better if build output folders and files will have current user permissions. Right now they have ROOT permissions (I think this is due docker demon).

    Yes, that is because of docker demon. But output FW permissions allow to flash FW, so there aren't reasons to change them. Do you have problems with flashing because of permissions?
    What OS do you use? 

    -- Alex
Sign In or Register to comment.