LOCODUINO

Bibliothèque MemoryUsage

Ou comment gérer les fuites.

. Par : Thierry

Lorsque vous compilez un croquis, l’IDE Arduino, dans sa grande bonté, vous donne quelques chiffres destinés à vous aider à comprendre le résultat de la compilation... On voit ici que 1884 octets de mémoire programme (dite aussi mémoire flash) ont été utilisés sur les 32256 disponibles. Cette partie de la mémoire n’est jamais modifiée par (…)

Retourner à l'article

Vous répondez à :

Bibliothèque MemoryUsage 17 mars 2021 21:19, par Thierry

Hello.

You are right, there was a bug solved in the version 2.21.0. You can get it on github, or ask for an update inside the library manager of the IDE.

Qui êtes-vous ?
Votre message

Pour créer des paragraphes, laissez simplement des lignes vides.

Lien hypertexte

(Si votre message se réfère à un article publié sur le Web, ou à une page fournissant plus d’informations, vous pouvez indiquer ci-après le titre de la page et son adresse.)

4 Messages

  • Bibliothèque MemoryUsage 17 mars 2021 00:30, par Andrew Mowry

    Hello,

    I am trying to solve an Arduino memory usage issue (Atmega 32u4) and I’m using your library. I notice that there’s a big difference between the results of MEMORY_PRINT_FREERAM and FREERAM_PRINT macros. The first one doesn’t seem to correspond to the rest of the results (shown below). Would you be able to tell me why this might be ? Thanks very much for your time !

    Free ram :-175 <<result from MEMORY_PRINT_FREERAM
    Free Ram Size : 1309 <<result from FREERAM_PRINT

    +----------------+ 256 (__data_start)
    + data +
    + variables + size = 562
    +----------------+ 818 (__data_end / __bss_start)
    + bss +
    + variables + size = 665
    +----------------+ 1483 (__bss_end / __heap_start)
    + heap + size = 0
    +----------------+ 1483 (__brkval if not 0, or __heap_start)
    + +
    + +
    + FREE RAM + size = 1308
    + +
    + +
    +----------------+ 2791 (SP)
    + stack + size = 25
    +----------------+ 2815 (RAMEND / __stack)

    Répondre

    • Bibliothèque MemoryUsage 17 mars 2021 21:19, par Thierry

      Hello.

      You are right, there was a bug solved in the version 2.21.0. You can get it on github, or ask for an update inside the library manager of the IDE.

      Répondre

  • Bibliothèque MemoryUsage 21 janvier 2022 22:50, par Sam

    Hi,
    I am working with Arduino Nano 33 BLE. Unfortunately, it looks like the library is not compatible with “mbed_nano” architecture.
    Does it make sense to you ?
    Do you know what would be the alternative for this type of board ?
    Thanks
    Sam

    Répondre

Rubrique Bibliothèques

Les derniers articles

Les articles les plus lus