Commit graph

256 commits

Author SHA1 Message Date
Lephenixnoir
6d75c3aa82
gdb-bridge: add missing include
Appears to be transitively included on your usual Linux distros but
not on MacOS.
2024-09-23 11:22:28 +02:00
Lephenixnoir
1ceeabdc36
fxconv: recognize the new line-distance param for fonts 2024-09-14 07:29:47 +02:00
Lephenixnoir
92a95e0090
libfxlink: no-colors option + don't always enumerate devices [Windows]
Enumerating devices constantly caused some sort of error/crash that
would stop the monitor after just one frame or so.
2024-09-14 07:29:15 +02:00
Lephenixnoir
efcd6ec241
libfxlink, fxlink: install rules for MinGW build [Windows] 2024-09-14 07:29:10 +02:00
Lephenixnoir
9de441d0f4
libfxlink: basic device enumeration without hotplug [Windows] 2024-09-14 07:26:56 +02:00
Lephenixnoir
c3d7fd6efa
fxlink: find SDL2 without -mwindows to stay in console [Windows]
When loading SDL2 with pkg-config the -mwindows flag is added, which
instructs the loader to load the program through WinMain() and not
create a console for it. This is intended for GUI programs. However,
fxlink is a CLI program with just occasionally an SDL window on top of
it. Disable -mwindows to keep the console and terminal output. I don't
know how to do that with the pkg-config CMake module, so use the SDL2
module for the Windows build instead.
2024-09-14 07:26:56 +02:00
Lephenixnoir
b83796a382
fxgxa: use standard fopen() for reading files [Windows] 2024-09-14 07:26:56 +02:00
Lephenixnoir
50997a8b75
very crude Windows build (WIP): disable fxlink TUI, gdb bridge
There is no direct replacement for poll() in the Windows API, so I'm
gonna disable the fxlink TUI for now and maybe later figure out how to
do something equivalent, even if more brute-forcey.
2024-09-14 07:26:56 +02:00
Lephenixnoir
e201304423
fxsdk: use -flto=auto by default to avoid lto-wrapper warning 2024-07-09 21:13:31 +02:00
Lephenixnoir
09e2cf5fda
bump version to 2.11.0 2024-07-06 10:00:25 +02:00
Lephenixnoir
82c0e0ed67
fxsdk: add file size sanity check before sending 2024-07-06 09:59:39 +02:00
Lephenixnoir
181ed5cccd
fxsdk: add ELF patch mechanism for HH2 to specify filename for stage-2 2024-06-05 10:49:48 +02:00
Lephenixnoir
69f70eac10
fxsdk: enable LTO by default on new projects 2024-06-02 16:10:13 +02:00
Lephenixnoir
8d6bc9c14f
fxconv: add new return type convention for custom converters
Previously converters had to return:
- 0 on success, having called fxconv.elf() themselves
- 1 on failure

Now they also have the (preferred option) to return:
- a bytes or ObjectData on success, without calling fxconv.elf()
- None of failure
2024-06-02 16:10:13 +02:00
Lephenixnoir
96c035ff4a
fxsdk: add an [fxsdk script] command for misc. functions 2024-06-02 16:10:13 +02:00
Lephenixnoir
b8f546c67e
fxsdk: basic fx-CP support using HH2 as a loader 2024-06-02 16:10:13 +02:00
Lephenixnoir
a443fa59e1
fxconv: don't require py param to be set in manual calls 2024-04-21 12:13:44 +02:00
Lephenixnoir
ccbe0e594a
gdb: packet and bridge logging 2024-04-13 09:21:26 +02:00
Lephenixnoir
8b09299c3a
gdb: interpret client disconnect as W00 (normal exit) 2024-04-06 22:55:43 +02:00
Lephenixnoir
5acef051f1
gdb: use sh4al-dsp target
Also switch the order of -ex for a slightly cleaner output
2024-04-01 00:48:58 +02:00
Lephenixnoir
5fe02b055b
fxsdk: add -g by default for new projects 2024-03-31 19:54:17 +02:00
Lephenixnoir
76c23b88ac Merge pull request 'A few fixes for the new bridge that make using the builtin GDB invocation a bit nicer' (#13) from redoste/fxsdk:gdb-bridge-fixes into dev
Reviewed-on: https://git.planet-casio.com/Lephenixnoir/fxsdk/pulls/13
2024-03-31 18:32:46 +02:00
redoste
4d664f9e05
gdb: ignore SIGINT from the bridge when gdb is in foreground
^C can be used within gdb to break a running target, handeling it from
the bridge would kill the connection
2024-03-31 18:31:27 +02:00
redoste
d5697e6add
gdb: set architecture to sh4a-nofpu when starting gdb 2024-03-31 18:31:27 +02:00
Lephenixnoir
e847ad3f6e
gdb: provide [fxsdk gdb] wrapper 2024-03-30 11:47:04 +01:00
Lephenixnoir
056ce41c9e
gdb: style, messages, add option to wait for gdb:start 2024-03-30 10:52:10 +01:00
Lephenixnoir
87a2feff15
gdb: add original gdb bridge by @redoste
Authored-by: redoste <redoste@redoste.xyz>
2024-03-30 09:29:28 +01:00
Lephenixnoir
0134f37f7d
Merge remote-tracking branch 'czm/master' into dev (#12) 2024-03-27 19:17:17 +01:00
陈湛明
0e2379ea51 Improve the wording in README_zh.md 2024-03-26 21:40:11 +00:00
陈湛明
aeb8dda6c8 Add support for VSCode 2024-03-26 11:51:51 +00:00
陈湛明
cf0aea6c4c Remove redundant explanation about macro 2024-03-26 11:47:42 +00:00
陈湛明
daf69d1898 Add the date of translation for README_zh.md 2024-03-26 09:55:37 +00:00
陈湛明
bc8157c385 Fix several issues in VSCode_zh.md 2024-03-26 09:39:49 +00:00
陈湛明
df05f68c65 Change language suffix to "zh" 2024-03-26 08:45:57 +00:00
陈湛明
7e519f9f22 Merge branch 'master' of https://git.planet-casio.com/Chen-Zhanming/fxsdk 2024-03-25 21:10:34 +00:00
陈湛明
ea871becf5 Fix a typo in README 2024-03-25 21:08:55 +00:00
陈湛明
8e2b1d58b2 Translate README into Simplified Chinese
Add a tutorial on how to use fxSDK with VSCode.
2024-03-25 21:08:32 +00:00
陈湛明
eec1455bfd Change the link back 2024-03-25 15:12:46 +00:00
陈湛明
274f6aa8c2 Use Forgeio style link 2024-03-25 11:35:49 +00:00
陈湛明
6632c37e45 Use relative path 2024-03-25 11:23:46 +00:00
陈湛明
06d5b6f852 Add a tutorial on using fxSDK in VSCode 2024-03-25 11:20:47 +00:00
陈湛明
82fb8d2716 Add more translation to README_zhCN.md 2024-03-25 11:18:11 +00:00
陈湛明
3013343e19 Partially translated README to Simplified Chinese 2024-03-24 18:46:11 +00:00
Lephenixnoir
85d7fcf9e9
libfxlink: fix race condition leading to lost messages
Basically if the calculator sends two messages in a row, it is possible
for a single libusb_handle_events() to get both. And the comm structure
wasn't designed for that, because it could buffer only one message at a
time, which the user needed to read after event handling.

The comm structure now has a 16-message buffer, which should be more
than enough for any single event handling loop. On the user level this
has implications in that fxlink_device_finish_bulk_IN() must be called
*in a loop* after each event handling cycle.

Reported in https://git.planet-casio.com/Lephenixnoir/gint/pulls/27
2024-03-24 19:25:35 +01:00
Lephenixnoir
2d293eeb35
libfxlink: remove confusingly unused IN message 2024-03-24 18:17:18 +01:00
Lephenixnoir
8d8fca3ea2
fxsdk: add build-fxg3a -s (send) option
Note that this only makes sense if there is only one .g3a in the current
folder. If both the cg and the fxg3a targets are used, this will send
both g3a files, which is a waste of time.
2024-03-24 11:12:11 +01:00
Lephenixnoir
8092621967
fxsdk: better defaults for build-fxg3a projects 2024-03-24 10:45:19 +01:00
Lephenixnoir
519b4201fc
fxsdk: cleanup for building fx code as g3a (#11)
- Feature name: "fx g3a" or "fx as g3a"
- No need for a special send function
- Remove leftover bld file
2024-03-21 08:51:49 +01:00
Slyvtt
883ca77167
corrected typo for send option 2024-03-21 08:30:00 +01:00
Slyvtt
8574824b31
removed build-fxascg-push target due to possible RAM allocation issues 2024-03-21 08:30:00 +01:00