본문 바로가기
임베디드.일렉트로닉스

NORDIC. nrfutil. 개요. 설치. DFU (Device Firmware Update) 툴 S/W

by i.got.it 2018. 9. 11.

 

 

NORDIC 사의 nrfutil 개요

- DFU(Devie Firmware Updates) , cryptographic 지원하는 커맨드라인 툴 S/W. 

 

nrfutil 및 library 에서 제공하는 것들. 

 

  • DFU package generation

 

  • Cryptographic key generation, management, and storage

 

  • Bootloader settings generation

 

  • DFU procedure over any of the following transports:
    • Bluetooth Low Energy
    • Serial over UART
    • Serial over USB
    • Thread unicast
    • Thread multicast
    • Zigbee
    • ANT

 

 

 

제조사 제공 nrfutil 전체 정보. 

 

 

nRF Util

The nRF Util application is a Python package and command-line utility that supports Device Firmware Update (DFU) and cryptographic functionality. The nRF Util application and its library has the following features: DFU package generation Cryptographic key

infocenter.nordicsemi.com

 

사용자 가이드 : pdf

 

 

nrfutil 설치.

nrfutil 설치 전 필수 요구사항. 

 

1. Python 2.7.x 설치 되어 있어야 한다. Python 3 불가. 

 

2021년 3월 20일 시점 최신 nrfutil 버전 6.1.0 은 파이썬 3.7 에서만 만 정상 작동함. 파이썬 3.8, 3.9 모두 오류 발생함. 

 

 

 

 

설치방법 2종. 

1. PyPI (Python Package Index) 설치. 

2. GitHub 에서 배포하는 소스로 설치. 

 

본 글에서는 1번 방법 PyPI 패키지 설치하는 예를 보인다. 

nrfutil 버전 : 3.5.1 (2018년 9월 11일 최신버전) (2021년 3월 20일 시점의 최신버전은 6.1.0)

커맨드 창 실행하여 구문 pip install nrfutil 타이핑하고 엔터치면 자동으로 nrfutil 설치 진행된다. 아래동영상. 

 

nrfutil 정상설치 확인.

상기 설치이후 nrfutil 정상 설치 여부 확인하기 위하여 커맨드 창에서 구문 nrfutil dfu ble --help 타이핑해본다. 아래 동영상. 도움말 리스팅되면 정상 설치된것. 

 

 

 

파이썬 3.7 이후의 3.8 이나 3.9 에서는 nrfutil 6.1.0 설치하면 

정상설치 안되어 위 구문 타이핑해도 ModuleNotFoundError 뜨는 경우 포럼의 질문과 답변

nrfutil ModuleNotFoundError: No module named 'constants' - Nordic Q&A - Nordic DevZone - Nordic DevZone (nordicsemi.com)

 

nrfutil ModuleNotFoundError: No module named 'constants' - Nordic Q&A - Nordic DevZone - Nordic DevZone

 

devzone.nordicsemi.com

 

결론적인 해결책 : 파이썬 3.8.7 포함 이후 버전 전부 에러 생김. 파이썬 3.7 버전 에서만 정상 작동함. ( 파이썬 관련된 것들은 어케 이리 다 지저분한지...  이 따위 걸 코드 개발 툴이라고... . )

 

 

 

설치된 nrfutil.exe 경로 

C:\Users\user\AppData\Roaming\Python\Python37\Scripts

- 윈도우  Path 설정에 에 위 경로 추가되어있어야 함. 

 


첫 등록 : 2018.09.11

최종 수정 : 2021.03.20

단축 주소 : https://igotit.tistory.com/1854

 


 

 

 

댓글



 

비트코인




암호화폐       외환/나스닥/골드       암호화폐/외환/나스닥/골드 암호화폐/외환/나스닥/골드   암호화폐/외환/나스닥/골드
     
현물 |선물 인버스 |선물 USDT       전략매니저(카피트레이딩)     롤오버 이자 없는 스왑프리계좌
( 스왑프리 암호화폐도 거래 가능 )    
MT4, MT5 , cTrader 모두 지원     FTMO 계좌 매매운용. MT4,MT5