VS Arduino
Visual Micro >> Usb/Serial/WiFi Debugging >> Cannot build with Monitor free memory
https://www.visualmicro.com/forums/YaBB.pl?num=1644537243

Message started by virtualman on Feb 10th, 2022 at 11:54pm

Title: Cannot build with Monitor free memory
Post by virtualman on Feb 10th, 2022 at 11:54pm
I tried to use the monitor free memory feature with an ESP32 board, with both options, by the debugger option or by the breakpoint, but it does not compile!

Help please!
https://www.visualmicro.com/forums/YaBB.pl?action=downloadfile;file=build_output_015.txt ( 735 KB | 3 Downloads )

Title: Re: Cannot build with Monitor free memory
Post by Simon@Visual Micro on Feb 11th, 2022 at 9:47am
Thanks for the report.

The Free Memory report is currently not compatible with the ESP32 architecture, however we are looking to integrate this in an upcoming release.

We will confirm when this is available, and at present this is best disabled from the vMicro > Debugger menu.

You can obtain the memory values in your sketch using the below functions:

[code]uint32_t getHeapSize(); //total heap size
uint32_t getFreeHeap(); //available heap
uint32_t getMinFreeHeap(); //lowest level of free heap since boot
uint32_t getMaxAllocHeap(); //largest block of heap that can be allocated at once[/code]

Title: Re: Cannot build with Monitor free memory
Post by Simon@Visual Micro on Feb 18th, 2022 at 2:39pm
The ESP32/8266 FreeHeap() has been integrated into the Memory Monitor in the latest build (22.02.18-0) which is available from the top of the below board:
https://www.visualmicro.com/forums/YaBB.pl?board=VS_ARDUINO_EXT_RELEASES

Title: Re: Cannot build with Monitor free memory
Post by Kev on May 14th, 2023 at 7:28am
Hi,

Did you roll back free memory monitoring for the ESP32 ?

The link posted above no longer works and I still get that compile message about the bad heap starting point.

Title: Re: Cannot build with Monitor free memory
Post by Simon@Visual Micro on May 15th, 2023 at 9:36am
Can you attach the build log with the Verbose and Show Build Options enabled (shown at the top of this page) so we can investigate the issue more easily?

VS Arduino » Powered by YaBB 2.6.12!
YaBB Forum Software © 2000-2024. All Rights Reserved.