Homebrew (Wikipedie), správce balíčků pro macOS a od verze 2.0.0 také pro Linux, byl vydán ve verzi 4.5.0. Na stránce Homebrew Formulae lze procházet seznamem balíčků. K dispozici jsou také různé statistiky.
Byl vydán Mozilla Firefox 138.0. Přehled novinek v poznámkách k vydání a poznámkách k vydání pro vývojáře. Řešeny jsou rovněž bezpečnostní chyby. Nový Firefox 138 je již k dispozici také na Flathubu a Snapcraftu.
Šestnáctý ročník ne-konference jOpenSpace se koná 3. – 5. října 2025 v Hotelu Antoň v Telči. Pro účast je potřeba vyplnit registrační formulář. Ne-konference neznamená, že se organizátorům nechce připravovat program, ale naopak dává prostor všem pozvaným, aby si program sami složili z toho nejzajímavějšího, čím se v poslední době zabývají nebo co je oslovilo. Obsah, který vytvářejí všichni účastníci, se skládá z desetiminutových
… více »Richard Stallman přednáší ve středu 7. května od 16:30 na Technické univerzitě v Liberci o vlivu technologií na svobodu. Přednáška je určená jak odborné tak laické veřejnosti.
Jean-Baptiste Mardelle se v příspěvku na blogu rozepsal o novinkám v nejnovější verzi 25.04.0 editoru videa Kdenlive (Wikipedie). Ke stažení také na Flathubu.
TmuxAI (GitHub) je AI asistent pro práci v terminálu. Vyžaduje účet na OpenRouter.
Byla vydána nová verze R14.1.4 desktopového prostředí Trinity Desktop Environment (TDE, fork KDE 3.5, Wikipedie). Přehled novinek i s náhledy v poznámkách k vydání. Podrobný přehled v Changelogu.
Bylo vydáno OpenBSD 7.7. Opět bez písničky.
V Tiraně proběhl letošní Linux App Summit (LAS) (Mastodon). Zatím nesestříhané videozáznamy přednášek jsou k dispozici na YouTube.
Programming stuff. And stuff.
git checkout https://github.com/orbcode/orbuculum
cd orbuculum
git checkout Devel
make
Notice file Support/gdbtrace.init, this contains lot of magic macros, we'll use it later.
JLinkGDBServerCLExe -select USB -device Cortex-M4 -endian little -if SWD -speed auto -ir -LocalhostOnly
In GDB, connect to the server. This expects you have the Support dir from orbuculum in current directory.
Magic incantations below. This is for CPU core clock of 168 MHz, look at the gdbtrace.init's comments to
see what the arguments are. The monitor SWO EnableTargeT is part of JLink's GDB server, see
JLink user guide.
The selected SWO speed below is 2000000 baud. You may have to reset target first via monitor reset.
The parameters below select PC sampling that shouldn't be too fast, otherwise you'd get a lot of ITM overflows.
DWT POSTRESET setting is important in this.
target extended-remote :2331
source Support/gdbtrace.init
monitor SWO EnableTarget 168000000 2000000 0xFF 0
enableSTM32SWO 4
prepareSWO 168000000 2000000 0 0
dwtSamplePC 1
dwtSyncTap 3
dwtPostTap 1
dwtPostInit 1
dwtPostReset 15
dwtCycEna 1
ITMId 1
ITMGTSFreq 3
ITMTSPrescale 3
ITMTXEna 1
ITMSYNCEna 1
ITMEna 1
ITMTER 0 0xFFFFFFFF
ITMTPR 0xFFFFFFFF
continue
Now you should see some output if you do nc localhost 2332 to some file swo_data (port belongs to JLink GDB server and
should pump out SWO data).
You can use pcsampl utility from these ITM tools. Let's try to
parse the file you dumped from the port 2332, firmware.elf is the firmware running on your board:
./pcsampl -e firmware.elf swo_file 2>/dev/null
If the data are correct, you should see some meaningful result like:
% FUNCTION
10.77 *SLEEP*
29.76 qstr_find_strn
13.71 gc_collect_end
6.97 mp_map_lookup
6.00 gc_mark_subtree
5.37 gc_alloc
4.71 mp_execute_bytecode
3.63 sha256_Transform
1.80 mp_obj_get_type
You can also watch with orbtop which is part of orbuculum (look in ofiles directory). This will
take data from JLink's SWO port 2332, show exceptions, max 15 lines. It's like top, it just shows
time spent in functions instead:
./orbtop -E -e firmware.elf -v3 -c 15 -s localhost:2332
Sample output if all goes well:
25.51% 2712 bn_multiply_reduce_step
12.18% 1295 frexpf
12.18% 1295 bn_multiply_long
7.79% 828 qstr_find_strn
4.65% 495 display_loader
3.11% 331 gc_mark_subtree
2.91% 310 mp_map_lookup
2.26% 241 gc_alloc
2.12% 226 bn_multiply_reduce
2.11% 225 mp_execute_bytecode
1.72% 183 sha256_Transform
1.52% 162 bn_subtract
1.43% 152 bn_add
1.37% 146 bn_is_less
1.27% 135 bn_rshift
-----------------
82.13% 8736 of 10627 Samples
Ex | Count | MaxD | TotalTicks | AveTicks | minTicks | maxTicks
----+----------+-------+-------------+------------+------------+------------
[---H] Interval = 1018mS / 0 (~0 Ticks/mS)
monitor SWO EnableTarget 168000000 3000000 0xFF 0
Don't ask me why. I am just an engineer. I measured it with logic analyzer and kept guessing
the baudrate until it fit. According to ARM docs, SWO clock/prescaler should mostly
depend only on CPU core clock. However it evidently doesn't. There were some other hints in
docs when it's not based on CPU core clock, but that was different case. Though there could
be issue with the core clock config that seems only appear when enabling SWO data.
target extended-remote :3333
source Support/gdbtrace.init
monitor tpiu config internal swodump.log uart off 168000000 2000000
monitor mmw 0xE0001000 69632 0
monitor mmw 0xE0001000 103 510
dwtPostReset 15
set *0xe0001000=*0xe0001000 | 0x200
continue
It's a bit hairy mess, but should work (168 MHz core clock and 2 Mbaud SWO). If you are lucky and
have the right STLink FW version, swodump.log file should appear in the directory where openocd was run.
You can decode it as above with pcsampl.
If the swodump.log file is empty, you have the bad STLink FW version. You have to workaround
via USB-UART adapter on SWO pin.
Set baudrate to 2 Mbaud, look at screen if it spews data. It's actually important to run screen
as it seems to set some flags along with the stty. Might be issue with specific adapter.
stty -F /dev/ttyUSB0 2000000
screen /dev/ttyUSB0 2000000 # look if data is flowing, then kill screen
stty -F /dev/ttyUSB0 2000000
Now you can either dump data via cat from /dev/ttyUSB and decode with pcsampl or
you can run orbuculum with orbtop (each in separate terminal).
Both binaries below are in ofiles directory of orbuculum.
./orbuculum -p /dev/ttyUSB0 -a 2000000 -v2
./orbtop -E -e firmware.elf -v3 -p /dev/ttyUSB0 -a 2000000 -v2
If succesful, you'll see the the orbtop output like above.
Tiskni
Sdílej: