'BLE'에 해당되는 글 3건

  1. [BLE] SEGGER Studio CMSIS Configuration Wizard / sdk_config.h
  2. [BLE] nRF5 Offline Document Download
  3. [BLE]nRF52832 DCDC Mode Enable

[BLE] SEGGER Studio CMSIS Configuration Wizard / sdk_config.h

노르딕 SDK는 여러 컴파일러를 지원 합니다.

기존 상용 컴파일러를 지원 하던 중에( Keil, IAR ) 현재는 SEGGER사(JLink 만드는 독일 회사)와 계약을 했는지

nRF 씨리즈에 한정하여 무료로 사용 할 수 있습니다.

 

SDK 업데이트 하면서 기존 Keil버젼은 더 이상 지원하지 않아서 SEGGER로 변경 해보았는데,

생각 보다 괜찮습니다.

JLink 기술의 원천 회사 라서 그런지 괴랄하게 빠른 flash download속도와 디버깅 속도를 보여 주네요.

 

아무튼...

SDK 사용중에는 sdk_config.h을 자주 건드리게 되는데, 기존에 Keil의 경우 GUI Wizard형식으로 보기가 편하게 

되어 있습니다.

이게 SEGGER에서는 지원하지 않는 줄 알고, 우울해지려고 할 타임에 검색 해보니 플러그인 형태로 지원 하는게 있네요.

 

설정 하는 법 유튜브 링크

https://www.youtube.com/watch?v=b0MxWaAjMco&list=PLx_tBuQ_KSqGHmzdEL2GWEOeix-S5rgTV&index=4

 

Keil 컴파일러 sdk_config wizard

 

 

SEGGER sdk_config wizard

 

설정법

File-Open Studio Folder..-External Tools Configuration 에서 아래 문구를 넣어 주면 됩니다.

SEGGER sdk_config wizard 설정법

<tools>

  <!-- PC-lint - http://www.gimpel.com/html/pcl.htm -->

  <if host_os="win">
    <item name="Tool.PClint">
      <menu>&amp;PC-lint (Unit Check)</menu>
      <text>PC-lint (Unit Check)</text>
      <tip>Run a PC-lint unit checkout on the selected file or folder</tip>
      <key>Ctrl+L, Ctrl+P</key>
      <match>*.c;*.cpp</match>
      <message>Linting</message>
      <commands>
        &quot;$(LINTDIR)/lint-nt&quot; -v -incvar(__CW_ARM) -i$(LINTDIR)/lnt co-gcc.lnt $(DEFINES) $(INCLUDES) -D__GNUC__ -u -b +macros +macros -w2 -e537 +fie +ffn -width(0,4) -hF1 &quot;-format=%f:%l:%C:\s%t:\s%m [-e%n]&quot; &quot;$(InputPath)&quot;
      </commands>
    </item>
    <item name="Tool.CMSIS_Config_Wizard" wait="no">
      <menu>&amp;CMSIS Configuration Wizard</menu>
      <text>CMSIS Configuration Wizard</text>
      <tip>Open a configuration file in CMSIS Configuration Wizard</tip>
      <key>Ctrl+Y</key>
      <match>*config*.h</match>
      <message>CMSIS Config</message>
      <commands>
        java -jar &quot;$(CMSIS_CONFIG_TOOL)&quot; &quot;$(InputPath)&quot;
      </commands>
    </item>
  </if>

</tools>

 

추가로

sdk_config.h 설정에 관한 문법 설명 입니다.

https://www.keil.com/pack/doc/CMSIS/Pack/html/configWizard.html

 

Configuration Wizard Annotations

Annotation Rules Configuration Wizard Annotations consist of annotation items and annotation modifiers. They create GUI-like elements in IDEs for configuration files (see Tool-specific display). Using a GUI-like approach makes it easier for the user to che

www.keil.com

 

'BLE' 카테고리의 다른 글

[BLE] nRF5 Offline Document Download  (0) 2020.02.05
[BLE]nRF52832 DCDC Mode Enable  (0) 2020.02.05

[BLE] nRF5 Offline Document Download

Nordic의 경우 일반적인 PDF보다 Online Support가 더 활성화 되어 있습니다.

Infocenter나 DevZone이 그렇죠. 

일반적인 예제 활용부터 시작해서 SDK API 함수까지 모든 설명을 Online Infocenter에서 찾아 볼 수 있습니다.

근데 Online이라 좀 느려요.

 

아래 링크에서 Offline문서를 다운 받아서 index.html을 크롬으로 보시면 훨씬 쾌적하게 문서들을 살펴 볼 수 있습니다.

 

https://developer.nordicsemi.com/

 

download.recurser.com

Welcome to SDK The nRF5 SDK provides a rich developing environment for nRF5 Series devices by including a broad selection of drivers, libraries, examples for peripherals, SoftDevices, and proprietary radio protocols. The SDK is delivered as a plain .zip-ar

developer.nordicsemi.com

 

nRF offline doc 문서

 

'BLE' 카테고리의 다른 글

[BLE] SEGGER Studio CMSIS Configuration Wizard / sdk_config.h  (0) 2020.02.10
[BLE]nRF52832 DCDC Mode Enable  (0) 2020.02.05

[BLE]nRF52832 DCDC Mode Enable

nRF52832의 경우 내부 Core전압으로 1.3V 사용 합니다.

이때 필요한게 Regulator인데, nRF52832의 경우 외부 회로에 L,C 만 추가 하면 LDO/DCDC 모두 사용 가능 합니다.

당연 하게도 DCDC일 경우 소모 전류는 드라마틱 하게 줄어 들게 됩니다.

단순 Advertise Mode에서 약 42%이상 소모 전류를 줄일 수 있습니다.

사용자가 SW 설정을 안 할 경우 Default LDO입니다.

 

따라서 SDK에서 제공하는 모든 기존 예제들은 Default LDO 모드로 동작 하게 됩니다.

 

DCDC일 활성화 위해서는 아래와 같은 함수를 Call하면 됩니다.

  ble_stack_init();
  /* 외부 회로가 dcdc 지원하면, dcdc mode enable하여 전류를 소모를 많이 줄일 수 있다 */
  /* 아무데서나 호출하면 안되고 ble_stack_init() 후 호출 */
  sd_power_dcdc_mode_set(NRF_POWER_DCDC_ENABLE);  

일반적으로 DCDC는 Noise성분을 많이 발생 시키는데, 이에 따른 RF성능 저하는 따로 확인 되지 않았습니다.

 

Nordic Online Power Profiler Link

https://devzone.nordicsemi.com/nordic/power

 

LDO Mode 일때 전류

 

 

DCDC Mode 일때 전류
LDO/DCDC 겸용 HW 회로도
Only LDO Mode HW 회로도

'BLE' 카테고리의 다른 글

[BLE] SEGGER Studio CMSIS Configuration Wizard / sdk_config.h  (0) 2020.02.10
[BLE] nRF5 Offline Document Download  (0) 2020.02.05