zigfield-jr/pb-zig-template
PocketBook Zig template
Minimal app(lication) for B288 (or B300) CPU. Includes an SDK 6.5 subset.
Build project with release containing https://github.com/ziglang/zig/pull/25301
zig build
Copy zig-out/applications/hello_world.app to device folder /applications
Start the application.
Copy zig-out/applications/netcat.app to device folder /applications
Start the script, answer possible questions.
Build project with option dest_ip
zig build -Ddest_ip=192.168.###.###
Copy zig-out/applications/gdbserver.app to device folder /applications
Start the script, answer possible questions.
Set device IP in GDB (or LLDB) configuration.
Run gdb (or lldb) in terminal (and project folder).
On device open the task manager, hello_world should be listed.
Read more.
To access the shell, install the pbterm B288 or B300 release from https://github.com/leomeyer/pbterm
To find an icon, copy /ebrmain/themes/Line.pbt and use the pbres port
from https://github.com/chrisridd/pbtools