Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    DrBomb
    @DrBomb
    sorry, the app size
    Then you will need to reduce the FS partition size
    Liviu
    @nliviu
    Just flashed a device with APP_SLOT_SIZE: 0x1B0000 and default fs size.
    Sekilsgs2
    @Sekilsgs2
    hm.. i'm cant do this
    Liviu
    @nliviu
    [Feb  8 16:35:53.497] I (64) boot: Partition Table:
    [Feb  8 16:35:53.500] I (68) boot: ## Label            Usage          Type ST Offset   Length
    [Feb  8 16:35:53.505] I (75) boot:  0 nvs              WiFi data        01 02 00009000 00004000 00000000
    [Feb  8 16:35:53.514] I (83) boot:  1 otadata          OTA data         01 00 0000d000 00002000 00000000
    [Feb  8 16:35:53.522] I (91) boot:  2 app_0            OTA app          00 10 00010000 001b0000 00000000
    [Feb  8 16:35:53.530] I (100) boot:  3 fs_0             FS               01 82 001c0000 00040000 00000000
    [Feb  8 16:35:53.539] I (108) boot:  4 app_1            OTA app          00 11 00200000 001b0000 00000000
    [Feb  8 16:35:53.547] I (116) boot:  5 fs_1             FS               01 82 003b0000 00040000 00000000
    [Feb  8 16:35:53.555] I (125) boot: End of partition table
    How did you define the APP_SLOT_SIZE?
    Sekilsgs2
    @Sekilsgs2
    ok. i'm try this size
    in makefile locally
    Liviu
    @nliviu
    What makefile?
    Sekilsgs2
    @Sekilsgs2
    mongoose-os/platforms/esp32/Makefile.build
    DrBomb
    @DrBomb
    So you're not building with the mos tool?
    Sekilsgs2
    @Sekilsgs2
    with mos tool - on local machine with local docker
    Liviu
    @nliviu
    It won't work like this.
    Either add --build-var APP_SLOT_SIZE=0x1B0000 to the command line, or add in mos.yml
    build_vars:
      APP_SLOT_SIZE: 0x1B0000   # 1536KB+192KB
    Sekilsgs2
    @Sekilsgs2
    hm. ok i'm trying now
    DrBomb
    @DrBomb
    :point_up_2:
    Sekilsgs2
    @Sekilsgs2
    thank this is working.. i'm think because this var need change in different places...
    Sekilsgs2
    @Sekilsgs2
    Guys need some help about mjs - from js i'm can using all c functions compiled to elf or? i'm try using some functions from mgos_barometer.h but getting error a - wrong ffi signature..
    _crt_i2c1: ffi('void* mgos_barometer_create_i2c(void*, int, int)'),
    DrBomb
    @DrBomb
    And what is the signature of the function?
    Sekilsgs2
    @Sekilsgs2
    struct mgos_barometer *mgos_barometer_create_i2c(struct mgos_i2c *i2c, uint8_t i2caddr, enum mgos_barometer_type type)
    Sekilsgs2
    @Sekilsgs2
    after i'm put new folder mjs_fs and put api_baro.js into this folder in baromter lib and rebuild fw - this error go out - this mean that not all functions i'm can using in mjs - only that exported to ffi in compiled time and only if mjs_fs folder present...
    DrBomb
    @DrBomb
    Yes, you cannot ffi functions willy nilly. The ffi lookup table is made on compile time
    gadget-man
    @gadget-man
    @rojer did you get a chance to look at the R4 Heap crash on boot?
    https://t2fi.com/
    @mbresciani
    I know that the rpc-service-gattc is on hold but is there any place that I can get the esp32_bt_gattc.h file so I can learn a bit more about it?
    Mark
    @markterrill
    .... on hold ?
    I use it ...
    it's in the bt common library
    https://t2fi.com/
    @mbresciani
    It doesn't compile any more and is not a priority.
    Mark
    @markterrill
    that's a surprise to me.
    oh my bad. yes, doesn't work
    https://t2fi.com/
    @mbresciani
    Yes, I read that someplace. Thanks for the link I should have checked there.
    Mark
    @markterrill
    sorry, got thoroughly confused with RPC via gatt
    ie server
    you're talking about gattc client
    https://t2fi.com/
    @mbresciani
    Yes
    Jan
    @janko.valiska:matrix.org
    [m]
    Hi, the mg_connect_opts.ssl_cert is the path to the client certificate file, or is the actual content of this client certificate file?
    Jan
    @janko.valiska:matrix.org
    [m]
    Guys, what could be problem, if we cannot connect to https server? It gives us this error:
    [Feb 11 11:50:20.902] mongoose.c:4912 0x3fff378c received handshake message [Feb 11 11:50:20.955] mongoose.c:4912 0x3fff378c mbedtls_ssl_flush_output() returned -78 (-0x004e) [Feb 11 11:50:20.955] mongoose.c:4912 0x3fff378c mbedtls_ssl_write_record() returned -78 (-0x004e) [Feb 11 11:50:20.955] mongoose.c:4912 0x3fff378c mbedtls_ssl_send_alert_message() returned -78 (-0x004e)
    Liviu
    @nliviu
    #define MBEDTLS_ERR_NET_SEND_FAILED                       -0x004E  /**< Sending information through the socket failed. */
    Jan
    @janko.valiska:matrix.org
    [m]
    @nliviu: it's too much general error code... maybe i should enable some embedtls debugging to see more logs... is there option to debug SSL things?
    Liviu
    @nliviu
    Try to increase debug.mbedtls_level
    compwiz21
    @compwiz21
    Can someone please please help me get started with Mongoose-OS? I'm trying to install it, but i'm getting a bunch of errors
    image.png
    compwiz21
    @compwiz21
    any ideas?
    Sekilsgs2
    @Sekilsgs2
    cc3220 i2c wont start automatically - need manual run mgos_i2c_create - why this not running automatically? maybe i2c cfg enabled after init all mgos deps?
    Sergio R. Caprile
    @scaprile
    @compwiz21 Have you been to the support forum ? Have you read the tutorials ? You are not installing, you are cloning a repo and you seem to have a wrong URL for it. Try asking here
    Francesco
    @fcolasante_gitlab
    Anyone have some error like this:
    /media/frank/Dati/development/kairos/kairos-firmware/kairos_pro/deps/http-server/src/mgos_http_server.c:169:3: error: implicit declaration of function 'mg_file_upload_handler'; did you mean 'upload_handler'? [-Werror=implicit-function-declaration]
       mg_file_upload_handler(c, ev, p, upload_fname, user_data);
       ^~~~~~~~~~~~~~~~~~~~~~
       upload_handler
    /media/frank/Dati/development/kairos/kairos-firmware/kairos_pro/deps/http-server/src/mgos_http_server.c: In function 'mgos_http_ev':
    /media/frank/Dati/development/kairos/kairos-firmware/kairos_pro/deps/http-server/src/mgos_http_server.c:199:10: error: 'MG_EV_HTTP_MULTIPART_REQUEST' undeclared (first use in this function); did you mean 'MG_EV_HTTP_REQUEST'?
         case MG_EV_HTTP_MULTIPART_REQUEST: {
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
              MG_EV_HTTP_REQUEST
    /media/frank/Dati/development/kairos/kairos-firmware/kairos_pro/deps/http-server/src/mgos_http_server.c:199:10: note: each undeclared identifier is reported only once for each function it appears in
    cc1: all warnings being treated as errors
    /mongoose-os/platforms/esp32/src/esp32_src.mk:102: recipe for target 'mgos_http_server.c.o' failed
    make[1]: *** [mgos_http_server.c.o] Error 1
    make[1]: *** Waiting for unfinished jobs....
    make[1]: Leaving directory '/media/frank/Dati/development/kairos/kairos-firmware/kairos_pro/build/objs/mosapp'
    /opt/Espressif/esp-idf/make/project.mk:635: recipe for target 'component-mosapp-build' failed
    make: *** [component-mosapp-build] Error 2
    Greg Oleksiak
    @goleksiak
    Tried mos 2.19.1 but looks like it still has same bugs as before:
    In file included from /Users/gregoleksiak/eatabit/repos/eatabit-firmware-v6/deps/freertos/include/mgos_freertos.h:26,
                     from /Users/gregoleksiak/eatabit/repos/eatabit-firmware-v6/deps/freertos/src/mgos_freertos.c:18:
    /Users/gregoleksiak/eatabit/repos/eatabit-firmware-v6/deps/mongoose/include/mongoose.h:1919:31: error: 'struct tm' declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
     double cs_timegm(const struct tm *tm);
                                   ^~
    In file included from /Users/gregoleksiak/eatabit/repos/eatabit-firmware-v6/deps/freertos/include/mgos_freertos.h:26,
                     from /Users/gregoleksiak/eatabit/repos/eatabit-firmware-v6/deps/freertos/src/mgos_freertos_core_dump.c:18:
    /Users/gregoleksiak/eatabit/repos/eatabit-firmware-v6/deps/mongoose/include/mongoose.h:1919:31: error: 'struct tm' declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
     double cs_timegm(const struct tm *tm);
                                   ^~
    cc1: all warnings being treated as errors
    Sekilsgs2
    @Sekilsgs2

    @compwiz21 Have you been to the support forum ? Have you read the tutorials ? You are not installing, you are cloning a repo and you seem to have a wrong URL for it. Try asking here

    You are shure? I'm current test 2.19.1 mos tool for bionic ubuntu and have this error too! I'm not compile mos - i'm install with apt. And with old mos 2.19 compilled from sources - not have this error!

    root@DESKTOP-5I223JS:~/mo19.1# mos clone https://github.com/mongoose-os-apps/demo-js app19
    Error: app19: Local copy in "demo-js" does not exist and fetching is not allowed
    /build/mos-HUa0jy/mos-2.19.1+9bf406d~bionic0/cli/build/swmodule.go:262:
    /build/mos-HUa0jy/mos-2.19.1+9bf406d~bionic0/cli/main.go:198: clone failed