Hey. I discovered that, while my containers with artemis can be flashed to esp32s3, the application size is too large for esp32c3. Somehow the pod is larger when building for that target.
Anyways, I removed the logging library from my application and that did the trick for now. This may be a bit of a noob question, but do you have any tips for understanding which packages/libraries/etc are larger and consuming space? I read https://medium.com/the-toit-take/get-insight-into-memory-use-on-your-esp32-running-toit-65c62e5b65fd but I'm not sure if/how this applies to packages/libraries my application.
One advantage of running a virtual machine on an ESP32 is that the VM can provide ways to inspect the state of the system. For example, the…
bpmct05/31/2025 06:25 PM
I am trying to use stuff like this, but running into errors
➜ toit git:(main) ✗ toit analyze main.toit
EXCEPTION error.
Error trying to run '/usr/local/lib/toit/bin/toit.compile': No such file or directory
bitphlipphar06/02/2025 05:32 AM
How did you install toit? Or did you build it yourself?
bpmct06/02/2025 12:16 PM
I downloaded the macos binary
bitphlipphar06/02/2025 12:24 PM
Oh. Interesting. Thanks!
bitphlipphar06/02/2025 12:27 PM
Did you download the tar-ball? We typically look for the toit.compile relative to where bin/toit is installed.
floitsch06/02/2025 04:49 PM
I recently changed the location of the lib directory. So maybe it isn't working correctly for macos. For macos there are 4 ways to install it: - build yourself - use homebrew - use the release dmg - use the release tar.gz @bpmct from your reply I'm guessing it was either the DMG or tar.gz. Correct?
OPbpmct
Hey. I discovered that, while my containers with artemis can be flashed to esp32s3, the application size is too large for esp32c3. Somehow the pod is larger when building for that ...
floitsch06/02/2025 04:55 PM
For the application size: envelopes + applications are bundled together into a binary image which is then flashed into the ota partitions.
floitsch06/02/2025 04:56 PM
It has nothing to do with the memory.
floitsch06/02/2025 04:57 PM
That's generally good news, because it's usually easier to find flash-space, compared to RAM.
floitsch06/02/2025 04:57 PM
The first question is: what partition layout do you use?
floitsch06/02/2025 04:57 PM
In your pod-specification file you should have a line for the partitions.
floitsch06/02/2025 04:58 PM
I think Artemis uses OTA-1C0000 by default.(edited)
floitsch06/02/2025 04:58 PM
That said: older versions of Artemis didn't do that, which led to relatively small partitions, making it really hard to install programs.
bitphlipphar06/04/2025 06:38 AM
I just tried the tar.gz variant on my Mac and there we find the toit.compile helper in the correct location.