You are reading a single comment by @fanoush and its replies. Click here to read the full conversation.
  • Hi. Thanks for the quick response, @Gordon!

    Sorry for the unclear question, as I was too hasty and misinterpret what we actually want.

    For our educational platform project we're planning to build our own board based on STM32F405 or STM32F407 chip (most likely 407). If I understand correctly, Espruino does support these chips.
    For our memory problem we're going to use QSPI PSRAM, which Esproino in general can support, according to STM32L496G Discovery Board and its supperior number of vars.
    So, can a firmware version for STM32F407 work with a custom board with this chip and can QSPI PSRAM be accessed?

    Thanks again and sorry for inconvenience of my first post.

  • QSPI PSRAM, which Esproino in general can support, according to STM32L496G Discovery Board and its supperior number of vars.

    not sure what you mean by this but here
    https://github.com/espruino/Espruino/blob/master/boards/STM32L496GDISCOVERY.py#L26
    the number of variables (19200) is derived from the amount of SRAM in the chip (320K), no PSRAM used

    If the chip can map PSRAM in hardware into the address space just as ordinary RAM then yes it can be used, however the support for PSRAM for STM32 is not there in Espruino. I think PSRAM somehow works only for ESP32 platform because the SDK does it for you automatically.

    EDIT:
    Anyway, can you describe what data you plan to keep in PSRAM? Keeping all javascript variables in PSRAM will make everything slower because PSRAM is slow so maybe this is not good solution. Also maybe there will be issues with accessing such memory from interrupts. So maybe using PSRAM as some sort of storage with files or blocks and keeping javascript variables limited to internal SRAM would make better sense.

About

Avatar for fanoush @fanoush started