Avatar for Nicktonious

Nicktonious

Member since Apr 2023 • Last active Jul 2024
  • 5 conversations
  • 14 comments

Most recent activity

    • 4 comments
    • 142 views
  • in Pico / Wifi / Original Espruino
    Avatar for Nicktonious

    I work with different boards and have certain struggles with STM-based (mine is that one with STM32F411).
    I had tried to control WS2812 using digitalPulse, but the experiment has showed that board doesnt perform pulses with duration around (0.3-1us).
    Neopixel works great but I dont like that on stm boards it implicitly setups hardware spi bus. I'm wondering if using low-level timer control allows me to avoid using hardware spi (like RMT module on ESP32 does). U see that I do not consider SPI as a solution. Perhaps I would do so if it was possible to configure soft bus baudrate.

    Anyway, now it's a question not really about ws2812, but how to make digitalPulse work with impulses I need.

  • in Pico / Wifi / Original Espruino
    Avatar for Nicktonious

    Board doesn't send pulses with duration less than 1us. As far as I understand that's a deal with prescaling mcu frequency.
    Found ur post with examples of how to access a timer, but I feel like it's only about PWM, therefore not not what I need. Can anyone answer is it even possible to change min pulse duration?

  • in ESP32
    Avatar for Nicktonious

    I wanted to turn wifi off on my board to check out how much memory it would release. Unfortunatly I trap into infinite trying to boot. Firstly I get:

    >ESP32.enableWifi(false)
    Erasing saved code.
    Done!
    ets Jun  8 2016 00:22:57
    rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
    configsip: 0, SPIWP:0xee
    clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_d­rv:0x00,hd_drv:0x00,wp_drv:0x00
    mode:DIO, clock div:2
    load:0x3fff0018,len:4
    load:0x3fff001c,len:2984
    load:0x40078000,len:10700
    load:0x40080400,len:5236
    entry 0x40080658
    E (562) psram: PSRAM ID read error: 0xffffffff
    E (562) spiram: SPI RAM enabled but initialization failed. Bailing out.
    E (562) spiram: SPI RAM not initialized
    

    Then:

    Guru Meditation Error: Core  0 panic'ed (LoadProhibited). Exception was unhandled.
    Core 0 register dump:
    PC      : 0x401c501c  PS      : 0x00060430  A0      : 0x801b677b  A1      : 0x3ffea1b0
    A2      : 0x3ffd0568  A3      : 0x3ffea1e0  A4      : 0x00000006  A5      : 0x00000001
    A6      : 0x0000002a  A7      : 0x3ffea310  A8      : 0x00000000  A9      : 0x3ffea1b0
    A10     : 0x00000002  A11     : 0x3ffea1b0  A12     : 0xffffffff  A13     : 0x00000000
    A14     : 0x0000000a  A15     : 0x3ffea2f0  SAR     : 0x0000000c  EXCCAUSE: 0x0000001c
    EXCVADDR: 0x00000000  LBEG    : 0x40092652  LEND    : 0x4009265d  LCOUNT  : 0x00000000
    ELF file SHA256: 0000000000000000
    Backtrace: 0x401c5019:0x3ffea1b0 0x401b6778:0x3ffea1e0 0x401c55c5:0x3ffea210 0x401c5756:0x3ffea230 0x401b58f1:0x3ffea270 0x401315b1:0x3ffea290 0x4012f634:0x3ffea2f0 0x4014c621:0x3ffea310 0x4014c8d1:0x3ffea330 0x40121380:0x3ffea390 0x40125e71:0x3ffea3b0 0x40126035:0x3ffea460 0x40133f74:0x3ffea480
    Rebooting...
    ets Jun  8 2016 00:22:57
    rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
    configsip: 0, SPIWP:0xee
    clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_d­rv:0x00,hd_drv:0x00,wp_drv:0x00
    mode:DIO, clock div:2
    load:0x3fff0018,len:4
    load:0x3fff001c,len:2984
    load:0x40078000,len:10700
    load:0x40080400,len:5236
    entry 0x40080658
    E (562) psram: PSRAM ID read error: 0xffffffff
    E (562) spiram: SPI RAM enabled but initialization failed. Bailing out.
    E (562) spiram: SPI RAM not initialized
    

    I know that re-flashing helps to "fix" the board but I need t0 find a way to turn wifi off.
    I will be much thanksful for your advice.

  • in ESP32
    Avatar for Nicktonious

    @JumJum, hello again. I continued to search for answers, even have found ur 5 year old thread on esp32, where you state that:

    • ESP32.enableBLE(false/true) , adds about 1900 additional JsVars
    • ESP32.enableWifi/false/true) , adds about 3800 additional JsVars

    And I see that lots of people are talking about switching BLE off to get more free memory. But even 2500 jsVars is only ~35Kbytes, meanwhile my board advertises to have around more than 500 KBytes of ram. That's just nonsense!

  • in JavaScript
    Avatar for Nicktonious

    Reference page says that "E.getSizeOf() returns the number of variable blocks used by the supplied variable".
    But how should I estimate the real size of entities in my app? For example, E.getSizeOf(Number.MAX_VALUE) returns 1, meanwhile the bocksize is 14 (according to process.memory) and espruino numbers are 64bit. It just makes no sense for me.

    Sorry for asking kind of stupid question, but I really want to figure out how to calculate size of objects as preciese as possible. Thanks for answer in advance!

  • in ESP32
    Avatar for Nicktonious

    Am I correct that exatly support of BLE & Wifi eats most of the memory?

Actions