Is uno r4 wifi use of freememory function

#include <FreeMemory.h>

int freeRam = FreeMemory();
Serial.println("Usage RAM: ");
Serial.print(freeRam);
Serial.print(" byte");

C:\Users\brsbn\Fox_BME280_UNOR4\Fox_BME280_UNOR4.ino:12:10: fatal error: FreeMemory.h: No such file or directory
compilation terminated.

exit status 1

Compilation error: FreeMemory.h: No such file or directory

Hello

Take a view here to gain the knowledge:

hth

C:\Users\brsbn\AppData\Local\Temp\arduino\sketches\A22F1454442F9EA1405EA80E56927F48\libraries\MemoryFree\MemoryFree.cpp.o: In function freeListSize()': C:\Users\brsbn\OneDrive\Arduino\libraries\MemoryFree\src/MemoryFree.cpp:34: undefined reference to __flp'
C:\Users\brsbn\AppData\Local\Temp\arduino\sketches\A22F1454442F9EA1405EA80E56927F48\libraries\MemoryFree\MemoryFree.cpp.o: In function freeMemory': C:\Users\brsbn\OneDrive\Arduino\libraries\MemoryFree\src/MemoryFree.cpp:43: undefined reference to __brkval'
C:\Users\brsbn\OneDrive\Arduino\libraries\MemoryFree\src/MemoryFree.cpp:43: undefined reference to `__heap_start'
collect2.exe: error: ld returned 1 exit status

exit status 1

Compilation error: exit status 1

You have to check the availablilty of this libary for the UNO R4 WIFI.

I couldn't find any resources online.

I have not used this one before, but have you tried downloading it from github?

sudar/MemoryFree: An Arduino library, that allows you to keep track of the amount of free memory that is available at runtime. (github.com)

Edit: I see you are trying to use <FreeMemory.h> and not <MemoryFree.h>
Not sure where that one is defined or located.

Yes, I tried this programming, it gives an error like below, probably this library is not compatible with UNO R4 WIFI.

C:\Users\brsbn\AppData\Local\Temp\.arduinoIDE-unsaved202386-5032-n6csgb.uua5c\MemoryFree\MemoryFree.ino: In function 'void loop()':
C:\Users\brsbn\AppData\Local\Temp\.arduinoIDE-unsaved202386-5032-n6csgb.uua5c\MemoryFree\MemoryFree.ino:45:20: error: 'getFreeMemory' was not declared in this scope
     Serial.println(getFreeMemory());
                    ^~~~~~~~~~~~~
C:\Users\brsbn\AppData\Local\Temp\.arduinoIDE-unsaved202386-5032-n6csgb.uua5c\MemoryFree\MemoryFree.ino:45:20: note: suggested alternative: 'freeMemory'
     Serial.println(getFreeMemory());
                    ^~~~~~~~~~~~~
                    freeMemory
Multiple libraries were found for "MemoryFree.h"
  Used: C:\Users\brsbn\OneDrive\Arduino\libraries\MemoryFree
  Not used: C:\Users\brsbn\OneDrive\Arduino\libraries\MemoryFree-master
exit status 1

Compilation error: 'getFreeMemory' was not declared in this scope

@brsbnkc: try THIS library ... please, note, the example must be corrected to wait Serial availability before printing.

Guglielmo

C:\Users\brsbn\AppData\Local\Temp\arduino\sketches\953387CDE389438B7E15977F899A570A\libraries\MemoryFree\MemoryFree.cpp.o: In function `freeListSize()':
C:\Users\brsbn\OneDrive\Arduino\libraries\MemoryFree\src/MemoryFree.cpp:34: undefined reference to `__flp'
C:\Users\brsbn\AppData\Local\Temp\arduino\sketches\953387CDE389438B7E15977F899A570A\libraries\MemoryFree\MemoryFree.cpp.o: In function `freeMemory':
C:\Users\brsbn\OneDrive\Arduino\libraries\MemoryFree\src/MemoryFree.cpp:43: undefined reference to `__brkval'
C:\Users\brsbn\OneDrive\Arduino\libraries\MemoryFree\src/MemoryFree.cpp:43: undefined reference to `__heap_start'
collect2.exe: error: ld returned 1 exit status
Multiple libraries were found for "MemoryFree.h"
  Used: C:\Users\brsbn\OneDriveArduino\libraries\MemoryFree
  Not used: C:\Users\brsbn\Arduino\libraries\Arduino-MemoryFree-master
  Not used: C:\Users\brsbn\OneDrive\Arduino\libraries\MemoryFree-master
exit status 1

Compilation error: exit status 1

Remove the OLD version that was only for AVR MCU.

I tried the example and, added the serial availability check, it worked on the UNO R4 Minima, so ...

Guglielmo

it worked thanks a lot..