MCUboot now part of the west manifest
Carles Cufi
Hi all,
MCUboot is now part of the upstream Zephyr manifest. We maintain a mirror of MCUboot, which serves as the current reference version that is tested with Zephry, here: https://github.com/zephyrproject-rtos/mcuboot If you take the latest master and run 'west update' on it you will find MCUboot in bootloaders/mcuboot. MCUboot is also built by CI on every Pull Request, and that should help alleviate the compatibility problems between Zephyr and MCUboot that have often appeared in the past. Thanks, Carles
|
|
RFC: API Change: usb: Make users call usb_enable. Provide global status callback.
Obalski, Emil <Emil.Obalski@...>
Hello all,
I would like to report an RFC issue which follows ‘Introducing incompatible changes’ process present in Zephyr. The issue: https://github.com/zephyrproject-rtos/zephyr/issues/21419 The associated PR: https://github.com/zephyrproject-rtos/zephyr/pull/20375
Regards, Emil Obalski | Firmware Engineer M +48 726 457 478 | Krakow, Poland
|
|
RFC: API Change: PWM: add support for inverted PWM signals
Henrik Brix Andersen
Hi all,
I have created an RFC following our new procedure for proposing changes to stable APIs regarding our proposed changes to the PWM API: https://github.com/zephyrproject-rtos/zephyr/issues/21384 Please review and comment on the GitHub issue. Best regards, Brix -- Henrik Brix Andersen
|
|
Upcoming Event: Zephyr Project: Dev Meeting - Thu, 12/12/2019 8:00am-9:00am, Please RSVP
#cal-reminder
devel@lists.zephyrproject.org Calendar <devel@...>
Reminder: Zephyr Project: Dev Meeting When: Thursday, 12 December 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: about BLE Rx test
Tommy Lin (林志聰) <Tommy.Lin@...>
Hi Vinayak Sorry , please ignore previous message. In BT 4.2 command , we just reach -85dbm . In BT 5.0 (1M) command , we can reach -88dbm . How can we reach -93dbm for sensitivity?
[BT 4.2]
[BT 5.0]
Thank You, Tommy
From: Tommy Lin (林志聰)
Sent: Thursday, December 12, 2019 2:25 PM To: 'Chettimada, Vinayak Kariappa' <vinayak.kariappa.chettimada@...>; Stephanos Io <assembler@...>; Cufi, Carles <Carles.Cufi@...>; zephyr-devel@... Cc: devel@...; Isaac Chen (陳尚航) <Isaac_Chen@...>; Ryan Hsu (徐振鋒) <Ryan.Hsu@...>; Jimmy Lee (李俊儀) <jimmylee@...>; 'Hanyu.Hsu@...' <Hanyu.Hsu@...> Subject: RE: [Zephyr-devel] about BLE Rx test
Vinayak Thanks for your response. From your suggestion , we can improve sensitivity from -85dbm to -88dbm. Can we improve it to -92dbm?
Thanks Tommy From: Chettimada, Vinayak Kariappa <vinayak.kariappa.chettimada@...>
Hi Tommy,
To test 2M Phy please use LE Receiver Test Command [v2] with OCF 0x0033 instead of the v1 command you are using.
Regards, Vinayak
From: Tommy Lin (林志聰)
<Tommy.Lin@...>
Hi zephyr, In case2, we also have tried -40dBm(2Mbps) and -60dBm(2Mbps) , and receive 0 bytes.
Thanks Tommy From: Tommy Lin (林志聰)
Hi zephyr,
[case 1] RF equipment send some bytes to DUT with -50dBm 1Mbps , and DUT can receive 0x2E81 bytes
[case 2] RF equipment send some bytes to DUT with -50dBm 2Mbps , but DUT receive 0 bytes
In case2 , To receiver bytes successfully in 2Mbps , how can I change zephyr source code? Could you give us some suggestions?
Thanks Tommy From: Tommy Lin (林志聰)
Hi Stephanos, Thanks for your response. I have following question: 1. By Default , What data rate (1M or 2M bps) are set in zephyr code ? if it is 2Mbps , How can I set it to 1Mbps?
PS: Our RF equipment only support in 1Mbps.
Thanks Tommy From: Stephanos Io <assembler@...>
Hi,
I suppose you are performing RX sensitivity test.
> If RF equipment send a dbm above -86 (ex: -85 , -84 , -83 …..), the error message will disappear.
Assuming you are testing with BLE 2Mbps PHY, I think this behaviour is only to be expected given that the max. sensitivity is specified at -85 dBm at 2Mbps for nRF51824 (refer to the datasheet).
Stephanos
From:
devel@... <devel@...>
On Behalf Of Cufi, Carles
Adding Vinayak.
If this depends on the dBm setting it might be a bug actually. I’ll let Vinayak weigh in.
Carles
From:
devel@... <devel@...>
On Behalf Of Tommy Lin (???) via Lists.Zephyrproject.Org
+ jimmy
From: Tommy Lin (林志聰)
Hi , Sorry , correction.
We have a product using nRF51824 with Zephyr v1.13.0. Our DUT connect with RF equipment.
[Test sequence] Step1: DUT enter Rx mode with HCI command. Step2: RF equipment send 1500 bytes with -86dbm. Step3: DUT end Rx mode After then , DUT will show “tx time out “ error message.
PS: 1. If RF equipment send a dbm above -86 (ex: -85 , -84 , -83 …..), the error message will disappear. 2. We use Zephyr v1.13.0 and v1.14.0 , and the result is the same.
Could you give us some suggestions?
Thank You, Tommy
|
|
Re: about BLE Rx test
Tommy Lin (林志聰) <Tommy.Lin@...>
Vinayak Thanks for your response. From your suggestion , we can improve sensitivity from -85dbm to -88dbm. Can we improve it to -92dbm?
Thanks Tommy
From: Chettimada, Vinayak Kariappa <vinayak.kariappa.chettimada@...>
Sent: Monday, November 25, 2019 4:29 PM To: Tommy Lin (林志聰) <Tommy.Lin@...>; Stephanos Io <assembler@...>; Cufi, Carles <Carles.Cufi@...>; zephyr-devel@... Cc: devel@...; Isaac Chen (陳尚航) <Isaac_Chen@...>; Ryan Hsu (徐振鋒) <Ryan.Hsu@...>; Jimmy Lee (李俊儀) <JimmyLee@...>; 'Hanyu.Hsu@...' <Hanyu.Hsu@...> Subject: RE: [Zephyr-devel] about BLE Rx test
Hi Tommy,
To test 2M Phy please use LE Receiver Test Command [v2] with OCF 0x0033 instead of the v1 command you are using.
Regards, Vinayak
From: Tommy Lin (林志聰)
<Tommy.Lin@...>
Hi zephyr, In case2, we also have tried -40dBm(2Mbps) and -60dBm(2Mbps) , and receive 0 bytes.
Thanks Tommy From: Tommy Lin (林志聰)
Hi zephyr,
[case 1] RF equipment send some bytes to DUT with -50dBm 1Mbps , and DUT can receive 0x2E81 bytes
[case 2] RF equipment send some bytes to DUT with -50dBm 2Mbps , but DUT receive 0 bytes
In case2 , To receiver bytes successfully in 2Mbps , how can I change zephyr source code? Could you give us some suggestions?
Thanks Tommy From: Tommy Lin (林志聰)
Hi Stephanos, Thanks for your response. I have following question: 1. By Default , What data rate (1M or 2M bps) are set in zephyr code ? if it is 2Mbps , How can I set it to 1Mbps?
PS: Our RF equipment only support in 1Mbps.
Thanks Tommy From: Stephanos Io <assembler@...>
Hi,
I suppose you are performing RX sensitivity test.
> If RF equipment send a dbm above -86 (ex: -85 , -84 , -83 …..), the error message will disappear.
Assuming you are testing with BLE 2Mbps PHY, I think this behaviour is only to be expected given that the max. sensitivity is specified at -85 dBm at 2Mbps for nRF51824 (refer to the datasheet).
Stephanos
From:
devel@... <devel@...>
On Behalf Of Cufi, Carles
Adding Vinayak.
If this depends on the dBm setting it might be a bug actually. I’ll let Vinayak weigh in.
Carles
From:
devel@... <devel@...>
On Behalf Of Tommy Lin (???) via Lists.Zephyrproject.Org
+ jimmy
From: Tommy Lin (林志聰)
Hi , Sorry , correction.
We have a product using nRF51824 with Zephyr v1.13.0. Our DUT connect with RF equipment.
[Test sequence] Step1: DUT enter Rx mode with HCI command. Step2: RF equipment send 1500 bytes with -86dbm. Step3: DUT end Rx mode After then , DUT will show “tx time out “ error message.
PS: 1. If RF equipment send a dbm above -86 (ex: -85 , -84 , -83 …..), the error message will disappear. 2. We use Zephyr v1.13.0 and v1.14.0 , and the result is the same.
Could you give us some suggestions?
Thank You, Tommy
|
|
Re: [TCP/MQTT] Connection issue
Guillaume Paquet
Hello Michael,
Thanks for your prompt reply. I just open this new issue: https://github.com/zephyrproject-rtos/zephyr/issues/21328 However, I am not able to assign it to you.
Really thanks for your help on this case
Rgds,
Guillaume
De : Michael Scott <mike@...>
Hello Guillaume,
On 12/11/19 11:19 AM, Guillaume Paquet wrote:
There could certainly be a bug in the socket offloading layer for UBLOX Sara R4 (I'm the maintainer for the current modem layer in Zephyr):
Can you open an issue here: https://github.com/zephyrproject-rtos/zephyr/issues
Please include as much information as you can (from this email series): - Sample used: samples/net/mqtt_publisher - Firmware version on SARA R4 modem - etc
And add me as "Assignee"
Thanks!
- Mike
-- Michael Scott Embedded Software Engineer at Foundries.io "microPlatforms™ for Connected Products" E: mike@... W: https://www.foundries.io
|
|
Re: [TCP/MQTT] Connection issue
lairdjm
Hi, We actually encountered the same issue, not with this driver but with a different modem based upon this driver, from what I remember (it has been a long time since I last investigated) it seemed as if each reconnect incremented the memory address of the buffers so something wasn’t getting cleaned up, I didn’t look into if this was the networking stack or the driver however. This was on Zephyr 1.14, it was also using MQTT but not that specific sample. Thanks, Jamie
|
|
Re: [TCP/MQTT] Connection issue
Hello Guillaume,
On 12/11/19 11:19 AM, Guillaume Paquet
wrote:
There could certainly be a bug in the socket offloading layer for
UBLOX Sara R4 (I'm the maintainer for the current modem layer in
Zephyr):
Can you open an issue here: https://github.com/zephyrproject-rtos/zephyr/issues
Please include as much information as you can (from this email
series): - Sample used: samples/net/mqtt_publisher - Firmware version on SARA R4 modem - etc
And add me as "Assignee"
Thanks!
- Mike
-- Michael Scott Embedded Software Engineer at Foundries.io "microPlatforms™ for Connected Products" E: mike@... W: https://www.foundries.io
|
|
Re: [TCP/MQTT] Connection issue
Guillaume Paquet
Hello Zephyr Community,
I found where something is wrong.
Indeed in net_context_get function, I saw that I reached
CONFIG_NET_MAX_CONTEXTS (equal to 10 in my prj.conf).
For your information, I use UBLOX sara r4 driver (on zephyr 1.14.1 as I mentionned in my previous mail) and I wonder if contexts are well managed in this revision, especially when socket is closed ?
Thanks in advance for your help
Best Regards,
Guillaume
De : devel@... <devel@...> de la part de Guillaume Paquet via Lists.Zephyrproject.Org <guillaume.paquet=stimio.fr@...>
Envoyé : mercredi 11 décembre 2019 16:24 À : Guillaume Paquet <guillaume.paquet@...>; devel@... <devel@...> Cc : devel@... <devel@...> Objet : Re: [Zephyr-devel] [TCP/MQTT] Connection issue And just to add some precision, I work on zephyr 1.14.1.
Rgds
Guillaume
De : devel@... <devel@...>
De la part de Guillaume Paquet via Lists.Zephyrproject.Org
Hello Zephyr community,
I contact you because I have an issue when I run mqtt_publisher example https://docs.zephyrproject.org/1.13.0/samples/net/mqtt_publisher/README.html
I have the following issue when I have multiple mqtt connection/disconnection (through tcp transport_connect function) [try_to_connect:233] mqtt_connect: -2 <ERROR>
I have this issue after 10 connection/disconnection. The eleventh one is always failing. As I said you I saw that this is failing when I try to run mqtt_transport_connect(client); in client_connect.
My configuration is the following one :
If you have any idea to help me
Thanks in advance
Best Regards
Guillaume
Guillaume PAQUET – IoT Engineer guillaume.paquet@... - 02 40 18 50 91 1 Avenue Professeur Jean Rouxel – ZAC Fleuriaye 44470 CARQUEFOU – FRANCE
|
|
Re: [TCP/MQTT] Connection issue
Guillaume Paquet
And just to add some precision, I work on zephyr 1.14.1.
Rgds
Guillaume
De : devel@... <devel@...>
De la part de Guillaume Paquet via Lists.Zephyrproject.Org
Hello Zephyr community,
I contact you because I have an issue when I run mqtt_publisher example https://docs.zephyrproject.org/1.13.0/samples/net/mqtt_publisher/README.html
I have the following issue when I have multiple mqtt connection/disconnection (through tcp transport_connect function) [try_to_connect:233] mqtt_connect: -2 <ERROR>
I have this issue after 10 connection/disconnection. The eleventh one is always failing. As I said you I saw that this is failing when I try to run mqtt_transport_connect(client); in client_connect.
My configuration is the following one :
If you have any idea to help me
Thanks in advance
Best Regards
Guillaume
Guillaume PAQUET – IoT Engineer guillaume.paquet@... - 02 40 18 50 91 1 Avenue Professeur Jean Rouxel – ZAC Fleuriaye 44470 CARQUEFOU – FRANCE
|
|
[TCP/MQTT] Connection issue
Guillaume Paquet
Hello Zephyr community,
I contact you because I have an issue when I run mqtt_publisher example https://docs.zephyrproject.org/1.13.0/samples/net/mqtt_publisher/README.html
I have the following issue when I have multiple mqtt connection/disconnection (through tcp transport_connect function) [try_to_connect:233] mqtt_connect: -2 <ERROR>
I have this issue after 10 connection/disconnection. The eleventh one is always failing. As I said you I saw that this is failing when I try to run mqtt_transport_connect(client); in client_connect.
My configuration is the following one :
If you have any idea to help me
Thanks in advance
Best Regards
Guillaume
Guillaume PAQUET – IoT Engineer guillaume.paquet@... - 02 40 18 50 91 1 Avenue Professeur Jean Rouxel – ZAC Fleuriaye 44470 CARQUEFOU – FRANCE
|
|
Re: Managing/structuring multi image/binary projects for (OTA updatable products etc)
Sebastian Boe
See https://github.com/zephyrproject-rtos/zephyr/pull/13672#issuecomment-550203475
________________________________________ From: Marc Reilly <marc.reilly@gmail.com> Sent: Tuesday, December 10, 2019 5:58 PM To: Bøe, Sebastian Cc: Bolivar, Marti; devel@lists.zephyrproject.org Subject: Re: [Zephyr-devel] Managing/structuring multi image/binary projects for (OTA updatable products etc) Hi, The multi-image approach in NCS will not make it's way into mainline Zephyr because it was not accepted upstream unfortunately. Is there some record of the rationale behind this? (eg PR #). I'm wondering that if its rejected from mainline zephyr for reasons like 'out of scope' etc then maybe there is some existing consensus for alternative ways - or if it was due to lack of demand then maybe that can be reappraised... But that's a lot of "maybes" and "wonderings". Thanks again! Cheers Marc
|
|
Re: Managing/structuring multi image/binary projects for (OTA updatable products etc)
Marc Reilly
The multi-image approach in NCS will not make it's way into mainline Zephyr because Is there some record of the rationale behind this? (eg PR #). I'm wondering that if its rejected from mainline zephyr for reasons like 'out of scope' etc then maybe there is some existing consensus for alternative ways - or if it was due to lack of demand then maybe that can be reappraised... But that's a lot of "maybes" and "wonderings". Thanks again! Cheers Marc
|
|
Upcoming Event: Zephyr Project: APIs - Tue, 12/10/2019 9:00am-10:00am, Please RSVP
#cal-reminder
devel@lists.zephyrproject.org Calendar <devel@...>
Reminder: Zephyr Project: APIs When: Tuesday, 10 December 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: Managing/structuring multi image/binary projects for (OTA updatable products etc)
Sebastian Boe
The multi-image approach in NCS will not make it's way into mainline Zephyr because
it was not accepted upstream unfortunately. ________________________________________ From: Marc Reilly <marc.reilly@gmail.com> Sent: Tuesday, December 10, 2019 4:25 PM To: Bolivar, Marti Cc: Bøe, Sebastian; devel@lists.zephyrproject.org Subject: Re: [Zephyr-devel] Managing/structuring multi image/binary projects for (OTA updatable products etc) Hi Marti, Sebastian, list Thanks for the ideas, my replies are inline below. Hi, I see you are using nrf. This led me to find the "multiple images" documentation for the NCS Zephyr (https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/application/index.html#building-and-configuring-multiple-images) ... So if not using vanilla Zephyr is an option then see:I second Sebastian's suggestion to look at nRF Connect SDK (NCS). It has useful features for building OTA binaries for nRF devices. .. it looks like the NCS capabilities will do what I wanted with regard to building a bootloader + app in one go. I haven't had time to look at it properly, but it seems like the strategy is to make the bootloader an extra output of the primary 'app' project (ie extra targets in the app project cmake). This is a different approach than what I was thinking of. I was envisaging that the bootloader and app were treated as more isolated projects, and were configured and glued together by another higher level _something_. Traditionally, I tend away from relying too much on vendor 'BSP's for the long term, they've tend to stagnate or diverge too much from mainline as time goes on. Does anyone know if there are any plans to bring NCS's 'multi-image' functionality into mainline zephyr? --snip-- -----No matter what you choose to use (mainline or NCS), though, you can always tell 'west build' your default board like this: west config build.board theboard https://docs.zephyrproject.org/latest/guides/west/build-flash-debug.html#configuration-options The build.board value will be used if you don't provide --board (provided BOARD is also unset in the calling environment). This is useful to know, thanks ! I thought about your BOARD_ROOT question. I've gotten other similar requests recently, and I agree it would be useful, so I've proposed a new "build.cmake-args" config option: https://github.com/zephyrproject-rtos/zephyr/pull/21251 With the patch from #21251, you can save your BOARD_ROOT like this: west config build.cmake-args -- -DBOARD_ROOT=/abs/path/to/app Your one-time setup work would then be: west init -m git@gitlab.com/SomeManifestRepo.git<http://git@gitlab.com/SomeManifestRepo.git> west update west config build.board theboard west config build.cmake-args -- -DBOARD_ROOT=/abs/path/to/app Note that plain 'west config var val' sets configuration options locally (just for your west installation). See the --global and --system options in the 'west config' documentation for alternatives. # build and flash west build -d build-mcuboot -s mcuboot/boot/zephyr west build -d build-app -s app west sign ... And here is where I become unsure of how this glue script/(c)makefile/etc fits into the topology of the project.. The natural place for the script to run from is the west installation folder itself (ie, the parent folder of all the subprojects) however the natural place for it to 'live' is in the 'manifest-repo'.I hope the above is what you're looking for. I think what I was envisaging was something to glue together the above commands (and keep some separation between the specific 'app' and the bootloader), I thought this would be 'west', but maybe not.. to take this approach would mean having to invoke the build/sign/whatever commands from the 'west installation' folder, and it would only be available from the manifest repo folder. Note 'west build' can only compile one Zephyr application at a time. The NCS can build application and mcuboot binaries at once out of the box, for reference. Please test and comment in the PR if you get a chance. Done!, thanks. Cheers Marc
|
|
Hi Venkatesh,
On 10. Dec 2019, at 15.18, Venkatesh Dyagala <venkatesh.dyagala@ivativ.com> wrote: Now when we insert into linux PC and when i check the device using the hciconfig command the MAC address of the dongle is 00:00:00:00:00:00hciconfig uses a legacy ioctl kernel interface which is only able to retrieve the public address of a controller. nRF controllers do not come with any public address by default, which is why you only see zeroes. What controllers do need is an identity address, and that can be either a public address or a static random address. It’s the latter that gets automatically set by bluetoothd and what bluetoothctl shows you. bluetoothctl is a D-Bus client that simply shows the “Address” property of the Adapter object. That needs to be combined with the “AddressType” property to know that type of address it is (in your case it would be “random”). Johan
|
|
Re: Managing/structuring multi image/binary projects for (OTA updatable products etc)
Marc Reilly
Hi Marti, Sebastian, list Thanks for the ideas, my replies are inline below. > Hi, I see you are using nrf. This led me to find the "multiple images" documentation for the NCS Zephyr (https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/application/index.html#building-and-configuring-multiple-images) ... > So if not using vanilla Zephyr is an option then see: .. it looks like the NCS capabilities will do what I wanted with regard to building a bootloader + app in one go. I haven't had time to look at it properly, but it seems like the strategy is to make the bootloader an extra output of the primary 'app' project (ie extra targets in the app project cmake). This is a different approach than what I was thinking of. I was envisaging that the bootloader and app were treated as more isolated projects, and were configured and glued together by another higher level _something_. Traditionally, I tend away from relying too much on vendor 'BSP's for the long term, they've tend to stagnate or diverge too much from mainline as time goes on. Does anyone know if there are any plans to bring NCS's 'multi-image' functionality into mainline zephyr? --snip--
This is useful to know, thanks ! I thought about your BOARD_ROOT question. I've gotten other similar I think what I was envisaging was something to glue together the above commands (and keep some separation between the specific 'app' and the bootloader), I thought this would be 'west', but maybe not.. to take this approach would mean having to invoke the build/sign/whatever commands from the 'west installation' folder, and it would only be available from the manifest repo folder.
Done!, thanks. Marc
|
|
API meeting: Agenda
Carles Cufi
Hi all,
This week we will focus on API Changes and GPIO: - Changing a stable API: - https://github.com/zephyrproject-rtos/zephyr/pull/21013 - 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
|
|
Venkatesh Dyagala
Hi,
We are willing to do the LE USB controller with the nrf52840 dongle By looking into this case https://devzone.nordicsemi. Then Make that as a controller followed this https://devzone.nordicsemi.
The build is done and loaded to the dongle using nrfutil.
Now when we insert into linux PC and when i check the device using the hciconfig command the MAC address of the dongle is 00:00:00:00:00:00
But when we used bluetoothctl show command a 6byte MAC address is shown.
I can change the MAC address manually using hcitool commands. But my question is that
1-->The nordic assigned MAC address in production for every device. Why that MAC address cannot be seen when the dongle is acting as a controller. Why its showing all zeros ?
2--> The bluetoothctl is showing the MAC address of the device But it cannot be updated in the hciconfig ?
3--> If we have a MAC how we can burn it into the flash what was the memory locations ?
4--> The MAC that we seen using bluetoothctl show is zepher hardcoded ?
Gone through https://devzone.nordicsemi.
-- Thanks, venkatesh
|
|