Hi,
I am trying to run range test on nrf5340 DK and have some trouble with that. I flashed uc with hci_uart from sample folder and tried to run dtm (from nrf connect) and manually by btattach and hcitool, but i can't see communication on uart0 (pin 22 and pin 20).
My question is how to run dtm (or other simple test) on nrf5340 DK? Did i use correct sample for this (hci_uart)? Did i try correct uart port (usart0 connected to jlink)? How to debug that?
I assume flashing works fine, because i can run hello world sample and see output on dev/ttyACM2.
Env:
Linux, Fedora
Used commands:
west build -p auto -b nrf5340pdk_nrf5340_cpuapp samples/bluetooth/hci_uart /* to build hci_uart app */
west flash /* to flash uc */
/* manually blueZ use */
sudo btattach -B /dev/ttyACM2 -S 1000000 -P h4 /* I tried with different ACM (from 0 to 2) and speed 115200 */
sudo hcitool -i hci1 cmd 0x3f 0x002 /* try to read always available reg, this return Invalid device: Network is down */
Log from btmon: (sudo btmon)
Bluetooth monitor ver 5.54
= Note: Linux version 5.7.7-200.fc32.x86_64 (x86_64) 0.117666
= Note: Bluetooth subsystem version 2.22 0.117670
= New Index: 00:00:00:00:00:00 (Primary,UART,hci1) [hci1] 0.117671
= Open Index: 00:00:00:00:00:00 [hci1] 0.117672
= New Index: 14:2D:27:EE:A7:3A (Primary,USB,hci0) [hci0] 0.117674
= Open Index: 14:2D:27:EE:A7:3A [hci0] 0.117675
= Index Info: 14:2D:27:EE:A7:3A (Broadcom Corporation) [hci0] 0.117675
@ MGMT Open: bluetoothd (privileged) version 1.16 {0x0001} 0.117677
@ MGMT Open: btmon (privileged) version 1.16 {0x0002} 0.117867
= Close Index: 00:00:00:00:00:00 [hci1] 3.189541
@ RAW Open: hcitool (privileged) version 2.22 {0x0003} 9.410407
@ RAW Close: hcitool {0x0003} 9.410420
Log from dtm (nrf_connect):
2020-09-22T06:10:00.188Z INFO No firmware defined for selected device
2020-09-22T06:10:00.189Z INFO Please make sure the device has been programmed with a supported firmware
System report:
# nRFConnect System Report - 2020-09-22T06-10-43.526Z
- System: LENOVO 20238
- BIOS: LENOVO 79CN48WW(V3.07)
- CPU: 1 x Intel Core
i3-4100M 2.50 GHz 4 cores (2 physical)
- Memory: 332.5 MB free of 3.7 GB total
- Filesystem: /dev/mapper/fedora-root (ext4) 49 GB 45.4% used
- OS: Fedora (32) linux x64
- Versions
- kernel: 5.7.7-200.fc32.x86_64
- git: 2.26.2
- node: 12.0.0
- python: 3.8.3
- python3: 3.8.3
- Connected devices:
- /dev/ttyACM0: 000960179267 PCA10095 /* I think this is wrong port name, it should be ACM2, how can I choose this port from application site? */
- Current device:
- serialNumber: 000960179267
- family: nrf53
- type: NRF5340_xxAA_ENGA
- codeAddress 0x00
- codePageSize 4 KiB
- codeSize 1024 KiB
- uicrAddress 0xFF8000
- infoPageSize 4 KiB
- codeRamPresent false
- codeRamAddress 0x00
- dataRamAddress 0x20000000
- ramSize 512 KiB
- qspiPresent true
- xipAddress 0x10000000
- xipSize 262144 KiB
- pinResetPin 0
best regards, mswiatko