Commit Graph

45 Commits

Author SHA1 Message Date
yuquanjun cb6c2da5ce fix(bpm): play each track at its default tempo and keep only the remembered settings
Boot and song changes use the universal and rhythm BPM tables, with style 20 at 91. Factory restore and power-on now follow the persistence sheet, and the firmware version is 0.2.49.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-10 17:11:49 +08:00
yuquanjun 53c21eee50 chore(release): pack tone resources 1008 and bump to 0.2.46
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-08 20:45:20 +08:00
yuquanjun c007b4e40d feat(tone): ship the 1002 rhythm pack as firmware 0.2.40
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-02 13:06:35 +08:00
yuquanjun ad11f1128b chore: refresh git_user_fw_ver after auto-off activity fix
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-24 21:33:08 +08:00
yuquanjun a3898dc9ae chore: refresh git_user_fw_ver for 0.2.29 build
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-24 20:13:46 +08:00
yuquanjun f6d9a557c8 chore: refresh git_user_fw_ver for 0.2.28 build
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-24 08:12:41 +08:00
yuquanjun f116e17529 chore: bump firmware to 0.2.28 and refresh release pack metadata
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-24 08:12:26 +08:00
yuquanjun 3b0f5479ba feat(amp): BLE SysEx R/W for AD85050 CH2 EQ RAM and I2C scan
Expose 0xA0-0xAE via 07 00/01 nibble-coded frames, add RAM helpers, and host scan/test scripts.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-24 06:14:56 +08:00
yuquanjun c480e96a3f chore: refresh git_user_fw_ver for 0.2.22 build
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-23 08:39:49 +08:00
yuquanjun 4b8e676033 chore: refresh git_user_fw_ver for 0.2.21 build
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-22 11:41:49 +08:00
yuquanjun ef41eb30fa fix(chord): song-mode LED no longer overwrites chord map (6m/Am -> AM7)
Problem2: in song mode UI shows 6m(Am) but MIDI played AM7
(E2 A2 E3 G#3 C#4 E4). Root cause: BL_Set_led wrote the LED frame's
chord code into chord_type_index_map of the group middle key
(LED_L6 -> key17), so a guidance frame carrying 0x02 (M7) turned the
Am key into AM7. Remapping on the chord page only helped until the
next LED frame.

- BL_Set_led: light LED only, drop all chord_type_index_map writes;
  chord quality is owned by map page 02 03/02 04 (BT_Chord_offset_map)
- handleReadRhythmMap / Return_Light_buff: fix type->protocol read-back
  encoding (m7->0x0A, M7->0x02, ad9->0x04, m7-5->0x0B, sus2->0x1F,
  sus4->0x1E), re-landing the 0917 verified fix
- BT_Chord_offset_map: accept dominant-7 doc code 0x0D (legacy 0x13 kept)
- tests: test_chord_map_fix.py (16/16 PASS on device),
  test_fret_positions.py, test_problem2_song_am.py (7/7 PASS:
  post-LED strum stays E2 A2 E3 A3 C4 E4)

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-22 11:40:51 +08:00
yuquanjun 6d064cb53e chore: refresh git_user_fw_ver for 0.2.20 build
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-21 17:53:30 +08:00
yuquanjun f740b6fba0 chore: refresh git_user_fw_ver for 0.2.19 build
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-21 17:23:26 +08:00
yuquanjun 0a2b4a1c92 chore: refresh git_user_fw_ver after xpose/LED fixes
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-21 17:18:31 +08:00
yuquanjun ada2031e38 chore: refresh git_user_fw_ver for 0.2.18 build
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-21 15:53:50 +08:00
yuquanjun 7ebb7cf265 chore: refresh git_user_fw_ver for 0.2.17 build
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-20 07:20:31 +08:00
yuquanjun 6a1395a112 chore: refresh git_user_fw_ver after BLE sync fix
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-19 19:07:23 +08:00
yuquanjun 287c3f6799 fix(ble): sync timbre/style UI via UI task to avoid hardfault
App writes for timbre/BPM/transpose/style were refreshing LCD and
reloading tone packs on the 768B BLE recv stack, causing overflow and
crashes. Route heavy work through MSG_ID_BLE_* into the UI task, and
notify App when the device changes rhythm style.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-19 19:07:23 +08:00
yuquanjun fd58637e9d feat(ui): show charging battery icon when Type-C is plugged
Replace the status-bar outline+fill with the 0918 lightning battery bitmap while charging, and fix Pre-Build git version script UTF-8 decoding on Chinese Windows.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-19 17:58:33 +08:00
yuquanjun fb64ada557 chore: refresh git_user_fw_ver for 0.2.16 build
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-17 16:20:01 +08:00
yuquanjun 4f83ed52ec chore: refresh git_user_fw_ver for 0.2.15 build
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-17 14:03:16 +08:00
yuquanjun 30af9c75ed merge: feature_bank dual MIDI bank + toneRes 0916_bank into develop
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-17 13:59:17 +08:00
yuquanjun 7909a4f882 chore: refresh git_user_fw_ver for 0.2.14 build
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-17 07:12:49 +08:00
yuquanjun fe034e3ffe chore: sync git_user_fw_ver after 0.2.14 bank rebuild
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-16 18:39:27 +08:00
yuquanjun d4c35b8b90 chore: refresh git_user_fw_ver for 0.2.14 bank build
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-16 18:38:00 +08:00
yuquanjun d11d217b02 release: bump to 0.2.14 with toneRes 0916_bank
Repack ExtFlash from Doc/音色文件/0916_bank; BIN3 stays at 0xA7437 (2.bin length unchanged).

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-16 18:32:13 +08:00
yuquanjun 65b0a84c4a chore: clean git_user_fw_ver id for 0.2.13
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-15 21:02:20 +08:00
yuquanjun 35d4cc28af chore: refresh git_user_fw_ver for 0.2.13 build
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-15 21:01:56 +08:00
yuquanjun 2d9f234a7d chore: refresh git_user_fw_ver for 0.2.12 build
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-14 22:10:36 +08:00
yuquanjun 61caeb7407 release: bump firmware version to 0.2.12
Include autoclose 关闭 glyph fix and recent normal-pick / HIL / flash-tool work in the release tag.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-14 22:09:09 +08:00
yuquanjun c6be9fe88b chore: refresh git_user_fw_ver build id
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-14 21:49:37 +08:00
yuquanjun f8aeb4fb7c release: 0.2.10 — tone pack 0914 (BIN3 after 2.bin), autoclose label 关闭
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-14 19:37:57 +08:00
yuquanjun 7fa2f5f1c4 release: bump firmware version to 0.2.9
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-14 16:27:04 +08:00
yuquanjun b65b762d92 Refresh git_user_fw_ver.h after 0.2.8 release rebuild.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-10 07:03:20 +08:00
yuquanjun 30c4ea9c0d Refresh git_user_fw_ver.h for 0.2.8 release commit.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-10 07:02:22 +08:00
yuquanjun 59c11f3f93 Fix BT recv stack smash and harden pitch/chord SysEx paths.
Enlarge BT recv stack, move large handlers/log buffers off the stack, clamp key indexes, and yield in W25Q busy-wait so BLE protocol tests stay stable.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-10 06:51:32 +08:00
yuquanjun c1b32c0351 Refresh git_user_fw_ver.h for 0.2.7 release commit.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-09 12:18:00 +08:00
yuquanjun bb6d9ae7f9 Release 0.2.7: refresh rhythm 1.bin pack with fixed BIN3 layout checks.
Update pack/publish to enforce 41KB song limit, verify 1/2/3.bin at fixed addresses, and emit .res aliases for the tone and ALL extflash images.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-09 12:17:42 +08:00
yuquanjun f1f9520637 Fix settings BT/restore icons and soft-off BLE protocol plumbing.
Point system-settings rows at the correct Flash icons, keep Main/UI alive across soft-off, and expose git build id for 01 0C with matching BLE tests.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-09 07:03:52 +08:00
yuquanjun 0aedb45e6e Make BLE SysEx UID and fw-code MIDI-safe for BLE-MIDI.
Encode 01 07 UID as hex ASCII and use 01 0F (keep 01 FF alias) so high-bit bytes are not dropped as timestamps.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-08 22:02:06 +08:00
yuquanjun 7b08f5e098 Start BLE UART4 App protocol receive on power-on.
TaskBTRecvThread previously started only after mode select, so GATT SysEx never reached the parser until then; verified BLE-MIDI 01 01 now replies with GATT notify.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-08 21:46:14 +08:00
yuquanjun 8febbd7742 Align BLE SysEx style/transpose replies with Doc protocol and add BLE test harness.
Drop ineffective Dream BT rename SysEx; fix 03 04 boot/list/total and 03 07 read length.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-08 18:05:04 +08:00
yuquanjun bd22246942 Use AT32 UID for unique PHON_ name and push it to Dream over SysEx.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-08 12:37:29 +08:00
yuquanjun 01bc2a592c Implement full BLE SysEx protocol handlers and app-sim test.
Wire missing 01/02/03/05 commands, fix chord-map reply and section/End dispatch, and add UART4 protocol regression script.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-08 10:00:55 +08:00
yuquanjun 3302c92f5a Initial commit: YNGJ-GT1-M K1电吉他 AT32F403ARCT7 嵌入式源码
包含 IAR 工程、Bootloader、RT-Thread、应用层及外设驱动源码。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-26 07:26:58 +08:00