ESP32 ADC driver
Matias N.
Hi, I noticed that there's no ADC driver for ESP32 yet and thus I decided to create a very simple internal driver since I need ADC support on my project. I'm currently doing something very similar to espressif's ADC driver, invoking HAL functions. However, I'm not getting good raw ADC readings (getting values between 4096 to 55000). I'm wondering if there's some hidden difficulty in getting ESP32 ADC working in Zephyr, which maybe is the reason why there's no official driver yet. If there's some effort planned/in-progress it would be nice to know about any issues encountered. Best, Matias
|
|
Zephyr Dev Summit Blog
Maemalynn Meanor <maemalynn@...>
HI All:
All of the Device Management videos from the Zephyr Dev Summit were posted. You can find the blog here: https://www.zephyrproject.org/device-management/. Other blogs/videos previously posted: - Power Electronics: https://www.zephyrproject.org/zephyr-rtos-for-power-electronics/ - Commercializing firmware (panel): https://www.zephyrproject.org/commercializing-firmware-based-on-the-zephyr-rtos/ You can also find the videos on our Youtube Channel in the Zephyr Developer Summit Playlist: https://www.youtube.com/playlist?list=PLzRQULb6-ipG39tVb-DEkIoSS5wQlbK6i Next week, we’ll be posting videos related to Virtualization and Memory Isolation videos as well as Boards, Configurations and Hardware Interaction. Have a wonderful weekend! Mae Maemalynn Meanor Senior PR Manager The Linux Foundation ELISA, Open Mainframe Project, Zephyr Project (602) 541-0356 @Maemalynn
|
|
Zephyr SDK 0.13.0-rc1 available
Kumar Gala
Hi all,
We’ve release the first release candidate for the SDK 0.13.0. The main changes in these release are support for ARC64, Qemu 6.0.0, OpenOCD, and some newlib updates/fixes. SDK 0.13.0-rc1 can be found here: https://github.com/zephyrproject-rtos/sdk-ng/releases/tag/v0.13.0-rc1 Please download and try things out and report any issues. Changes since the last release: • 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. - Pull in fixes from upstream for: hw/arm: Fix modelling of SSE-300 TCMs and SRAM • gcc: - Update to gcc 10.3 release - Added support for ARC64 - Removed libgcc transactional memory clone registry support - Fixed incorrect build specs for libstdc++ nano variant. The libstdc++ nano variant, which is used with newlib-nano, is now built with -fno-exceptions to reduce compiled binary size. • binutils: - Updated to add support for ARC64 • newlib: - Updated to add support for ARC64 - Added multithreading support • openocd: - Update to upstream 20210630 snapshot • 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 - k
|
|
Re: stm32 quadrature decoder general purpose timer functionality
Piotr Mienkowski
Hi Matias,
toggle quoted messageShow quoted text
The best way to get stm32 quadrature decoder driver merged into Zephyr is to follow example of qdec_nrfx.c, qdec_sam.c drivers. Check PRs that introduced the respective drivers to see what files need to be added / modified. Yes, you'll need a new binding. Regards, Piotr
On 30.06.21 14:49, Matias N. wrote:
I thought I sent an answer but I don't see it here so I'll send again.
|
|
Re: LittleFS example overwrite falsh memory
#builds
Ermel, Dominik
Hi,
If I understand correctly: the LittleFS partition is configured to start at the 0x080FC000, where you write your data with external tool? The LitteFS does not recognize the data on partition and formats it for itself, by erasing your data and writing the LittleFS superblock.
Regards, Dominik
From: devel@... <devel@...>
On Behalf Of Daniel O via lists.zephyrproject.org
Hi there! I'm using the Samples/Littlefs with an STM32 EVB without any problems. I want to save some data files (txt, html, json, etc) in the uC's flash, so I can read them during the code execution. At this moment I can save the data directly to the memory (starting at 0x080FC000), using external tools, but when I upload the program the data that I have stored previously is overwritten as depicted in the figure. Is this supposed to happen, or I'm doing something wrong?
|
|
LittleFS example overwrite falsh memory
#builds
Daniel O <dsoliveira@...>
Hi there! I'm using the Samples/Littlefs with an STM32 EVB without any problems. I want to save some data files (txt, html, json, etc) in the uC's flash, so I can read them during the code execution. At this moment I can save the data directly to the memory (starting at 0x080FC000), using external tools, but when I upload the program the data that I have stored previously is overwritten as depicted in the figure. Is this supposed to happen, or I'm doing something wrong?
|
|
Cancelled Event: Zephyr Project: Dev Meeting - Thursday, July 1, 2021
#cal-cancelled
devel@lists.zephyrproject.org Calendar <noreply@...>
Cancelled: Zephyr Project: Dev Meeting This event has been cancelled. When: Where: Organizer: devel@... Description: ________________________________________________________________________________
+1 321-558-6518 United States, Orlando (Toll)
Conference ID: 483 314 739#
Local numbers | Reset PIN | Learn more about Teams | Meeting options
________________________________________________________________________________
|
|
stm32: DMA: driver bindings new packaging
Francois RAMU
Hi all,
I'd like to inform STM32 DMA users that I'm pushing a change [1] to simplify the definition of the <dma—cells> properties for dma peripherals of the stm32 MCUs. This change now proposes 3 versions of the dma plus the dmamux in the dts and selects the nb of elements for the <dma-cells> It depends on the type of DMA instance of the stm32 MCU (from Ref. Man). With this :
DMA V1 : DMA with FIFO control à the <dma-cells> has 4 elements : ‘channel’, ‘slot’, ‘channel-config’, ‘feature’ for example on stm32F4 or stm32F2 MCUs
DMA V2 : DMA without FIFO control and selectable request for each channel à the <dma-cells> has 3 elements : : ‘channel’, ‘slot’, ‘channel-config’ for example on stm32L4xx or stm32L0xx MCUs
DMA V2bis : DMA without FIFO control and fixed request (slot) for each channel à the <dma-cells> has 2 elements : : ‘channel’, ‘channel-config’ For stm32L1 and stm32F1 MCUs
DMAMUX multiplexing DMA channels : like a DMA V2 à does not require ‘feature’ parameter For example on stm32G4 or stm32WB MCUs
Benefit is to remove unused parameters in the DTS and simply the structure of the dma peripherals.
To declare a new peripheral client of the DMA, the version of the DMA must be first identify, according to the stm32 Ref Manual. Then the <dma-cells> properties is filled with : ‘channel’ to select a free DMA channel for transfer ‘slot’ to select the peripheral request in DMA V1 or DMA V2 or DMAMUX versions ‘channel-config’, to configure the dma channel ‘feature’ for configuring the FIFO in DMA V1 versions
This change will be hopefully integrated in the next Zephyr DV that will be released in October ‘21.
Cheers FRASTM
[1] https://github.com/zephyrproject-rtos/zephyr/pull/34666
|
|
Re: stm32 quadrature decoder general purpose timer functionality
Matias N.
I thought I sent an answer but I don't see it here so I'll send again.
Thanks for the reply. What I was looking for is a way that could be acceptable for merging upstream, if possible. So should I add a special binding for STM32 decoder functionality? Or what would be the preferred way? Best, Matias
|
|
Event: Zephyr Project: APIs - 06/29/2021
#cal-reminder
devel@lists.zephyrproject.org Calendar <noreply@...>
Reminder: Zephyr Project: APIs When: Where: Organizer: devel@... An RSVP is requested. Click here to RSVP Description: Meeting decisions/discussions in their respective PRs, tracked here: https://github.com/zephyrproject-rtos/zephyr/projects/18 ________________________________________________________________________________
+1 321-558-6518 United States, Orlando (Toll)
Conference ID: 317 990 129#
Local numbers | Reset PIN | Learn more about Teams | Meeting options
________________________________________________________________________________
|
|
RFC: API Change: Mesh: Add return value for opcode callback
Michal Narajowski
Hello, I would like to inform you that I started a Stable API Change procedure regarding Mesh: Add return value for opcode callback. Here is the link to the RFC issue:
|
|
API meeting: agenda
Alexander Wachter
Hi all,
Items for today`s API meeting: Stable API changes - RFC: Flash area changes #34530 (https://github.com/zephyrproject-rtos/zephyr/pull/34530) - Bluetooth: Mesh: Add return value for opcode callback #34606 (https://github.com/zephyrproject-rtos/zephyr/pull/34606) - Bluetooth: gatt: Add option to read multiple without variable length #36281 (https://github.com/zephyrproject-rtos/zephyr/pull/36281) API enhancement items: https://github.com/zephyrproject-rtos/zephyr/issues?q=is%3Aissue+is%3Aopen+sort%3A[…]esc+label%3AEnhancement+no%3Aassignee+label%3A%22area%3A+API%22 If you have additional items, please let me know. Teams link: https://teams.microsoft.com/l/meetup-join/19%3ameeting_NWU2MjZlYWEtZDcwMi00MWQzLTgwMjEtNDdkYjQwMjBjMmFj%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 https://lists.zephyrproject.org/g/devel/calendar https://github.com/zephyrproject-rtos/zephyr/projects/18 Regards, Alex
|
|
Happening Now: Zephyr: Toolchain Working Group - 06/28/2021
#cal-notice
devel@lists.zephyrproject.org Calendar <noreply@...>
Zephyr: Toolchain Working Group When: Where: Organizer: Torsten Rasmussen Description: Live meeting minutes: https://docs.google.com/document/d/1IQKBK-GcJNZG0O9QArqYfvb6Huk5xHscN-XIGEZr-z8/edit#heading=h.x36xe8bnwr9r
________________________________________________________________________________
+1 321-558-6518 United States, Orlando (Toll)
Conference ID: 682 738 030#
Local numbers | Reset PIN | Learn more about Teams | Meeting options
|
|
Event: Zephyr: Toolchain Working Group - 06/28/2021
#cal-reminder
devel@lists.zephyrproject.org Calendar <noreply@...>
Reminder: Zephyr: Toolchain Working Group When: Where: Organizer: Torsten Rasmussen An RSVP is requested. Click here to RSVP Description: Live meeting minutes: https://docs.google.com/document/d/1IQKBK-GcJNZG0O9QArqYfvb6Huk5xHscN-XIGEZr-z8/edit#heading=h.x36xe8bnwr9r
________________________________________________________________________________
+1 321-558-6518 United States, Orlando (Toll)
Conference ID: 682 738 030#
Local numbers | Reset PIN | Learn more about Teams | Meeting options
|
|
Save data files in flash memory
#nvs
Daniel O <dsoliveira@...>
Hi there, I want to save some files (txt, html, etc) in flash memory so I can access them later using the filesystem. I know how to access the flash memory (as described in samples/fs), however my question is how to save the files in flash? Have someone tried something similar?
|
|
Re: Use the drivers files from the custom application directory instead of ZEPHYR_BASE
Srinivasan Tamilarasan
Hi Jacob, Thank you for the response. The issue got resolved now.
Regards, Srinivasan
From: devel@... <devel@...>
On Behalf Of Jacob Avraham
[External Email]: This email arrived from an external source - Please exercise caution when opening any attachments or clicking on links. Srinivasan, From the logs it seems that you managed to pass the configuration phase and it looks that you are able to use your custom application repository properly with your own board, soc, and dts directories. So that's good news. I'm not familiar with the ARM architecture implementation, but it looks like you are missing something related to the clock subsystem configuration, thus some code is not compiled in. To debug, you can throw in the various Kconfig files comment lines like; comment "comment from file foo section bar" and see if it ends up in the final build/zephyr/.config file.
Good luck, Jacob
-- Jacob Avraham | Principal SW Engineer M: +972-52-6970067 | T: +972-9-8865314 Grand Netter building, Kfar Netter, Israel Autotalks | www.auto-talks.com
|
|
Bluetooth API upgrade request
Krzysztof Kopyściński <krzysztof.kopyscinski@...>
Hello,
I would like inform that I created an API upgrade request regarding GATT Read Multiple. Here is the link to RFC issue:
|
|
Re: Periodic Advertising with long periodic intervals
Chettimada, Vinayak Kariappa
Hi Carl,
Question 1, it is a bug, please feel free to send a pull request.
Question 2, the window widening requires that the packet is listened for earlier that the periodic interval, hence the reduced interval_us. And the window used is twice the window widening value in the lower link layer. Thereafter, the drift is compensated for based on successful anchor point reception. No action required in the implementation.
Regards, Vinayak
From: devel@... <devel@...>
On Behalf Of Carl Stehle via lists.zephyrproject.org
I am having some difficulty establishing and maintaining scan
|
|
Re: Use the drivers files from the custom application directory instead of ZEPHYR_BASE
Jacob Avraham
Srinivasan, From the logs it seems that you managed to pass the configuration phase and it looks that you are able to use your custom application repository properly with your own board, soc, and dts directories. So that's good news. I'm not familiar with the ARM architecture implementation, but it looks like you are missing something related to the clock subsystem configuration, thus some code is not compiled in. To debug, you can throw in the various Kconfig files comment lines like; comment "comment from file foo section bar" and see if it ends up in the final build/zephyr/.config file. Good luck, Jacob Jacob Avraham | Principal SW Engineer M: +972-52-6970067 | T: +972-9-8865314 Grand Netter building, Kfar Netter, Israel Autotalks | www.auto-talks.com
|
|
Periodic Advertising with long periodic intervals
Carl Stehle
I am having some difficulty establishing and maintaining scan
synchronization to a Periodic Advertising train when the Periodic Advertising interval is relatively long (e.g. 10+ seconds). I am using 2 nRF52840 DK boards (v1.1.10 2019.9) and a post-Zephyr v2.6.0 version (commit #1836f10bb701f2b20f18bc59ec943cc39f57a9fc). The Advertiser is samples/bluetooth/periodic_adv (with modified Periodic Advertising interval values of 8000 i.e. 10sec). The Scanner is samples/bluetooth/periodic_sync Synchronization works well with shorter intervals (and sometimes with longer intervals). I have two questions: 1. In subsys/bluetooth/controller/ll_sw/ull_scan_aux.c ull_scan_aux_setup(), should the block: if (aux_ptr->ca) { window_widening_us = aux_offset_us / 2000U; } else { window_widening_us = aux_offset_us / 20000U; } be instead: if (aux_ptr->ca) { window_widening_us = aux_offset_us / 20000U; } else { window_widening_us = aux_offset_us / 2000U; } The reason being that in the Core Specification 5.2 Vol 6, Part B 2.3.4.5 AuxPtr field, CA value of 0 is 51-500ppm so window widening should be greater than for CA value of 1, which is 0-50ppm. 2. In subsys/bluetooth/controller/ll_sw/ull_sync.c: ull_sync_setup() [and perhaps subsys/bluetooth/controller/ll_sw/ull_slave.c: ull_slave_setup()], should the "remainder_periodic" argument to ticker_start() equal the interval after window widening? Currently, the "ticks_periodic" argument to ticker_start() is computed from: interval_us -= lll->window_widening_periodic_us; (presumably to advance the scan by the window widening amount?) but "remainder_periodic" is also computed from the same value. Perhaps: "ticks_periodic" = interval_us - lll->window_widening_periodic_us; "remainder_periodic" = interval_us + lll->window_widening_periodic_us; Regards, Carl
|
|