Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    DrBomb
    @DrBomb
    you can use the esptool lib on python
    I think you can do it on mos too
    But a flash usually results on overwriting your flash, so it shouldn't really be needed under normal circumstances
    Sekilsgs2
    @Sekilsgs2
    but i'm cant flashing fw with new size of app. and after erasing full flash..
    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