Tomorrow's API meeting: Agenda
Carles Cufi
Hi all,
This week we will look at: - QSPI/jedec API proposal vs SPI API extension: - https://github.com/zephyrproject-rtos/zephyr/pull/20069 vs - https://github.com/zephyrproject-rtos/zephyr/pull/20564 - GPIO: Update on progress - Look at the PRs with driver conversion (https://github.com/zephyrproject-rtos/zephyr/issues/18530) - Check users of GPIO APIs: https://github.com/zephyrproject-rtos/zephyr/issues/20017 - Tips for converting users can be found here: https://github.com/zephyrproject-rtos/zephyr/issues/20017#issuecomment-549315497 (thanks Peter!) - Any additional outstanding PRs to topic-gpio Additional items in the "Triage" column in the GitHub project may be discussed if time permits. If you want an item included in the meeting, please add it to the GitHub project. https://github.com/zephyrproject-rtos/zephyr/wiki/Zephyr-Committee-and-Working-Group-Meetings#zephyr-api-discussion https://github.com/zephyrproject-rtos/zephyr/projects/18 https://docs.google.com/document/d/1lv-8B5QE2m4FjBcvfqAXFIgQfW5oz6306zJ7GIZIWCk/edit Regards, Carles
|
|
New topic branch created: topic-ble-llcp
Carles Cufi
Hi all,
We have just created a new topic branch to work on refactoring the BLE Link Layer control procedures. If you are interested in this work feel free to follow that branch and the Pull Requests that will be posted against it. Regards, Carles
|
|
Zephyr 2.1.0-rc1 tagged
David Leach
Hi Zephyr developers,
Zephyr 2.1.0-rc1 release candidate has been tagged.
All required features scheduled for 2.1 release are now merged into master. As of now we are in the stabilization phase for 2.1 release; the merge window is closed for new features and enhancements, and will remain closed until the release date. We will also start working on filling in the existing skeleton for the release notes.
During the stabilization period only bug-fix, documentation, and stabilization-related patches may be merged to master. Additional features or enhancements for 2.1 release will require approval by TSC.
As we need to reduce bug counts for the release, you are all encouraged to submit PRs that close existing bug reports, and to help reviewing such PRs submitted by other contributors or maintainers.
Testing Zephyr release candidate branches is also requested; please, test the code base and file bug reports so they can be addressed before the release deadline.
The full release log can be found here: https://github.com/zephyrproject-rtos/zephyr/releases/tag/v2.1.0-rc1
More details about Zephyr releases is found here: https://github.com/zephyrproject-rtos/zephyr/wiki/Program-Management
The final release is tentatively scheduled for November 29th.
Thank you to everybody who contributed to this release!
David Leach
David Leach
NXP Semiconductors phone: +1.210.241.6761 Email: david.leach@...
** PROPRIETARY & COMPANY-CONFIDENTIAL **
|
|
Re: Issue in OTA of zephyr OS over UART on Nordic nrf52840_pca10056 chip
#ble
#bluetoothmesh
#nrf52840
#uart
Mayank <mayank7117@...>
Thanks Adam, I have disabled BT and Shell, Only UART is there.
Now, when i run the command with debug mode --> mcumgr -ldebug --conntype=serial --connstring='dev=/dev/ttymxc0,baud=115200' echo hello I'm getting following response with timeout. DEBU[2019-11-07 15:24:57.671] Using connection profile: name=unnamed type=serial connstring=dev=/dev/ttymxc0,baud=115200 DEBU[2019-11-07 15:24:57.678] {add-nmp-listener} [serial_sesn.go:213] seq=66
DEBU[2019-11-07 15:24:57.68] Encoded &{NmpBase:{hdr:{Op:2 Flags:0 Len:0 Group:0 Seq:66 Id:0}} Payload:hello} to:
00000000 a1 61 64 65 68 65 6c 6c 6f |.adehello|
DEBU[2019-11-07 15:24:57.681] Encoded:
00000000 02 00 00 09 00 00 42 00 a1 61 64 65 68 65 6c 6c |......B..adehell|
00000010 6f |o|
DEBU[2019-11-07 15:24:57.705] Tx NMP request: 00000000 02 00 00 09 00 00 42 00 a1 61 64 65 68 65 6c 6c |......B..adehell|
00000010 6f |o|
DEBU[2019-11-07 15:24:57.706] Base64 encoding request:
00000000 02 00 00 09 00 00 42 00 a1 61 64 65 68 65 6c 6c |......B..adehell|
00000010 6f |o|
DEBU[2019-11-07 15:24:57.707] Tx serial
00000000 06 09 |..|
DEBU[2019-11-07 15:24:57.708] Tx serial
00000000 41 42 4d 43 41 41 41 4a 41 41 42 43 41 4b 46 68 |ABMCAAAJAABCAKFh|
00000010 5a 47 56 6f 5a 57 78 73 62 38 45 4a |ZGVoZWxsb8EJ|
DEBU[2019-11-07 15:24:57.709] Tx serial
00000000 0a |.|
DEBU[2019-11-07 15:25:07.713] {remove-nmp-listener} [serial_sesn.go:213] seq=66
DEBU[2019-11-07 15:25:07.726] goroutine 1 [running]:
mynewt.apache.org/newt/util.NewNewtError(0x5b35ca, 0xb, 0xb)
/home/mayank/go/bin/pkg/mod/mynewt.apache.org/newt@....0-20190805215728-4e771ee138aa/util/util.go:77 +0xa4
mynewt.apache.org/newt/util.ChildNewtError(0x68d080, 0x2c0e010, 0x2c5cbd0)
/home/mayank/go/bin/pkg/mod/mynewt.apache.org/newt@....0-20190805215728-4e771ee138aa/util/util.go:103 +0x78
mynewt.apache.org/newtmgr/newtmgr/cli.echoRunCmd(0x2ce1400, 0x2ca73e0, 0x1, 0x4)
/home/mayank/go/bin/pkg/mod/mynewt.apache.org/newtmgr@....0-20190909210301-5029f07bf173/newtmgr/cli/echo.go:48 +0x1dc
github.com/spf13/cobra.(*Command).execute(0x2ce1400, 0x2ca72e0, 0x4, 0x4, 0x2ce1400, 0x2ca72e0)
/home/mayank/go/bin/pkg/mod/github.com/spf13/cobra@....5/command.go:830 +0x1f4
github.com/spf13/cobra.(*Command).ExecuteC(0x2c82640, 0x5dc824, 0x2c42800, 0x0)
/home/mayank/go/bin/pkg/mod/github.com/spf13/cobra@....5/command.go:914 +0x230
github.com/spf13/cobra.(*Command).Execute(...)
/home/mayank/go/bin/pkg/mod/github.com/spf13/cobra@....5/command.go:864
main.main()
/home/mayank/go/src/github.com/apache/mynewt-mcumgr-cli/mcumgr/mcumgr.go:94 +0xe0
goroutine 6 [syscall]:
os/signal.signal_recv(0x0)
/snap/go/4668/src/runtime/sigqueue.go:147 +0x130
os/signal.loop()
/snap/go/4668/src/os/signal/signal_unix.go:23 +0x14
created by os/signal.init.0
/snap/go/4668/src/os/signal/signal_unix.go:29 +0x30
goroutine 9 [chan receive]:
main.main.func1(0x2c42800)
/home/mayank/go/src/github.com/apache/mynewt-mcumgr-cli/mcumgr/mcumgr.go:82 +0x34
created by main.main
/home/mayank/go/src/github.com/apache/mynewt-mcumgr-cli/mcumgr/mcumgr.go:80 +0xd8
goroutine 10 [runnable]:
bufio.(*Scanner).Scan(0x2f9be80, 0x2f9be80)
/snap/go/4668/src/bufio/scan.go:203 +0x230
mynewt.apache.org/newtmgr/nmxact/nmserial.(*SerialXport).Rx(0x2c42cc0, 0x2c2dfd0, 0x0, 0x0, 0x68cb58, 0x2c0f4f0)
/home/mayank/go/bin/pkg/mod/mynewt.apache.org/newtmgr@....0-20190909210301-5029f07bf173/nmxact/nmserial/serial_xport.go:304 +0xec
mynewt.apache.org/newtmgr/nmxact/nmserial.(*SerialXport).Start.func1(0x2c42cc0)
/home/mayank/go/bin/pkg/mod/mynewt.apache.org/newtmgr@....0-20190909210301-5029f07bf173/nmxact/nmserial/serial_xport.go:135 +0xd8
created by mynewt.apache.org/newtmgr/nmxact/nmserial.(*SerialXport).Start
/home/mayank/go/bin/pkg/mod/mynewt.apache.org/newtmgr@....0-20190909210301-5029f07bf173/nmxact/nmserial/serial_xport.go:127 +0xf8
goroutine 11 [select]:
mynewt.apache.org/newtmgr/nmxact/nmserial.(*SerialSesn).Open.func1(0x2c5cbd0)
/home/mayank/go/bin/pkg/mod/mynewt.apache.org/newtmgr@....0-20190909210301-5029f07bf173/nmxact/nmserial/serial_sesn.go:101 +0xcc
created by mynewt.apache.org/newtmgr/nmxact/nmserial.(*SerialSesn).Open
/home/mayank/go/bin/pkg/mod/mynewt.apache.org/newtmgr@....0-20190909210301-5029f07bf173/nmxact/nmserial/serial_sesn.go:97 +0x1b8
Error: NMP timeout
--> Can anyone has came across such issue. Regards, Mayank
|
|
Upcoming Event: Zephyr Project: Dev Meeting - Thu, 11/07/2019 8:00am-9:00am, Please RSVP
#cal-reminder
devel@lists.zephyrproject.org Calendar <devel@...>
Reminder: Zephyr Project: Dev Meeting When: Thursday, 7 November 2019, 8:00am to 9:00am, (GMT-08:00) America/Los Angeles Where:https://zoom.us/j/993312203 An RSVP is requested. Click here to RSVP Organizer: devel@... Description: Join Zoom Meeting
|
|
Re: Issue in OTA of zephyr OS over BLE on Nordic nrf52840_pca10056 chip
#nrf52840
#ble
#bluetoothmesh
Mayank <mayank7117@...>
Thanks Jamie, Here, I would like to point out the exact setup that i'm trying DFU on. I have One custom board which has imx6ul processor, I'm having one BLE controller on board which is connected to processor over uart. Now from the boards serial console i would like to update the zephyr application to that BLE controller. Regards, Mayank
On Thu, Nov 7, 2019 at 1:14 PM lairdjm <jamie.mccrae@...> wrote:
|
|
Re: problem with command call
Carles Cufi
Hi there,
toggle quoted messageShow quoted text
-----Original Message-----Make sure that you have installed west with: $ pip3 install --user west and that then the location where your binary is installed is in your PATH: https://docs.zephyrproject.org/latest/getting_started/index.html#python-and-pip Carles
|
|
problem with command call
FLIGIL Veneamin <veneamin.fligil@...>
Hello. I am sorry for disturbing you.
When I call the command on linux vm: west init zephyrprohect I have the response: Command ‘west’ not found, did you mean: command ’test’ from deb coreutils (8.30-1ubuntu1) Try: sudo apt install <deb name>
|
|
Re: Issue in OTA of zephyr OS over BLE on Nordic nrf52840_pca10056 chip
#nrf52840
#ble
#bluetoothmesh
lairdjm
Hi Mayank, You are getting this error because the hci0 device could not be enabled on your host system, the echo command sends that to the remote device using Bluetooth. You need a Bluetooth dongle plugged into your PC which supports Bluetooth 4.0+ (and must have support for Bluetooth Low Energy). You can use the BlueZ commands to see what Bluetooth devices you have on your system and the corresponding LMP versions. You need a device with LMP version 6 or newer. Thanks, Jamie
|
|
Issue in OTA of zephyr OS over BLE on Nordic nrf52840_pca10056 chip
#nrf52840
#ble
#bluetoothmesh
Mayank <mayank7117@...>
Hi,
I'm trying to do an OTA of zephyr hci_uart application and i have done following things. Referred https://docs.zephyrproject.org/1.14.0/samples/subsys/mgmt/mcumgr/smp_svr/README.html?highlight=build%20smp_svr By following this document, 1) Build & flashed MCUBOOT bootloader. Addr range(0x0 to 0x8000) 2) Build, signed hex file & flashed smp_svr. Addr range(0xC000 to 0x27000) Now, when I run below command it should respond with 'hello', but that is not the case. Command --> sudo mcumgr --conntype ble --connstring ctlr_name=hci0,peer_name='Zephyr' echo hello Instead, i'm getting 'Can not up hci0 interface'. According to my understanding hci0 will be up only when i will build & flash the zephyr's hci_uart application(But it's not mentioned anywhere in above zephyr's doc). So am i missing something and if not why it is not working as mentioned in the above zephyr's link. Thanks, Mayank
|
|
Dev-Review Meeting Agenda (Nov 7)
Kumar Gala
Here’s the agenda topics for this week:
New, orthogonal and complete time conversion API https://github.com/zephyrproject-rtos/zephyr/pull/19591 DTS: Remove parsing of DT generated Kconfig symbols [galak, SebastianBoe] https://github.com/zephyrproject-rtos/zephyr/pull/20335 scripts: dts: Accept 'status = "ok" https://github.com/zephyrproject-rtos/zephyr/pull/19408 PinMux: [WIP] NXP Kinetis DTS Pinmux rework - https://github.com/zephyrproject-rtos/zephyr/pull/20398 dts: stm32: Introduce linux like pinctrl bindings https://github.com/zephyrproject-rtos/zephyr/pull/20386 If there’s anything else to add please let me know. Thanks - k
|
|
Re: ELC-E Zephyr Multiimage BoF - Bob Build Tool
Bolivar, Marti
Hi,
"Jan Kloetzke via Lists.Zephyrproject.Org" <jan=kloetzke.net@...> writes: On Mon, Nov 04, 2019 at 10:34:37PM +0000, Bolivar, Marti wrote:Plain "west update" updates all the repositories. You can say "westI made a quick hack west extension to convert the upstream zephyrThat looks indeed useful. update project-1 project-2 ..." to just work on a subset of them. OTOH Bob's approach is normally to checkout the sources individually forIf you have cloned all the modules your application needs to build, you're fine. You don't need to download all of them. Indeed, you don't need west at all if you manually set ZEPHYR_MODULES before building: https://docs.zephyrproject.org/latest/guides/west/without-west.html#specifying-modules But west doesn't manage dependencies between repositories. That would take it into package manager territory. We are staying away from that as a design decision. It's up to the user to either manage their application's dependencies explicitly, or just fetch the kitchen sink. Either way, Kconfig ultimately controls what gets built into the final firmware image. Marti
|
|
Re: ELC-E Zephyr Multiimage BoF - Bob Build Tool
Jan Kloetzke <jan@...>
On Mon, Nov 04, 2019 at 10:34:37PM +0000, Bolivar, Marti wrote:
"Jan Kloetzke via Lists.Zephyrproject.Org"Yes, that's correct. It's covered here: https://bob-build-tool.readthedocs.io/en/latest/manual/configuration.html#checkoutscm That looks indeed useful. I was wondering if there is a way to select only the needed repositories? West seems to always clone all known projects up-front. OTOH Bob's approach is normally to checkout the sources individually for each project and then build these individually. AFAICT this won't work for Zephyr because all repositories must be present to be gathered in one large CMake project. So the structure ends up with a single large source package. Are there any plans to make this more modular in the future? Additionally
|
|
Re: Event-driven architecture in Zephyr
pawel.dunaj@...
Hi Jeff,
As far as I know Zephyr does not have any such mechanism. This is why we have created the Event Manger. The aim was to keep it universal but since it was done to satisfy needs of a certain project it has its limitations. We tried to keep overhead low and remove concurrency issues. Anyway I am glad that people try to use it. In nrf_desktop we use separate low-priority thread for long running operations. We were also thinking about splitting long operations into sub-tasks each triggered separately (you can have a look in the optical sensor drivers). I would like to hear what people find missing in the Event Manager as there is a plan to improve it in the future. I would like to move towards creating an application framework but that is a much bigger task and first we need to see what is really needed. Thanks, Pawel
|
|
Re: Issue in OTA of zephyr OS over UART on Nordic nrf52840_pca10056 chip
#ble
#bluetoothmesh
#nrf52840
#uart
Adam Podogrocki
Hi Mayank, If you are using UART as a connection type, then please disable other communication channels like BT and shell - at least in my case with STM32 it helped. I assume that flash partition layout corresponds to what you've wrote: "I have flashed MCUBOOT (0x0 to 0x8000) and smp_svr (0xC000 to 0x27000)." I assume that you have signed the 'smp_svr' binary. Please take a look at https://lists.zephyrproject.org/g/users/topic/dfu_over_uart/27861342?p=,,,20,0,0,0::recentpostdate%2Fsticky,,,20,2,20,27861342 - maybe you will find some hint there. Regards, Adam
On Wed, 6 Nov 2019 at 07:36, Mayank Patel <mayank7117@...> wrote:
|
|
Re: Issue in OTA of zephyr OS over UART on Nordic nrf52840_pca10056 chip
#ble
#bluetoothmesh
#nrf52840
#uart
Mayank <mayank7117@...>
Hi Adam, Thanks for the quick reply. I have flashed MCUBOOT (0x0 to 0x8000) and smp_svr (0xC000 to 0x27000).The flag CONFIG_UART_MCUMGR_ON_DEV_NAME is defaults to 'UART_0'. My DTS file has following configuration right now. chosen { zephyr,console = &uart0; zephyr,shell-uart = &uart0; zephyr,uart-mcumgr = &uart0; zephyr,bt-mon-uart = &uart0; zephyr,sram = &sram0; zephyr,flash = &flash0; zephyr,code-partition = &slot0_partition; }; &uart0 { compatible = "nordic,nrf-uart"; current-speed = <115200>; status = "ok"; //For i.MX DCE configuration tx-pin = <8>; rx-pin = <4>; rts-pin = <26>; cts-pin = <6>; }; Command used from imx6ul board running on yocto linux: sudo mcumgr --conntype serial --connstring='dev=/dev/ttymxc0,baud=115200' echo hello So, am i missing some configuration or do you see any other issue? Regards, Mayank Patel (M.Tech VLSI & Embedded system) Ganpat University +91-9722260070
On Tue, Nov 5, 2019 at 8:43 PM Adam Podogrocki <a.podogrocki@...> wrote:
|
|
Event-driven architecture in Zephyr
Jeff Langballe <Jeff.langballe@...>
Hi all,
I’m trying to implement an event driven architecture within Zephyr. My goal is to have multiple event handlers trigger on each event. ex. power monitor emits a “low battery” event -> UI thread receives this and sets an LED pattern, cloud thread receives and pushes a warning, another subscriber shuts down some outputs, another subscriber does logging, etc.
Zephyr doesn’t seem to have any explicit mechanisms built in for this. I’ve tried working with message queues and poll signals but they lend themselves more to “one-to-one” communication instead of “one-to-many”. I’ve also used Nordic’s Event Manager library which has the exact interface I’m looking for but gave me trouble with lack of event priority and lack of concurrency for event handlers. For example, if I have a lengthy event handler running for a less-important task, it will block other event handlers which may be of higher importance.
What I’d like to know is if there are existing samples that achieve this or a set of recommendations for implementing this within Zephyr. Specifically, what data passing objects (FIFOs, message queues, mailboxes, etc.) from Zephyr are most appropriate for this kind of IPC and do these objects lend themselves nicely to any specific topology (event broker, event mediator, or others). I could also work around the shortcomings of the Nordic library but it would be nice to have a good framework to use as a starting point instead.
Thanks, Jeff
|
|
Re: How to specify flash offset for a new board
Stefan Jaritz
As well
CONFIG_FLASH_LOAD_OFFSET=0x20000
in proj.conf works fine for stm32f4xx MCUs
On 04/11/2019 08:17, laczenJMS wrote:
Hi Kees and Jan,
|
|
Upcoming Event: Zephyr Project: APIs - Tue, 11/05/2019 9:00am-10:00am, Please RSVP
#cal-reminder
devel@lists.zephyrproject.org Calendar <devel@...>
Reminder: Zephyr Project: APIs When: Tuesday, 5 November 2019, 9:00am to 10:00am, (GMT-08:00) America/Los Angeles Where:https://zoom.us/j/177647878 An RSVP is requested. Click here to RSVP Organizer: devel@... Description: Join from PC, Mac, Linux, iOS or Android: https://zoom.us/j/177647878 Live meeting minutes: https://docs.google.com/
|
|
Re: Issue in OTA of zephyr OS over UART on Nordic nrf52840_pca10056 chip
#ble
#bluetoothmesh
#nrf52840
#uart
Adam Podogrocki
Hi Mayank, If you are sure the partition layout of flash memory is correct and you flashed MCUboot and SMP_SVR sample respectively, then please check if the CONFIG_UART_MCUMGR_ON_DEV_NAME is set correctly. Regards, Adam
On Tue, 5 Nov 2019 at 15:15, Mayank <mayank7117@...> wrote:
|
|