fix: STM32 핀 매핑 수정 + Renode 로그 정리

- _RN_PNAME: digitalPinToPinName() 제거, PinName 직접 디코딩 (PB_3→PB3)
- _STM32_ARDUINO_PINS: variant_PILL_F103Cx 실제 순서로 교정
- Renode 서버 로그(console.error) 및 시리얼 모니터 INFO 제거

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
kim
2026-06-30 16:42:01 +09:00
co-authored by Claude Sonnet 4.6
parent 73fc4f4319
commit 11799e7553
2 changed files with 14 additions and 17 deletions
+8 -6
View File
@@ -3023,13 +3023,15 @@ function initEsp32Mode(sessionId, fname, fqbn) {
let _renodeSessionId = null;
let _renodeEvtSource = null;
// Arduino 번호 → STM32 핀 이름 (STM32duino BLUEPILL_F103C8 순서)
// Arduino 번호 → STM32 핀 이름 (variant_PILL_F103Cx 실제 순서)
// D0=PB9 … D6=PB3, D7=PA15, D8=PA12 … D17=PC13 … D19=PC15, D20=PA0 …
const _STM32_ARDUINO_PINS = [
'PA0','PA1','PA2','PA3','PA4','PA5','PA6','PA7', // D0-D7
'PB0','PB1','PB10','PB11','PB12','PB13','PB14','PB15', // D8-D15
'PA8','PA9','PA10','PA11','PA12','PA15', // D16-D21
'PB3','PB4','PB5','PB6','PB7','PB8','PB9', // D22-D28
'PC13','PC14','PC15', // D29-D31
'PB9','PB8','PB7','PB6','PB5','PB4','PB3', // D0-D6
'PA15','PA12','PA11','PA10','PA9','PA8', // D7-D12
'PB15','PB14','PB13','PB12', // D13-D16
'PC13','PC14','PC15', // D17-D19
'PA0','PA1','PA2','PA3','PA4','PA5','PA6','PA7', // D20-D27
'PB0','PB1','PB10','PB11','PB2','PA13','PA14', // D28-D34
];
// HIGH/LOW/1/0/0x1/0x0 → 0 or 1