본문으로 바로가기

[NCS][VS Code] SDK 변경 및 light_bulb 프로젝트 만들기

category 미분류 항목 2023. 10. 19. 20:16

 : Visual Studio Code 의 nRF Connect SDK 2.4.0 을  SDK 2.4.2 로 변경및 libght_bulb 프로젝트 생성하기

 

▶ 다음처럼 nRF Connect SDK v2.4.0 와 v2.4.2 가 설치가 되어 있는 상태에서 테스트  진행 했습니다.

 

 

▶ Visual Studio Code 실행후 nRF Connect  메뉴 선택하면 다음처럼 toolchain 과
      SDK 버전이 2.4.0 으로 보여지는데  SDK v2.4.2 로 수정해 보겠습니다.    

 

 

 

 

→  Manage Toolchains 변경

 

 

→   Manage SDKs 변경

 

 

→ 다음처럼 나오면 OK

 

 

 

 

▶ 신규 어플리케이션 만들기

  NRF CONNECT > Create a new application > Copy a sample 선택

 

  →  검색창에 light_bulb 입력

 

 

  →  프로젝트 루트 디렉토리 설정

 

  →  자동으로 light_bulb 라는 프로젝트 이름이 생성되네요.

 

 

 

 

 

▶ Create Build Configuration

 

→ Board 선택하기  (nrf7002dk_nrf5340_cpuapp 선택)

 

→ Build Configuration 클릭

 

  자동으로 빌드를 진행합니다. (처음할때는 좀 오래 걸립니다. 10분가량)

 

▶ Flash 메뉴" Erase and Flash to board" 아이콘 클릭

 

 

 

 

<기타>

▶ 부팅 로그

uart:~$ *** Booting Zephyr OS build v3.3.99-ncs1-1 ***
I: Init CHIP stack
I: 166 [DL]BLE address: E7:03:16:06:DE:8D
D: 199 [DL]WiFiManager has been initialized
I: 203 [SVR]Subscription persistence not supported
I: 208 [SVR]Server initializing...
I: 211 [TS]Last Known Good Time: 2023-10-19T20:46:33
I: 217 [DMG]AccessControl: initializing
I: 220 [DMG]Examples::AccessControlDelegate::Init
I: 225 [DMG]AccessControl: setting
I: 228 [DMG]DefaultAclStorage: initializing
I: 231 [DMG]DefaultAclStorage: 0 entries loaded
D: 236 [IN]UDP::Init bind&listen port=5540
E: 240 [IN]SO_REUSEPORT failed: 109
D: 243 [IN]UDP::Init bound to port=5540
D: 246 [IN]BLEBase::Init - setting/overriding transport
D: 251 [IN]TransportMgr initialized
I: 257 [ZCL]Using ZAP configuration...
I: 262 [DMG]AccessControlCluster: initializing
D: 266 [DL]Boot reason: 1
I: 269 [ZCL]Initiating Admin Commissioning cluster.
I: 274 [ZCL]Endpoint 1 On/off already set to new value
I: 279 [ZCL]Cluster LevelControl: attribute CurrentLevel set to 254
D: 286 [IN]SecureSession[0x200041d0]: Allocated Type:1 LSID:36093
D: 292 [DL]CHIPoBLE advertising set to on
I: 296 [DIS]Updating services using commissioning mode 1
I: 301 [DIS]CHIP minimal mDNS started advertising.
D: 306 [DL]Using wifi MAC for hostname
I: 309 [DIS]Advertise commission parameter vendorID=65521 productID=32773 discriminator=3840/15 cm=1
D: 318 [DIS]Responding with _matterc._udp.local
D: 323 [DIS]Responding with 78FE7423677AD547._matterc._udp.local
D: 328 [DIS]Responding with F4CE360024C2.local
D: 333 [DIS]Responding with F4CE360024C2.local
D: 337 [DIS]Responding with _V65521._sub._matterc._udp.local
D: 342 [DIS]Responding with _S15._sub._matterc._udp.local
D: 347 [DIS]Responding with _L3840._sub._matterc._udp.local
D: 353 [DIS]Responding with _CM._sub._matterc._udp.local
D: 358 [DIS]Responding with 78FE7423677AD547._matterc._udp.local
I: 364 [DIS]CHIP minimal mDNS configured as 'Commissionable node device'; instance name: 78FE7423677AD547.
I: 373 [DIS]mDNS service published: _matterc._udp
I: 377 [DIS]Updating services using commissioning mode 1
I: 382 [DIS]CHIP minimal mDNS started advertising.
D: 387 [DL]Using wifi MAC for hostname
I: 391 [DIS]Advertise commission parameter vendorID=65521 productID=32773 discriminator=3840/15 cm=1
D: 400 [DIS]Responding with _matterc._udp.local
D: 404 [DIS]Responding with 78FE7423677AD547._matterc._udp.local
D: 410 [DIS]Responding with F4CE360024C2.local
D: 414 [DIS]Responding with F4CE360024C2.local
D: 419 [DIS]Responding with _V65521._sub._matterc._udp.local
D: 424 [DIS]Responding with _S15._sub._matterc._udp.local
D: 429 [DIS]Responding with _L3840._sub._matterc._udp.local
D: 434 [DIS]Responding with _CM._sub._matterc._udp.local
D: 440 [DIS]Responding with 78FE7423677AD547._matterc._udp.local
I: 445 [DIS]CHIP minimal mDNS configured as 'Commissionable node device'; instance name: 78FE7423677AD547.
I: 455 [DIS]mDNS service published: _matterc._udp
I: 459 [IN]CASE Server enabling CASE session setups
D: 464 [IN]SecureSession[0x20004288]: Allocated Type:2 LSID:36094
I: 470 [SVR]Joining Multicast groups
I: 473 [SVR]Server Listening...
I: 476 [DL]Device Configuration:
I: 479 [DL]  Serial Number: 11223344556677889900
I: 484 [DL]  Vendor Id: 65521 (0xFFF1)
I: 487 [DL]  Product Id: 32773 (0x8005)
I: 491 [DL]  Product Name: not-specified
I: 494 [DL]  Hardware Version: 0
I: 498 [DL]  Setup Pin Code (0 for UNKNOWN/ERROR): 20202021
I: 503 [DL]  Setup Discriminator (0xFFFF for UNKNOWN/ERROR): 3840 (0xF00)
I: 510 [DL]  Manufacturing Date: (not set)
I: 514 [DL]  Device Type: 65535 (0xFFFF)
I: 518 [SVR]SetupQRCode: [MT:6FCJ142C00KA0648G00]
I: 522 [SVR]Copy/paste the below URL in a browser to see the QR Code:
I: 528 [SVR]https://project-chip.github.io/connectedhomeip/qrcode.html?data=MT%3A6FCJ142C00KA0648G00
I: 537 [SVR]Manual pairing code: [34970112332]
I: 545 [DL]CHIP task running
I: 559 [DL]CHIPoBLE advertising started
I: 563 [ZCL]Cluster OnOff: attribute OnOff set to 0
I: 567 [ZCL]Cluster LevelControl: attribute CurrentLevel set to 254
I: 574 [DL]NFC Tag emulation started
I: 30562 [DL]CHIPoBLE advertising mode changed to slow
I: 30570 [DL]CHIPoBLE advertising started

 

 

그럼 수고하세요.

반응형