bpmct
05/25/2025, 12:26 AMdefines
can be passed on `jag run`: https://github.com/toitlang/jaguar?tab=readme-ov-file#defines
- Development (jaguar):`assets` (file) is passed on jag watch
for development (I guess I need to encode this as tison (https://libs.toit.io/encoding/tison/library-summary)
- Production (Artemis)`arguments` are passed in the spec: https://toit.io/schemas/artemis/pod-specification/v1.json
Am I understanding this right? It feels a bit fragmented so I was wondering if you had tips, in particular, on how this can easily be done with local development (jag watch
) without hardcoding stuff.~~boss~~
05/26/2025, 11:41 AMaddshore
05/28/2025, 1:06 PMfoo.gen.toit
However seemingly can not be imported, due to the .
Next I tried calling them all goo_gen.toit
However this is also annoying as It leads to needing to import foo_gen
which also would be nice to avoid.
Would it be possible to make everything after a .
in a file actually be determined to be part of the file extension? And then also make toit allow / look for .*.toit
and .toit
?addshore
05/30/2025, 10:11 AMcrockedile
05/30/2025, 12:55 PMbpmct
05/31/2025, 6:01 PMlogging
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.
Would really appreciate some general advice hereFernan
06/01/2025, 7:09 PM~~boss~~
06/08/2025, 5:28 AMaddshore
06/10/2025, 11:31 AMjag monitor
using dev boards (USB pins on ESPs) I have ot hit it multiple times, it seems to hang, I see ^C^C^C^C
in the termainl baecause of this and eventaully it exits.
While using uart converters external to deav boards hitting ctrl + c normally instantly exits (desried behaviour)
This is on WSL, and basically i have the issue with /dev/ttyACM*
devices, but all /dev/ttyUSB
devices are fine.
Any thoughts on what might be up? (Otherwise i might try debugging this myself with a build of jag etc)addshore
06/10/2025, 1:50 PMaddshore
06/11/2025, 3:45 PM-D jag.wifi=false
while using the run
command.
And just gave it a go while installing a container, however on container restart jag and wifi came back up.
Is there a way to either 1) get a container to tell jag to turn off the wifi?
or 2) have something like -D jag.wifi=false
be more persistent accross container restarts? while keeping jaguar running?addshore
06/12/2025, 10:49 AMsystem:
Kind: snapshot
Id: 2ee8a16f-3df6-a81f-7174-7347ab9a8108
Size: 165638
Flags:
- trigger=boot
- critical
Is removing this essentially the same as building my own fw image without jaguar?
(I'm guessing not, as I removed this, and also added my own container, flashed a device and seemingly it doesnt start up)kaxori
06/12/2025, 7:27 PMkaxori
06/13/2025, 4:46 PMaddshore
06/16/2025, 2:12 PMRouting problem
and tries to reconnect? fails? and backs off?
Then I see my container print udptocsv
after which it tries to emit this over UDP
Then there are logs to do with wifi reconnecting? After which jaguar seems to be back up?
However the container is then stuck?
I guess it is stuck here
socket.send
udp.Datagram row.to-byte-array address
addshore
06/30/2025, 9:32 AM[uart] warning: event queue is full
[uart] warning: event queue is full
[uart] warning: event queue is full
[uart] warning: event queue is full
[uart] warning: event queue is full
[uart] warning: event queue is full
[uart] warning: event queue is full
[uart] warning: event queue is full
[uart] warning: event queue is full
[uart] warning: event queue is full
[uart] warning: event queue is full
Seems to do that until reaching
Potential deadlock detected:
Process: 0
Program: 84bd67cd-f6e7-5359-850b-5709092d5c01
fatal: Potential dead-lock
abort() was called at PC 0x4202f841 on core 0
Or sometimes it breaks out of the loop and works?
Any pointers for debugging / whats going on?RaspPi Parts
07/15/2025, 4:04 PM~~boss~~
07/20/2025, 10:53 AMaddshore
07/30/2025, 3:53 PMwahyudi124
07/31/2025, 5:48 AMaddshore
07/31/2025, 9:00 AMkaxori
08/01/2025, 7:54 PMwahyudi124
08/03/2025, 4:21 AMz3ugma
08/03/2025, 4:34 AMkaxori
08/03/2025, 10:17 AMrunning Jaguar failed due to 'DEADLINE_EXCEEDED'
Did anyone have similar experiences and a solution ?RaspPi Parts
08/04/2025, 3:23 PMpkarsy
08/04/2025, 6:15 PMz3ugma
08/06/2025, 6:26 PMHeap report @ out of memory in primitive 8:2:
┌───────────┬──────────┬─────────────────────────────────────────────────────┐
│ Bytes │ Count │ Type │
├───────────┼──────────┼─────────────────────────────────────────────────────┤
│ 5648 │ 513 │ heap overhead │
│ 173528 │ 467 │ untagged │
└───────────┴──────────┴─────────────────────────────────────────────────────┘
Total: 179176 bytes in 467 allocations (53%), largest free 116k, total free 152k
******************************************************************************
MALLOC_FAILED error.
0: S6d05a1.draw-test-pattern s6d05a1.toit:560:20
1: main.<block> display_new.toit:43:12
2: SmallInteger_.repeat <sdk>/core/numbers.toit:1288:3
3: main display_new.toit:42:5
******************************************************************************
I can reliably make this memory allocation fail by commenting and uncommenting a line in this code:
main:
print "initializing display..."
driver := S6d05a1 bus cs 320 320 --reset=reset
5.repeat:
driver.draw-test-pattern
sleep --ms=600
addshore
08/14/2025, 2:32 PMsh
mkdir my-x-project
cd my-x-project
jag pkg init
jag pkg install github.com/x-io/toit-x
then
sh
cp ./.packages/github.com/x-io/toit-x/v0.1.1/examples/eink.toit ./main.toit
But I dont want to hardcode v0.1.1
Is there already a command I am missing that might say what is installed and being used by the project?