"BLE mesh" 修訂間的差異
(→Programming) |
(→Programming) |
||
行 13: | 行 13: | ||
=== Programming === | === Programming === | ||
− | + | *If nrfutil fail, try more times!!! | |
− | + | * Create app package | |
− | + | ** nrfutil pkg generate --hw-version 52 --sd-req 0x00 --application-version 1 --application nrf52840_xxaa.hex zip.zip | |
− | + | * Display package info | |
− | + | ** nrfutil pkg display dfu.zip | |
− | + | * Program the package | |
− | + | * sudo nrfutil dfu usb-serial -pkg zip.zip -p /dev/ttyACM0 | |
− | + | * Using tool "nRF connect" in windows is better | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
[[File:NRF_Connect_Programmer.jpg|200px|nrf connect]] | [[File:NRF_Connect_Programmer.jpg|200px|nrf connect]] |
於 2019年3月23日 (六) 11:25 的修訂
Prepare
- Platform: nRF52840
- Board: PCA10059
SDK & Mesh SDK
- nRF5_SDK_15.3.0_59ac345
- nrf5SDKforMeshv310src
Cmake build
- cd nrf5SDKforMeshv310src
- mkdir build & cd build
- cmake -G Ninja .. -DSDK_ROOT=$PATH_OF_NRF5_SDK -DPLATFORM=nrf52840_xxAA -DBOARD=pca10056 <---for nrf52840
Programming
- If nrfutil fail, try more times!!!
- Create app package
- nrfutil pkg generate --hw-version 52 --sd-req 0x00 --application-version 1 --application nrf52840_xxaa.hex zip.zip
- Display package info
- nrfutil pkg display dfu.zip
- Program the package
- sudo nrfutil dfu usb-serial -pkg zip.zip -p /dev/ttyACM0
- Using tool "nRF connect" in windows is better