From a79bb6c9c744260c9fbad1c85ac892d6bc7cba33 Mon Sep 17 00:00:00 2001 From: jhChun Date: Mon, 30 Mar 2026 11:41:59 +0900 Subject: [PATCH] =?UTF-8?q?SAADC=20=EC=9A=B0=EC=84=A0=EC=88=9C=EC=9C=84=20?= =?UTF-8?q?=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - NRFX_SAADC_CONFIG_IRQ_PRIORITY = 0 -> 6 - C:\jhChun\VesiScan-Basic_jhChun_new\components\libraries\util\app_util_platform.h - 위 경로에 Cortex-M4(nRF52840) 우선순위 배분표가 정의되어 있음 - 0, 1, 4는 SoftDevice 전용, 앱 사용 가능한 우선순위는 2, 3, 5, 6(권장), 7 - 권장되는 우선순위인 6위로 변경 - SAADC 해상도 10 -> 12bit 변경 및 콜백 내 연산 int -> float 변경으로 ISR 처리 시간이 길어지고, SoftDevice와 충돌 가능성이 높아지는 것으로 추측 - 충돌이 발생하는 경우 콜백 지연 또는 누락 --- .../ble_app_bladder_patch/pca10056/s140/config/sdk_config.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/ble_peripheral/ble_app_bladder_patch/pca10056/s140/config/sdk_config.h b/project/ble_peripheral/ble_app_bladder_patch/pca10056/s140/config/sdk_config.h index 15ca3c1..23b44e8 100644 --- a/project/ble_peripheral/ble_app_bladder_patch/pca10056/s140/config/sdk_config.h +++ b/project/ble_peripheral/ble_app_bladder_patch/pca10056/s140/config/sdk_config.h @@ -3587,7 +3587,7 @@ // <7=> 7 #ifndef NRFX_SAADC_CONFIG_IRQ_PRIORITY -#define NRFX_SAADC_CONFIG_IRQ_PRIORITY 0 +#define NRFX_SAADC_CONFIG_IRQ_PRIORITY 6 #endif // NRFX_SAADC_CONFIG_LOG_ENABLED - Enables logging in the module.