NFC 관련 (일반 GPIO 설정) NRF52 NFC 일반 GPIO 설정 P0_09/NFC1 P0_10/NFC2 Keil, go to: Project > Options for Target > C/C++ > Preprocessor Symbols > Define. Here you can add the CONFIG_NFCT_PINS_AS_GPIOS variable after NRF52. CONFIG_NFCT_PINS_AS_GPIOS 디파인에 추가하여야 된다. BLE/Nordic 2018.03.21
인증 테스트 방법 (DTM) DTM 소스에서 main에서 타이머 동작 안됨. dtm_wait()부분에서 for(;;) 에서 추가하여 작동해야 함. else if (mp_timer->EVENTS_COMPARE[1] != 0) { if(led_time++ > 1000) { led_time = 0; //nrf_gpio_pin_toggle(IOT_LED1); nrf_gpio_pin_toggle(LED_1); } // Reset timeout event flag for next iteration. mp_timer->EVENTS_COMPARE[1] = 0; NVIC_ClearPendingIRQ(m_timer_irq); return ++m_current_time; } BLE/Nordic 2017.07.04
nRF52 DFU 부트로더 진입 ====== SDK 12.3.0 기준 ========= 1) 일반 app 수정 DFU 진입을 원하는 BLE 서비스에서 하기 코드 추가 테스트용으로 귀찮아서 노티 서비스에 추가함. if(p_evt_write->data[0] == 1) { p_our_service->noti_our_enable = true; NRF_LOG_INFO("Notification enabled\r\n"); #define BOOTLOADER_DFU_START 0xB1 NRF_POWER->GPREGRET = BOOTLOADER_DFU_START; NRF_LOG_INFO("bootloder reset!!\r\n"); NVIC_SystemReset(); } else if(p_evt_write->data[0] == 0) { p_our_ser.. BLE/Nordic 2017.06.21
초기화 되지 않는 변수설정 #define CY_NOINIT __attribute__ ((section(".noinit"))) uint32 time CY_NOINIT; 초기 쓰레기 값에 주의... BLE/CYPRESS 2016.09.29
싸이프레스 실수 출력 build setting => Linker => nano float Format True 변경 #define MMC3410_OFFSET_X 32768 /* 16 bits mode*/ #define MMC3410_OFFSET_Y 32768 #define MMC3410_OFFSET_Z 32768 #define MMC3410_SENSITIVITY_X 2048 #define MMC3410_SENSITIVITY_Y 2048 #define MMC3410_SENSITIVITY_Z 2048 ====================================== float fMagX=0.0; float fMagY=0.0; float fMagZ=0.0; mmc3416_getXYZ(&ax, &ay, &az); DBG_PRIN.. BLE/CYPRESS 2016.06.10
PSoc BLE S-rom 관련 1. Read 는 문제 없으나, Write 시 클럭이 불안정함. - S-rom Write 시 48Mhz로 클럭을 올려서 하는데, 이후 사용자가 설정한 클럭으로 정상적으로 조정 안됨. - 단 사용자 설정한 클럭이 20Mhz 이상 되면 괜찮음 2. S-rom 처음 Row 번지는 BLE Mac add 관련된 번지라 Write 하면 Mac add 초기화 됨. 주의! 3. Connection interval 최소 22.5~100 ms 이상 설정해야 접속 시 write 정상적으로 됨. (2015.12.29) => interval 짧으면, IMO 클럭 변경으로 BLE 정지됨. 와치독...정지 후 강제 딜레이 주고 Write 해야 됨. BLE/CYPRESS 2015.12.07
BLE 정리 싸이프레스 BLE 정리 1. ADV 주기 조정 CYBLE_EVT_GAPP_ADVERTISEMENT_START_STOP: CyBle_GappStartAdvertisement(CYBLE_ADVERTISING_FAST); #define CYBLE_ADVERTISING_FAST (0x00u) #define CYBLE_ADVERTISING_SLOW (0x01u) #define CYBLE_ADVERTISING_CUSTOM (0x02u) 2015.11.13 함수 사용하여 변경 ( solar ble EH_Motherboard 참조) 함수 사용하여 변경 ( solar ble EH_Motherboard 참조) /**************************************************************.. BLE/CYPRESS 2015.10.15