![]() |
Forum Index : Microcontroller and PC projects : Error : Not enough Heap memory
Author | Message | ||||
Taipan Newbie ![]() Joined: 02/01/2025 Location: AustraliaPosts: 8 |
Hi, I have just installed the latest WebMite firmware after running Clear Flash and when I upload a 56 line Basic code, I see this error: ![]() I have no idea what it means and it does not seem to affect my simple code. Sould I continue to ignore that error, or is there something I should do to fix it? Thanks in advance ... ![]() |
||||
disco4now![]() Guru ![]() Joined: 18/12/2014 Location: AustraliaPosts: 1000 |
I can confirm this.It will happen on WebMites that have OPTION WIFI configured and are successfully connected to a router. It is since the update to AUTOSAVE that fixed an out of memory error if CNTRL+C was used to abort an AUTOSAVE. If OPTION WIFI is not set or fails to connect you won't get the error. If you see the error the WIFI connection may not function correctly as its buffers have been released by AUTOSAVE, but not restored, however a CPU RESTART or reboot will restore them. WebMite MMBasic RP2040 Edition V6.00.01 Copyright 2011-2024 Geoff Graham Copyright 2016-2024 Peter Mather PICO2040 connecting to WiFi... Connected 10.0.0.34 option list WebMite MMBasic RP2040 Edition V6.00.01 OPTION WIFI Telstra9EE1DF, **********, PICO2040 > > autosave Print "test" Saved 17 bytes [1] Print "test" Error : Not enough Heap memory Latest F4 Latest H7 FotS |
||||
Taipan Newbie ![]() Joined: 02/01/2025 Location: AustraliaPosts: 8 |
OK, thanks for the detailed reply @disco4now. I have OPTION WIFI set and so far, it appears to be working as intended ... |
||||
TassyJim![]() Guru ![]() Joined: 07/08/2011 Location: AustraliaPosts: 6269 |
I have found that Not enough heap memory is not a big issue. On the RP2040 webmites a bigger problem is > cpu restart 15:32:54 Port: COM6 removed Disconnected 15:32:55 Port: COM6 inserted Connected to COM6 at 115200 PICOE6614103E72 connecting to WiFi... C[CYW43] do_ioctl(2, 263, 16): timeout onnected 10.1.0.226 Starting TCP server at 10.1.0.226 on port 80 > > [CYW43] do_ioctl(2, 263, 16): timeout RUN Started ntp address 119.18.6.37 got ntp response: 02/01/2025 15:43:11 To get past the connecting to WiFi... line, I have to "hit any key" Then the "[CYW43] do_ioctl(2, 263, 16): timeout" appears and the restart continues. It only happens some of the time and only with the RP2040. The RP2350 chips behave properly. This means that an external hardware watchdog is needed. I am part way through some testing to see if there is a reliably way to create the error. It will take a few days. Jim VK7JH MMedit |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10242 |
Thanks for the report on autosave - will fix |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10242 |
Update binaries for the two webmite variants - will ask Geoff to update the download WebMiteV6.00.01.zip |
||||
Geoffg![]() Guru ![]() Joined: 06/06/2011 Location: AustraliaPosts: 3285 |
The download on my website has been updated. Geoff Geoff Graham - http://geoffg.net |
||||
ville56 Senior Member ![]() Joined: 08/06/2022 Location: AustriaPosts: 220 |
for me I found out the problem occurs only if the cpuspeed is set somewhat above 165 MHz. E.g. 133 MHz runs without any glicht at startup. It seems also a bit dependent on the individual cpu board. But with cpuspeed 252 Mhz it is reliable reproducible here. A second effect is also the sporadic occurance of this error when the Webmit is idleing on the commandline. Heartbeat stops blinking and one has to press enter to resume from that state. The stopped blinking may also point to some problems with the CYW43 as AFAIK the heartbeat led is driven by the WLAN chip. This seems to be in the same way connected to cpuspeed. Gerald Gerald 73 de OE1HGA, Gerald |
||||
TassyJim![]() Guru ![]() Joined: 07/08/2011 Location: AustraliaPosts: 6269 |
@Gerald, I also found that different chips/modules are better than others. I run at 250MHz so I will try at 133 and see what happens over a day or two. Jim VK7JH MMedit |
||||
ville56 Senior Member ![]() Joined: 08/06/2022 Location: AustriaPosts: 220 |
Jim, i can only judge the genuine parts as the Pimoronis are still on their way to me. Gerald 73 de OE1HGA, Gerald |
||||
TassyJim![]() Guru ![]() Joined: 07/08/2011 Location: AustraliaPosts: 6269 |
My picoW are the genuine thing. So far they have behaved well at 133MHz The picoW v2 seem to handle higher speeds without worry. Jim VK7JH MMedit |
||||
ville56 Senior Member ![]() Joined: 08/06/2022 Location: AustriaPosts: 220 |
Just flashed the revised images from 2025-01-02 for the Webmites, see This seems to remedy the CYW43 messages/problems. Just have a Webmite RP2040 running with 252 MHz without a hitch. No complaints on cpu restart anymore .... Will see how long it'll run fine. N.b.: not solved, problem persists. So seems to be a hardware issue .... overclocking is not always working cleanly, but that's not new ![]() Gerald Edited 2025-01-03 22:49 by ville56 73 de OE1HGA, Gerald |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |