Part Number: CC2340R5
Other Parts Discussed in Thread: UNIFLASH
Tool/software:
I am trying to run a BLE example on the #LP-EM-CC2340R5 using the Zephyr OS. I setup my environment yesterday using the simplelink-zephyr repository, tag v3.7.0-ti-8.20.01_ea, using the process described in the Readme.md. I've successfully built and ran some basic Zephyr examples, but my attempt to build and run the peripheral_dis example is failing.
I am using VSCode adn west to build the example:
PS Command: west build -p always -b lp_em_cc2340r5 samples\bluetooth\peripheral_dis
Zephyr SDK Version: 0.17.0
There is one warning when generating the build environment:
The object file directory
C:/Users/jimd2/Src/ZephyrSandbox/TIZephyr/zephyr/build/modules/ti/simplelink_lpf3/source/ti/devices/cc23x0r5/CMakeFiles/..__modules__hal__ti__simplelink_lpf3__source__ti__devices__cc23x0r5.dir/./
has 195 characters. The maximum full path to an object file is 250
characters (see CMAKE_OBJECT_PATH_MAX). Object file
rf_patches/lrf_rfe_binary_coherent_pll_nopll_cc23x0r5.c.obj
cannot be safely placed under this directory. The build may not work
correctly.
The code builds and links, but there is a warning:
C:/Users/jimd2/Src/ZephyrSandbox/TIZephyr/zephyr/subsys/bluetooth/host/l2cap.c:876:17: warning: implicit declaration of function 'bt_tx_irq_raise' [-Wimplicit-function-declaration]
876 | bt_tx_irq_raise();
| ^~~~~~~~~~~~~~~
I am programming the .HEX file using JFlash Lite Version 7.94i
I am using the nRFConnect Android App to try and connect and inspect the device information. It connects briefly, but then has a problem. Here is the log:
nRF Connect, 2024-11-27
DIS peripheral (84:72:93:3C:5B:06)
V 11:02:51.165 Connecting to 84:72:93:3C:5B:06...
D 11:02:51.165 gatt = device.connectGatt(autoConnect = false, TRANSPORT_LE, preferred PHY = LE 1M)
D 11:02:51.451 [Callback] Connection state changed with status: 0 and new state: CONNECTED (2)
I 11:02:51.451 Connected to 84:72:93:3C:5B:06
V 11:02:51.461 Discovering services...
D 11:02:51.461 gatt.discoverServices()
D 11:02:51.474 [Broadcast] Action received: android.bluetooth.device.action.ACL_CONNECTED
I 11:02:51.688 PHY updated (TX: LE 2M, RX: LE 2M)
I 11:02:52.083 Connection parameters updated (interval: 7.5ms, latency: 0, timeout: 5000ms)
I 11:02:56.400 Connection parameters updated (interval: 30.0ms, latency: 0, timeout: 420ms)
D 11:03:21.785 [Callback] Connection state changed with status: 22 and new state: DISCONNECTED (0)
E 11:03:21.785 Error 22 (0x16): GATT CONN TERMINATE LOCAL HOST
I 11:03:21.785 Disconnected
D 11:03:21.821 [Broadcast] Action received: android.bluetooth.device.action.ACL_DISCONNECTED
I'm not sure if one of these two warnings could be the culprit, or if it is something different all together. Looking for suggestions.



