Re: SPI Kconfig.nrfx changes in recent (1.13.99) clone - setting GPIO pins for SPI master now fails.
cpmcparland@...
Jan,
Thanks....am working on an overlay now. Sure makes the prj.cfg look a lot cleaner. Am I right to expect that this sort of transformation will make its way into other drivers as well (e.g. I2C)? Regards, Chuck
|
|
subsys/storage/flash_map - FLASH_DEV_NAME definition
Jiří Kubias <jiri.kubias@...>
Hi, Im playing with subsys/storage/flash_map and I have one problem with flash_drivers_map structure. Currently it is defined as struct driver_map_entry { u8_t id; const char * const name; }; static const struct driver_map_entry flash_drivers_map[] = { #ifdef FLASH_DEV_NAME /* SoC embedded flash driver */ {SOC_FLASH_0_ID, FLASH_DEV_NAME}, #endif #ifdef CONFIG_SPI_FLASH_W25QXXDV {SPI_FLASH_0_ID, CONFIG_SPI_FLASH_W25QXXDV_DRV_NAME}, #endif }; Im using SOC flash map so I need to define FLASH_DEV_NAME - by looking into the source codes is sees tat it should be defined in dts.fixup - for example it is defined in: ./arch/arm/soc/nordic_nrf/nrf52/dts.fixup:29:#define FLASH_DEV_NAME NRF_NRF52_FLASH_CONTROLLER_4001E000_LABEL But from structure driver_map_entry definition the second variable must be a const char * const name - so it does not fit. So am I doing something wrong or it is need some fixes in Zephyr? In my opinion is should be defined in .config file as CONFIG_FLASH_MAP_DEV_NAME Im using 1.13.0 as stable release. Regards, Jiri =================================================== Ing. Jiri Kubias e-mail: jiri.kubias@... mobile: 775 593 956 ===================================================
|
|
Re: SPI Kconfig.nrfx changes in recent (1.13.99) clone - setting GPIO pins for SPI master now fails.
Jan Van Winkel <jan.van_winkel@...>
Hi Chuck, SPI config has switched to devicetree and you only need following configs in you prj.conf file for SPI_0: CONFIG_SPI=y CONFIG_SPI_0=y CONFIG_SPI_NRFX=y All other configurations come from the boards DTS files. Have a look at boards/arm/nrf52840_pca10059/nrf52840_pca10059.dts and dts/arm/nordic/nrf52840.dtsi . In case you need to adapt the default settings you can add an overlay to your project directory. For more info on overlays see https://docs.zephyrproject.org/latest/application/application.html#application-dt . Regards, Jan
On Mon, Oct 22, 2018 at 1:18 AM <cpmcparland@...> wrote: My zephyr app, built on ver 1.13.0 with the following prj.cfg file:
|
|
Workq stack size confusion
Christoph Schramm <schramm@...>
Dear All,
I’m really confused about the workqs at the moment. I want to implement a modem driver and for that I need a Workq to process AT commands sequentially. Idea was, to have multiple structs carrying info about the stacks, so I tried to create a “device context struct” like this:
struct uart_dev_ctx { struct k_thread rx_thread; }
But it seems this is not legal, because when accessing the stack, I immediately get MPU faults.
This is how I simply assign it: dev_ctx.rx_thread = quectelmdm_rx_thread;
I checked with STACK_ANALYZE("RX stack", dev_ctx.rx_thread_stack);
And it gives “4” (which is the alignment size)
While STACK_ANALYZE("RX stack", quectelmdm_rx_stack);
gives 1024 which is correct and the real size
Any suggestions how I can share Stacks with structs?
Thanks, Chris
|
|
SPI Kconfig.nrfx changes in recent (1.13.99) clone - setting GPIO pins for SPI master now fails.
cpmcparland@...
My zephyr app, built on ver 1.13.0 with the following prj.cfg file:
CONFIG_FLOAT=y CONFIG_FP_SHARING=y CONFIG_NEWLIB_LIBC=y CONFIG_HEAP_MEM_POOL_SIZE=16384 CONFIG_GPIO=y CONFIG_SPI=y CONFIG_SPI_0=y CONFIG_SPI_ASYNC=y CONFIG_SPI_0_NAME="SPI_0" CONFIG_SPI_0_OP_MODES=1 CONFIG_SPI_0_IRQ_PRI=0 CONFIG_SPI_NRFX=y CONFIG_SPI_0_NRF_SPIM=y CONFIG_SPI_0_NRF_SCK_PIN=28 CONFIG_SPI_0_NRF_MOSI_PIN=29 CONFIG_SPI_0_NRF_MISO_PIN=30 CONFIG_SPI_0_NRF_ORC=0xf built and ran successfully on a nrf52840_pca10056 board. I have recently updated to ver 1.13.99 and it no longer gets through cmake because several symbols are no longer in the Kconfig.nrfx file for the SPI driver. Namely, CONFIG_SPI_0_SCK_PIN, _MOSI_PIN, and _MISO_PIN. I need to set these pins to coincide with target hardware, Also, SPI_0_NAME seems to have disappeared. Looking more closely at the Kconfig.nrfx files from both clones, the latest version has changed and does not include symbols to set up these pins. I guess I could edit the .config file, but that would be overwritten every time I run cmake. Maybe I'm just out of phase here. Is there a nrf spim driver update in progress? Any help would be appreciated. Thanks, Chuck
|
|
Re: bt_le_scan of node in Mesh network
Martin <ma@...>
Hi!
toggle quoted messageShow quoted text
Thanks, this looks exactly like what I was looking for. Even seems to be easier than the NRF52 SDK-approach with the timing API. Best Regards, Martin Am Mo., 15. Okt. 2018 um 08:25 Uhr schrieb <julian.schneider@...>:
|
|
Re: Slip TCP connection between linux host and nrf52840
Andrei Emeltchenko <andrei.emeltchenko@...>
Hi,
On Thu, Oct 18, 2018 at 11:22:10AM -0700, cpmcparland@... wrote: All,Some Linux distros might do most of work configuring interfaces for you. If you enable IPv4 autoconfiguration and LLMNR or mDNS you should be able to access zephyr with short name "zephyr" or "zephyr.local". We need to document this though... Best regards Andrei Emeltchenko Adding the overlay config file in the cmake is a
|
|
Zephyr SDK 0.9.4-rc5 available for testing
Nashif, Anas
Hi, A release candidate of the Zephyr SDK is available for general testing. It has the following changes since the 0.9.3 release:
- New QEMU release (based on 3.0.0+git 19b599f7664b2ebfd0f405fb79c14dd241557452) - New OpenOCD based master with Zephyr related changes (commit: 05e0d633) - New DTC version 1.4.7+git (commit 2e930b7f8f6421638869a04b00297034c42e1a82)
The release can be found here: https://github.com/zephyrproject-rtos/meta-zephyr-sdk/releases/tag/0.9.4-rc5
Note: Qemu for NIOS2 and RISCV are not compatible with current master of Zephyr and require additional changes that are maintained in pull request:
https://github.com/zephyrproject-rtos/zephyr/pull/10136
Please test that release and let us know if you find any issues.
Regards, Anas
|
|
Re: Slip TCP connection between linux host and nrf52840
Paul Sokolovsky
Hello,
On Thu, 18 Oct 2018 11:22:10 -0700 cpmcparland@... wrote: All,[] ble/ipv6. At least that's my plan at the moment. But, I am curiousI'm sure that someone without imagination would just stream data over old good serial connection - either in textual form, as a sequence of lines, or with some simple binary protocol. From my side, I can only encourage people to play with something more advanced than that - we need people to try that, report back results, us fix it as needed. Oftentimes it's indeed a matter of docs [1] (including common pitfalls and troubleshooting sections). So indeed, without poking, too little and too slow will happen, so thanks for trying it! [1] I for one ate enough dogfood on playing with BLE IPSP support and tried to provide detailed enough walkthru on setting it up in the corresponding docs: https://docs.zephyrproject.org/latest/samples/bluetooth/ipsp/README.html -- Best Regards, Paul Linaro.org | Open source software for ARM SoCs Follow Linaro: http://www.facebook.com/pages/Linaro http://twitter.com/#!/linaroorg - http://www.linaro.org/linaro-blog
|
|
Re: Slip TCP connection between linux host and nrf52840
cpmcparland@...
Marti,
Not rude at all...will look over your web site. Finding the right fit for a commercial embedded, mostly software product is a tough problem. Will be interested to see where you folks fit in the "app stack". Will contact foundries.io separately if I have further product questions. Cheers, Chuck
|
|
Re: Slip TCP connection between linux host and nrf52840
Marti Bolivar <marti@...>
Hi Chuck, On Thu, Oct 18, 2018 at 12:22 PM <cpmcparland@...> wrote: All, Since you've asked, I guess it's not rude to note that my company (https://foundries.io/) does have Linux-based BLE/IP gateway software you can take a look at (with support for multiple architectures and boards). They're integrated with Zephyr; we provide detailed instructions in our docs for how to set them up etc. They work with nRF52840 on the Zephyr side, as well as other boards. The product is subscription-based but you get full source access. Best, Marti
|
|
Re: Slip TCP connection between linux host and nrf52840
cpmcparland@...
All,
Thanks for the suggestions and sharing results. I think I'll go with USB network device solution. I've tried the sample "samples/net/echo_server" and, with the addition of the overlay-netusb(?) to the prj.config, it came up and worked. The current docs have the 3 additional linux side commands to add the enumerated net device to the linux ip stack, bring it up and, lastly, provide a route. Adding the overlay config file in the cmake is a nice trick, but took a bit of digging to find an example. I hope this solution will be stable...will report on results. It seems to have fewer moving (and, perhaps, simpler) parts on the linux side than using slip. This issue has come up because my app needs to stream data from a ble (hopefully bluetooth 5) net into a linux platform. Initially tried setting up a HCI connection to zephyr hci firmware running in the ble dongle; but, couldn't get the HCI interface to come up on the linux side. While wading through the btattach and config docs, I came across the usb network device option. Fortunately, I have sufficient resources on the dongle to run a dual stack (ip/ble) and add an app to bring the stream into the linux box as ip - as opposed to hci + ble/ipv6. At least that's my plan at the moment. But, I am curious about how others are dealing with this issue....are folks using (or waiting for!) commercial ble/ip gateways to bridge this gap or is there another solution I'm not aware of yet? Cheers, Chuck
|
|
Re: [Question] zephyr file transfer via BLE
Carles Cufi
Hi there,
I believe mcumgr will allow you to do what you need. Check the smp server sample here: https://github.com/zephyrproject-rtos/zephyr/tree/master/samples/subsys/mgmt/mcumgr/smp_svr And the corresponding Android libraries here: https://github.com/runtimeco/mcumgr-android
Carles
From:
<devel@...> on behalf of 우승우 <du5102@...>
Hi, This is seungwoo
I have a question
If you look at the site below, I can transfer BLE file using Nordic chip. https://devzone.nordicsemi.com/f/nordic-q-a/33093/transfer-big-file-over-ble
nrf52-ble-image-transfer-demo çè Android-Image-Transfer-Demo // file transfer
I am trying to develop a device with BLE functionality using nrf52810 in zephyr OS.
Like nrf52-ble-image-transfer-demo, Can I use zephyr with an application that can transfer files with Android?
Or I would like to ask if there is a case in which Zephyr tried to implement file transmission via BLE.
Thanks you
|
|
[Question] zephyr file transfer via BLE
우승우 <du5102@...>
Hi, This is seungwoo
I have a question
If you look at the site below, I can transfer BLE file using Nordic chip. https://devzone.nordicsemi.com/f/nordic-q-a/33093/transfer-big-file-over-ble
nrf52-ble-image-transfer-demo çè Android-Image-Transfer-Demo // file transfer
I am trying to develop a device with BLE functionality using nrf52810 in zephyr OS.
Like nrf52-ble-image-transfer-demo, Can I use zephyr with an application that can transfer files with Android?
Or I would like to ask if there is a case in which Zephyr tried to implement file transmission via BLE.
Thanks you
|
|
Re: Slip TCP connection between linux host and nrf52840
Dominik.Kilian@...
Hi Chuck,
I was also trying to get slip network driver running on nRF. I was using it to create secure TLS connection. It was in TAP mode. I disabled logs, so the driver was the only user of UART. Generally connection was really unstable. I don't know if it was fault of software on PC or board side. I give up after few tries of getting it working more stable. Are you also want to use secure TLS connection over SLIP? Regards, Dominik
|
|
Re: gPTP and usb network device
cpmcparland@...
Jukka,
Thanks for your suggestion. was not aware that zephyr had sntp. That may well be a better solution. We have two applications with very different time constraints--none of which are at the ns. level. One app needs roughly 10 ms. resolution and a second would like to see something on the order of 50 - 100 usec. BTW, are there any "standard" solutions for time sync (at any resolution) for BLE or bluetooth 5? Cheers, Chuck
|
|
Re: gPTP and usb network device
Jukka Rissanen
Hi Chuck,
toggle quoted messageShow quoted text
the gPTP is probably not a proper solution for this kind time sync as it is normally meant to synchronize two devices with nanosecond accuracy in industrial ethernet environments. The actual time value is typically not that important in these TSN solutions, main thing is the time synchronization between devices. Have you considered using SNTP to synchronize the time, there is already SNTP client supported in Zephyr? This has lower resolution but it should be fine in normal applications. Cheers, Jukka
On Tue, 2018-10-16 at 12:09 -0700, cpmcparland@... wrote:
I'm setting up a IP link between a debian platform and a bluetooth
|
|
Ryan Erickson
Hello Matthias,
By default the BL654 DVK does not connect the external 32 kHz clock. In zephyr, the NRF52840 board files are setup to use the external 32 kHz clock. You have 2 options:
CONFIG_CLOCK_CONTROL_NRF5_K32SRC_RC=y
# CONFIG_CLOCK_CONTROL_NRF5_K32SRC_XTAL is not set
CONFIG_CLOCK_CONTROL_NRF5_K32SRC_500PPM=y
Regards, Ryan
|
|
gPTP and usb network device
cpmcparland@...
I'm setting up a IP link between a debian platform and a bluetooth usb dongle running
zephyr. usb network device interface appears to work fine with the zephyr IP stack running in the dongle. I want the dongle zephyr os to be time sync'd with the linux system and am thinking gPTP would be a good way to achieve this.....particularly because its been implemented on zephyr. There's a note that zephyr gPTP only works on boards that have ethernet hardware links. Am wondering if anyone has tried using gPTP with usb networking enabled? Since the usb interface will likely run at 1Mb/s+ between linux and zephyr (on dongle), I would expect it to behave reasonably well - at least for my application's timing requirements. Any experience or thoughts? Regards, Chuck McP
|
|
Matthias Schuh <matthias.schuh@...>
Hello fellow mailinglist members,
I'm currently trying to get the samples "hci_uart" and "hci_usb" working on a laird654 module / Laird DVK-BL654-1.0 (nrf52480) Both samples work on the nrf52480DK (pca10056) but refuse to work on the Laird654 module. Regarding hci_uart I would like to transfer know-how I gained at the apache mynemt-os project: I got the respective sample from the apache newt project "blehci" working after configuring the nrf52480 to use the synthesized clock and modify the sleep clock accuracy: In the newt world this was achieved via setting syscfg=XTAL_32768=0 syscfg=XTAL_32768_SYNTH=1:BLE_XTAL_SETTLE_TIME=0 syscfg=BLE_LL_OUR_SCA=250:BLE_LL_MASTER_SCA=1 I know these settings are newt specific but how could I achieve this for the zephyr samples ? Looking forward to your reply. Best regards
|
|