Arubinu
04/28/2025, 7:23 PMArubinu
05/01/2025, 1:35 PMcpp
/**
* @fn float ** merci(int*, double**,char*,int)
* @param \b param1
* @param \b param2
* @param \b param3
* @param \b param4
* @brief votre briefing concernant la fonction
* @details les détails de la fonction
* @return ce qu'elle retourne
*/
bpmct
05/03/2025, 10:48 PMbpmct
05/04/2025, 3:29 PMjag flash --port /dev/cu.usbmodem2101
but it otherwise does not show up on jag port
, jag flash
, or jag monitor
.
I am also finding cases where it lets me manually specify the port with jag flash
, but jag monitor
isn't able to pick it up... Any ideas? I'm using an esp32s3 and this version:
➜ toit-zygote git:(fixes) ✗ jag version
Version: v1.50.3
SDK version: v2.0.0-alpha.179
Build date: 2025-04-01T08:09:19Z
bpmct
05/05/2025, 9:34 PMmax-offline
to a very long number. However, I'm not sure if artemis has the built-in capability to query whether something is on or off, besides looking at events
.
Is there a REST API I should be programmatically querying, or should I be sending health to artemis via events, or using an external backend to keep track of devices and health?
Thanks!crockedile
05/09/2025, 4:05 PMaddshore
05/12/2025, 11:25 AM[lb-device] ERROR: Error reading from device: ESP_ERR_INVALID_STATE, got 0 bytes, sleeping for 75ms before retrying
E (306797) i2c.master: I2C transaction unexpected nack detected
E (306797) i2c.master: s_i2c_synchronous_transaction(876): I2C transaction failed
E (306797) i2c.master: i2c_master_transmit_receive(1101): I2C transaction failed
Error: device not configured
The first I2c lines we kind of expect and can recover from (or used to be able to) however this Error: device not configured
is not something we have seen before and are trying to track down.
Any ideas where it might be coming from?addshore
05/14/2025, 1:31 PMaddshore
05/15/2025, 9:58 AMAbedN
05/15/2025, 12:48 PMcrockedile
05/15/2025, 5:30 PMArubinu
05/15/2025, 6:33 PMshell
> toit toitdoc serve
toit : Le terme «toit» n'est pas reconnu comme nom d'applet de commande, fonction, fichier de script ou programme exécutable. Vérifiez l'orthographe du nom, ou si un chemin d'accès existe, vérifiez que le chemin d'accès est correct et
réessayez.
Au caractère Ligne:1 : 1
+ toit toitdoc serve
+ ~~~~
+ CategoryInfo : ObjectNotFound: (toit:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Did I forget something?
https://cdn.discordapp.com/attachments/1372642971060797482/1372642971312197814/WinGet-Toit.Jaguar.1.51.0-2025-05-15-20-22-46.680.log?ex=682784e2&is=68263362&hm=fb70231096ea85fe435661fe08ae336c143b1c546accf95ef2d4d7c656ff01fa&addshore
05/19/2025, 9:11 AMPotential deadlock detected:
Process: 3
Program: a4ae897d-01f6-7c9d-fc35-fbe22fd3660d
BCI: 0x3365
Primitive: 18:1
fatal: Potential dead-lock
https://cdn.discordapp.com/attachments/1373951179188342874/1373951179419156550/message.txt?ex=682c473f&is=682af5bf&hm=4126efd35a96988791223e69d72badd507af655b8f6c0c2d239e846e9080b41e&
https://cdn.discordapp.com/attachments/1373951179188342874/1373951179910025277/message.txt?ex=682c4740&is=682af5c0&hm=09bb0f07bde59b39883515487541aedabc68906b4aeaa6471797de2f1f7f790d&
https://cdn.discordapp.com/attachments/1373951179188342874/1373951180253954089/message.txt?ex=682c4740&is=682af5c0&hm=1178145f4cf401366e9fa615398747cc779d4d855d8a4bc10e57bfa0593a7377&
https://cdn.discordapp.com/attachments/1373951179188342874/1373951180560007199/message.txt?ex=682c4740&is=682af5c0&hm=35edc188db635e1f2d38a666ac320c100688bf88244e9befb5b685a3db6ae0bf&
https://cdn.discordapp.com/attachments/1373951179188342874/1373951180954406952/message.txt?ex=682c4740&is=682af5c0&hm=53ea06e83ed6dc060e7be6192113df69d2eb35caa734f0c4275b73a4bfcd8e19&
https://cdn.discordapp.com/attachments/1373951179188342874/1373951181285752862/message.txt?ex=682c4740&is=682af5c0&hm=3447a006d593da568379f1aeef2dd7e35f9c3ea64d64b17d395f4e3108d54c2b&
https://cdn.discordapp.com/attachments/1373951179188342874/1373951181625360394/message.txt?ex=682c4740&is=682af5c0&hm=5a7b9bda582d22db663200febb313d467b398ad8f2f40242d8668fb69ce734b8&
https://cdn.discordapp.com/attachments/1373951179188342874/1373951181935607899/message.txt?ex=682c4740&is=682af5c0&hm=d3f2ba2a779693172ea7aeacaf8d286da9610b7c5c2794cc197754d903c52d88&Jesse Sivonen
05/21/2025, 11:22 AMjag monitor
of my Groundstudio Carbon S2 development board because it does not appear as serial device when connected to my Linux system via USB cable. The serial device does appear at path /dev/ttyACM0
when manually setting the chip into download mode using hardware buttons. The device stopped appearing after flashing Jaguar to the board using jag flash
. To me, according to what I've read, that could hint that the firmware does not enable the serial USB device class of the board. Shouldn't Jaguar do that automatically? Any help would be appriciated, because debugging program is quite hard without any logging.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?