Bob Recny
Greetings, I'm working on adding a board to Zephyr. I'm attempting to use a board.c file to configure GPIO pins as output and initialize them low on start-up. I've attempted to follow existing boards, but am not being successful. CMakeLists.txt:
board.c:
Any suggestions? Thanks, Bob
|
|
Set zephyr EXACT version
Rodrigo Brochado
Hello,
How can I restrain zephyr to be at a specific version on my application CmakeLists.txt? I've done this: find_package(Zephyr 2.7.0 EXACT) even on the hello_world sample and it compiled normally with 2.4.0 without complains. I've also unset ZEPHYR_BASE with no success. I've followed this guide: https://docs.zephyrproject.org/latest/guides/zephyr_cmake_package.html#zephyr-cmake-package-version Thanks!
|
|
SDK 0.13.0-alpha-1 Release
Kumar Gala
Hi all,
Just wanted to let people be aware few have an alpha release of the v0.13.0 SDK. The main focus of this alpha release is to enable ARC64 support in the toolchain. Additionally we’ve updated gcc to be based on the GCC 10.3.0 release and pulled in QEMU 6.0.0. I expect we will update OpenOCD to be based on a snapshot post the v0.11.0 release. Also, there’s expectation that ESP32 support will be added as well. The SDK can be found here: https://github.com/zephyrproject-rtos/sdk-ng/releases/tag/v0.13.0-alpha-1 general: Added support for ARC64. NOTE: GDB isn't currently supported for ARC64. qemu: Updated to QEMU 6.0.0 Added arc64 support. NOTE: this update ARC support replaces the machine (-M simhs) with (-M virt). This change will require updates to boards/arc/qemu_arc/board.cmake in Zephyr to match. gcc: Update to gcc 10.3 release Added support for ARC64 binutils: Updated to add support for ARC64 newlib: Updated to add support for ARC64 crosstool-ng: sync with upstream. Upstream now supports newlib-nano so we drop our Zephyr specific updates. This also pulls in gcc-10.3 and initial support for ARC64. yocto: Update to yocto 3.2.3 baseline. This is in prep to support building qemu-6.0.0 Thanks to all that contributed fixes and enhancements to this version of the SDK. - k
|
|
Re: [Zephyr-devel] Network forum agenda
Jukka Rissanen
One topic emerged:
toggle quoted messageShow quoted text
- WiFi and wpa supplicant support in Zephyr Cheers, Jukka
On Mon, 2021-05-03 at 17:57 +0300, Jukka Rissanen wrote:
Hi all,
|
|
Network forum agenda
Jukka Rissanen
Hi all,
There is a network forum meeting tomorrow Tue 4 May at 8AM PST / 17.00 CEST. Currently the agenda is empty, so if there is anything network related topics you want to discuss, please let me know, otherwise I will cancel the meeting. Live Agenda/Minutes: https://docs.google.com/document/d/1qFsOpvbyLzhflJbbv4Vl__497pKHDoUCy9hjAveyCX0/edit?usp=sharing Shared Folder: https://drive.google.com/drive/folders/1j6d0FLeOjiMil1Ellb59AsfHdzuWdAAc?usp=sharing ___________________________________________________________ Join Microsoft Teams Meeting ( https://teams.microsoft.com/l/meetup-join/19%3ameeting_NDU5ODRkNzktZDBmNC00MDg5LWI2OWEtNzM0MGZjMDU0Yjgw%40thread.v2/0?context=%7b%22Tid%22%3a%22af0096d9-700c-411a-b795-b3dd7122bad2%22%2c%22Oid%22%3a%22841a7c92-7816-4faf-9887-5e334e88f6d8%22%7d ) +1 321-558-6518 ( tel:+1 321-558-6518,,458216365# ) United States, Orlando (Toll) Conference ID: 458 216 365# Local numbers ( https://dialin.teams.microsoft.com/325d775d-c910-441e-90d0-353ebaa56cdd?id=458216365 ) | Reset PIN ( https://mysettings.lync.com/pstnconferencing ) | Learn more about Teams ( https://aka.ms/JoinTeamsMeeting ) | Meeting options ( https://teams.microsoft.com/meetingOptions/?organizerId=841a7c92-7816-4faf-9887-5e334e88f6d8&tenantId=af0096d9-700c-411a-b795-b3dd7122bad2&threadId=19_meeting_NDU5ODRkNzktZDBmNC00MDg5LWI2OWEtNzM0MGZjMDU0Yjgw@thread.v2&messageId=0&language=en-US ) Cheers, Jukka
|
|
No binding for LIS3DH
#dts
Kiril Zyapkov
I played with Zephyr back in 2018 -- I had a working setup with custom out-of-tree board for CJMCU8223 -- a Chinese thingy with NRF51. Some days ago, I decided to revive this setup and use it for a toy project.
It took some fiddling to adapt to the latest Zephyr and `west`, but I think I got most everything in place. One issue remains though -- I cannot get a binding for the LIS3DH sensor onboard. I think the issue comes from some mismatch in the "compatible" strings and related DT glue -- at some point LIS3DH has been merged with LIS2DH. It must be some obvious oversight, but I don't know the system well enough to trace it. I think the issue is not with my custom board, because trying to build `zephyr/samples/sensor/lis2dh` for one of the in-tree boards with LIS3DH sensors results in the same error: #warning "LIS2DH driver enabled without any devices" or a linker error if using `DEVICE_DT_GET()`. To reproduce: Add the okay for the sensor node in, say, 96b_wistrio.overlay: &i2c1 { lis3dh@32 { status = "okay"; }; }; Change `st_lis2dh` to `st_lis3dh` in `zephyr/samples/sensor/lis2dh/src/main.c` Run `west build -b 96b_wistrio zephyr/samples/sensor/lis2dh` Also, my custom board, failing in the same way: git clone https://github.com/kzyapkov/zephyr-cjmcu8223/ west build -b cjmcu8223 zephyr-cjmcu8223/sample_app/ I hope that's something trivial to fix. Cheers! -- Kiril
|
|
STM32: Clock control configuration moved from Kconfig to device tree
Erwan Gouriou
Hi, We've started to transition STM32 clock system configuration from Kconfig to dts. The main change (that introduces the whole mechanism) has been merged earlier this week, making it available to L4/F4 and WB series: It was followed by another change continuing the transition for remaining series (F0/F1/F2/F3/F7/G0/G4/L0/L1/L5/WL) and was merged earlier today. The last change impacts H7 and is currently under review: This series of changes allows to configure the whole stm32 clock system using device tree, but for now, no extra modification is done in stm32 clock_control drivers. Kconfig style configuration is still functional but will be tagged as deprecated. For now, only a couple of in tree boards have been converted to the new dts based method. I've raised an issue to track the mass conversion of the existing in tree boards By the way, we're welcoming community contributions for this task! Once all boards are converted, we'll be able to deprecate the Kconfig part, which I hope could be done in DV2.6.0 timeframe. During deprecation period, the stm32 clock_control developments involving device tree will be limited in order to keep backward compatibility with Kconfig. This is done as a convenience for out of tree users. But for instance, code additions like support of new series or PLLs will be implemented directly using device tree. After the deprecation period, STM32 Kconfig clock_control part will be removed and we'll be able to rework STM32 clock_control driver deeper and take advantage of the benefits provided by device tree. Don't hesitate to reach me on slack if you have questions. Cheers Erwan ![]()
|
|
Googletest as a Zephyr module for native_posix target
#nrf52
tjones@...
I'm new to Zephyr and am trying to get a Linux VM hosted native_posix unit test build environment set up for our Zephyr nRF52 embedded project.
I've set up the Zephyr SDK and west native_posix (& qemu_x86) build environment and can build and run the samples and a simple hello world test under my Ubuntu 20.04 Linux VM. We'd like to use GoogleTest/Mock for our unit test environment within the Zephyr native_posix environment. Has anyone here got that working? I've got some way following this StackOverflow post unit-testing-c-code-into-zephyr-with-googletest , but unfortunately it does not provide details of the module.yml and Kconfig file contents. I don't yet know enough to fill them in myself and west / cmake reports that my googletest module is "not a valid zephyr module". Any help or pointers would be appreciated!
|
|
Re: Zephyr HCI USB vs Bluez version
Piotr Barszczewski <piotr@...>
Furthermore the same thing happens using bluetoothctl which seems to be the prefered way of doing HCI on Linux over the gatttool and hcitool. I really can’t find a way to read/write with any bluez utils and nRF52840 DK with HCI_USB firmware. On the other hand a simple CSR dongle works ok. With nRF52840DK and HCI_USB it’s always the same story, it connects but doesn’t do anything and disconnects after ~10 seconds. Is there any way to make it work with a pretty normal BLE device? Never any had issues with connecting from phones or other HCI dongles, just one with Zephyr based HCI.
On 23 April 2021 at 20:12:16, Piotr Barszczewski (piotr@...) wrote:
|
|
Zephyr HCI USB vs Bluez version
Piotr Barszczewski <piotr@...>
Hello, Is there some guide on which of the recent kernel/bluez/linux versions does the HCI_USB ( https://github.com/zephyrproject-rtos/zephyr/tree/master/samples/bluetooth/hci_usb ) work on nRF52840_pca100056 board? I’m having quite hard time figuring how to make it work beyond being able to scan, connect or disconnect. As an example I usually try the following with any HCI device: 1. Connect to my test device with gatttool 2. Try to discover characteristics 3. Send a few bytes with char-write-cmd … 4. Observe on test device if it was received 5. Disconnect The problem I’m observing on Ubuntu 20 with kernel 5.8.0-50 is that the nRF DK enumerating as port hci1 always has it’s address set to 00:00:00:00:00:00 and does not do anything beyond connecting. Tried with Bluez 5.55 and 5.58, my bluetoothd.service already has -E flag set. Usually I’m working with CSR dongles and never had issues with multiple HCI devices connected and thought that it would be a quick test do compare how nRF52840 performs with Zephyr. Yet here I am out of ideas on what to do next, asking the very basic question, bit puzzled on how yo make such a simple thing work. Would really appreciate if someone could point me to how to make Zephyr HCI work with any Bluez Best regards
|
|
HTTP client not connecting to Microsoft Azure Blob Storage
#fota
petrus.vanderwalt@...
Hi everyone,
I want to create a FOTA solution for my project. I am trying to use the HTTP client to download a file from Microsoft Blob storage. My issue is that the HTTP client does not connect to my Blob storage host address "zephyriot.blob.core.windows.net" using MBed TLS and the Baltimore CyberTrust Root certificate. I have checked that the URL copied from blob storage does work when using my internet browser. The HTTP client does connect when I use my IoT hub host address "WCM.azure-devices.net". I have included my source code for you to look at. I am hoping that someone here has had success downloading files from Blob storage and can provide a solution to my issue. Any help is much appreciated. This is the output: Preparing HTTP GET request for http://zephyriot.blob.core.windows.net:443/downloads/BlobDownloadTest_v_0.0.0.txt
uart:~$ getaddrinfo status: 0
addrinfo @0x20014dc0: ai_family=1, ai_socktype=1, ai_protocol=6, sa_family=1, sin_port=bb01
sock = 0
Error: connect(sock, res->ai_addr, res->ai_addrlen)
exit
|
|
Re: STM32F107 clocks
Gunnar Bråding
Awesome! Worked like a charm. Thanks a bunch!
toggle quoted messageShow quoted text
Cheers, — Gunnar
On 16 Apr 2021, at 15:10, Attie Grande <attie.grande@...> wrote:
|
|
Final Reminder: CFP -- Zephyr Developer Summit 2021
Members of the Zephyr Community, A final reminder that the Call for Papers for the Zephyr Developer Summit closes tomorrow (Tuesday, April 20): Look for schedule announcement and registration on May 5. Thank you, Brett
On Wed, Apr 14, 2021 at 10:00 AM Brett Preston <bpreston@...> wrote:
--
|
|
HC-SR04 connection to particle argon
#nrf52480
Smitha Ratnam <s.ratnam@...>
I need to connect the HC-SR04 ultrasonic sensor to the particle argon board and use it for distance measurement with Zephyr.
What is the device binding that needs to be done in zephyr for this?
Are there any zephyr samples that can help? Thanks and regards, Smitha.
|
|
HC-SR04 connection to particle argon
s.ratnam@...
Hi,
I need to connect the HC-SR04 ultrasonic sensor to the particle argon board and use it for distance measurement with Zephyr.
What is the device binding that needs to be done in zephyr for this?
Are there any zephyr samples that can help?
Please advise.
Thanks and regards,
Smitha.
|
|
Re: STM32F107 clocks
Erwan Gouriou
Awesome, thanks for sharing Artie!
Le ven. 16 avr. 2021 à 15:11, Attie Grande <attie.grande@...> a écrit : Hi Gunnar,
|
|
Re: STM32F107 clocks
Attie Grande <attie.grande@...>
Hi Gunnar,
toggle quoted messageShow quoted text
We got the PLL2 code into the STM32CubeF1 codebase a little while ago [1]. There are also some patches for adding this support into Zephyr, but I need to revisit them / make a PR now that the PLL2 support was merged into STM32CubeF1... [2][3][4]. I hope that helps! Attie [1]: https://github.com/STMicroelectronics/STM32CubeF1/commit/f5aaa9b45492d70585ade1dac4d1e33d5531c171 [2]: https://github.com/argentum-systems/zephyr/commit/6c167af50aeca2fc5f6e760de205807fda51c1c9 [3]: https://github.com/argentum-systems/zephyr/commit/cb65e6da942f907b63f0711b57318839561264b6 [4]: https://github.com/argentum-systems/zephyr/commit/da99de64bcf9cbb3dc8a2e1da2e0a4fb9f45258b
On Thu, 15 Apr 2021 at 14:29, Erwan Gouriou <erwan.gouriou@...> wrote:
|
|
Re: STM32F107 clocks
Gunnar Bråding
Ahhh... Thanks! Then I don’t need to feel too stupid for not understanding it. 😀
toggle quoted messageShow quoted text
Cheers, -- Gunnar
On 15 Apr 2021, at 15:29, Erwan Gouriou <erwan.gouriou@...> wrote:
|
|
Re: STM32F107 clocks
Erwan Gouriou
Hi Gunnar, Unfortunately, we miss code for PLL2 configuration as PLL input. Though, I'm adding Attie who investigated that point and may have code to get it working. BR Erwan
On Thu, 15 Apr 2021 at 10:51, Gunnar Bråding <gunnar@...> wrote: Hi!
|
|
STM32F107 clocks
Gunnar Bråding
Hi!
I got a board with the crystal at 25MHz, and need to use the PLL2 as input to the system clock. I just do not seem to understand the code enough to see how to set the prediv and multiplication for the PLL2 I can choose PLL2 as input to the PLL, and PLL as input to the system clock, but how do set the parameters for PLL2? Any pointers would be very much appreciated. Cheers, — Gunnar
|
|