Date   

Dual core configuration of peripheral from other core/DTS file (e.g. nRF5340)

lairdjm
 

Hi,

Does anyone have suggestions for how to configure a peripheral on a dual core chip from the main core so it can be used by the secondary core but in a way that the devices are synchronised in DTS files? The example I have is with the nRF5340, the main core has to configure which pins can be used by the second core, but in order to do that it needs to be made aware of what pins the secondary core is going to use. The secondary core might have pins for a peripheral defined in it’s DTS file but the main core doesn’t have runtime access to that DTS file so is not aware of it. The first idea that comes to mind but I’m not overly happy with the idea would be to have a fake peripheral for the main core and both cores would include a single DTS which defines the pins, the main core would at start-up be able to read the DTS details and configure the pins but wouldn’t enable any driver for it whilst the secondary core would be able to start and use it as required. Or maybe using the real peripheral for both but forcing the driver for the second to be disabled in the Kconfig might be another way.

I do not want to use an overlay file at all for this. This is something that should be enabled by default and remain synchronised by changes only being made to one file.

Thanks,
Jamie


Re: GUI support

lairdjm
 

Lvgl is part of zephyr already and has widespread support and examples.

 

From: devel@... <devel@...> On Behalf Of wwwwling via lists.zephyrproject.org
Sent: 01 February 2021 10:09
To: devel@...
Subject: [Zephyr-devel] GUI support

 

dear, what's the best GUI framework for zephyr,or what's the good start point if I want to integrate one?
thanks!

wwwwling

珠海格力电器

邮箱:wwwwling@...

签名由 网易邮箱大师 定制


Network forum agenda

Jukka Rissanen
 


GUI support

wwwwling <wwwwling@...>
 

dear, what's the best GUI framework for zephyr,or what's the good start point if I want to integrate one?
thanks!


Cancelled Event: Zephyr Project: Dev Meeting - Thursday, 28 January 2021 #cal-cancelled

devel@lists.zephyrproject.org Calendar <noreply@...>
 

Cancelled: Zephyr Project: Dev Meeting

This event has been cancelled.

When:
Thursday, 28 January 2021
4:00pm to 5:00pm
(UTC+00:00) UTC

Where:
Microsoft Teams Meeting

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
 
 
________________________________________________________________________________


Zephyr Project: APIs - Tue, 01/26/2021 5:00pm-6:00pm, Please RSVP #cal-reminder

devel@lists.zephyrproject.org Calendar <devel@...>
 

Reminder: Zephyr Project: APIs

When: Tuesday, 26 January 2021, 5:00pm to 6:00pm, (GMT+00:00) UTC

Where:Microsoft Teams Meeting

An RSVP is requested. Click here to RSVP

Organizer: devel@...

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
 
 
________________________________________________________________________________


Re: [Zephyr-users] Query regarding Bluetooth Controller Porting

Pankaj Singh <PANKAJ.SINGH@...>
 

Hi Carles,

Thanks for sharing the information. We are planning to use uart-H4 protocol and it’s a dual mode controller.

My understanding is that H4tl module on controller side will be interacting with Zephyr BT host over uart and hence there needs to be zephyr based hci driver needed in the controller as well. Please correct me if my understanding is wrong. The hci driver needs to register via bt_hci_driver_register(const struct bt_hci_driver *drv) to send/receive payload with zephyr bt host.
Zephyr Host -> custom controller payload flow :
bt_send() -> struct bt_hci_driver: h4_send() -> h4: net_buf_put() -> uart_tx_queue -> hci driver controller: struct bt_hci_driver drv: send() ->h4 custom controller for further processing.

Controller -> host payload flow :
H4 of custom controller -> hci driver controller: bt_buf_get_rx() -> bt_recv() -> bt_dev.rx_queue -> bt host: hci_rx_thread().

-thanks

-----Original Message-----
From: Cufi, Carles <Carles.Cufi@nordicsemi.no>
Sent: Wednesday, December 9, 2020 3:14 PM
To: kumar.gala@linaro.org; Pankaj Singh <PANKAJ.SINGH@onsemi.com>; devel@lists.zephyrproject.org
Cc: users@lists.zephyrproject.org
Subject: RE: [Zephyr-users] Query regarding Bluetooth Controller Porting

[External Email]: This email arrived from an external source - Please exercise caution when opening any attachments or clicking on links.

+ devel list

Pankaj,

If you are using a dual-chip solution, then as long as you controller complies with standard HCI there is no "porting" to do whatsoever.
In order to better understand what you need, can you let us know which transport do you plan on using (UART/H4, 3-wire/H3 or SPI) and whether it is a single-mode or dual-mode controller?

Unless your controllers has special requirements it should all be a matter of configuring the right Kconfig options and Devicetree nodes.

Carles

-----Original Message-----
From: users@lists.zephyrproject.org <users@lists.zephyrproject.org> On
Behalf Of Kumar Gala via lists.zephyrproject.org
Sent: 08 December 2020 15:08
To: Pankaj Singh <PANKAJ.SINGH@onsemi.com>
Cc: users@lists.zephyrproject.org
Subject: Re: [Zephyr-users] Query regarding Bluetooth Controller
Porting

You may want to ask this question on the devel list.
(devel@lists.zephyrproject.org)

- k

On Dec 8, 2020, at 12:02 AM, Pankaj Singh <PANKAJ.SINGH@onsemi.com>
wrote:

Hi,

We want to port our custom Bluetooth controller to run on Zephyr
RTOS
(not using the default zephyr ble controller support). I went through
the Bluetooth documentation
https://urldefense.proofpoint.com/v2/url?u=https-3A__eur03.safelinks.p
rotection.outlook.com_-3Furl-3Dhttps-253A-252F-252Fdocs.zep&d=DwIGaQ&c
=MHZppzMdXMt3JYjCV71UsQ&r=D1ATefx54IThv9ORLOcugPTkb_DOEyRHRjojSRtEnrU&
m=ZO-WCaqOoEicxTN4fmmF7-u-hHTdbZr5jne77OIy4Jw&s=QnUBxuLAcWGdBjnd5kZF9a
QHR7Sye63KYcAkpY4B_NQ&e=
hyrproject.org%2Flatest%2Fguides%2Fbluetooth%2Findex.html&amp;data=04%
7C01
%7Ccarles.cufi%40nordicsemi.no%7Cc35438a7065845415d0708d89b82c771%7C28
e5af
a2bf6f419a8cf6b31c6e9e5e8d%7C0%7C0%7C637430333288501659%7CUnknown%7CTW
FpbG
Zsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%
3D%7
C1000&amp;sdata=6J8jWeiNRxk3NPbnu1uQq0g01EaUG8wCYsQK58AFk6w%3D&amp;res
erve
d=0
,https://urldefense.proofpoint.com/v2/url?u=https-3A__eur03.safelinks.
protection.outlook.com_-3Furl-3Dhttps-253A-252F-252Fdocs.ze&d=DwIGaQ&c
=MHZppzMdXMt3JYjCV71UsQ&r=D1ATefx54IThv9ORLOcugPTkb_DOEyRHRjojSRtEnrU&
m=ZO-WCaqOoEicxTN4fmmF7-u-hHTdbZr5jne77OIy4Jw&s=8zzMc7KWKKqqJAICGpPLCZ
SdvQVNjcruY_9-MvJourM&e=
phyrproject.org%2Flatest%2Fguides%2Fbluetooth%2Fbluetooth-
arch.html&amp;data=04%7C01%7Ccarles.cufi%40nordicsemi.no%7Cc35438a7065
8454
15d0708d89b82c771%7C28e5afa2bf6f419a8cf6b31c6e9e5e8d%7C0%7C0%7C6374303
3328
8501659%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLC
JBTi
I6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=pzOa7iuR0SSOR59u4s5VE3LgNF5M
eoXR ku7XtLCnOWo%3D&amp;reserved=0. The link’s talks about Bluetooth
host in detail and it was helpful. We want to use Dual Chip
configuration mode (use Zephyr Bluetooth host + custom Bluetooth
controller support) .

From link it talks about various host only build configuration
o CONFIG_BT =y
o CONFIG_BT_HCI =y
o CONFIG_BT_CTLR =n


My query is in order to port custom controller what steps, build
configuration we need to take care of. If there is a link/document
that helps to describe porting of custom Bluetooth controller to
Zephyr it will be helpful.

-thanks




API meeting: agenda

Carles Cufi
 


SDK 0.12.2 Release

Kumar Gala
 

Hi,

Latest version of the SDK can be found here:

https://github.com/zephyrproject-rtos/sdk-ng/releases/tag/v0.12.2

Please download and try things out and report any issues.

[ I skipped the release announcement on SDK 0.12.1 so including the changes since 0.12.0 ]

* Add support for MIPS
* Enable EFI binary generation for x86_64 binutils
* Fix to Kconfig version

Thanks to all that contributed fixes and enhancements to this version of the SDK.

- k


Zephyr: Toolchain Working Group - Mon, 01/25/2021 #cal-notice

devel@lists.zephyrproject.org Calendar <noreply@...>
 

Zephyr: Toolchain Working Group

When:
Monday, 25 January 2021
4:00pm to 5:00pm
(GMT+00:00) UTC

Where:
Microsoft Teams Meeting

Description:

________________________________________________________________________________
+1 321-558-6518 United States, Orlando (Toll)
Conference ID: 682 738 030#
Local numbers | Reset PIN | Learn more about Teams | Meeting options
 
 


Zephyr: Toolchain Working Group - Mon, 01/25/2021 4:00pm-5:00pm, Please RSVP #cal-reminder

devel@lists.zephyrproject.org Calendar <devel@...>
 

Reminder: Zephyr: Toolchain Working Group

When: Monday, 25 January 2021, 4:00pm to 5:00pm, (GMT+00:00) UTC

Where:Microsoft Teams Meeting

An RSVP is requested. Click here to RSVP

Organizer: Torsten Rasmussen

Description:

________________________________________________________________________________
+1 321-558-6518 United States, Orlando (Toll)
Conference ID: 682 738 030#
Local numbers | Reset PIN | Learn more about Teams | Meeting options
 
 


Zephyr 2.5.0-rc1 tagged

Nashif, Anas
 

Hi,

The first release candidate for Zephyr 2.5.0 has been tagged (v2.5.0-rc1).

The merge window for features and enhancements is now closed for this release, and it will remain closed until 2.5.0 is released; the stabilization period is now open. During the stabilization period only bug-fix, documentation, and stabilization-related patches may be merged to master. Additional features or enhancements for the 2.5.0 release require approval by the 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. You can follow the bug numbers with the thresholds for each bug category here:

                https://testing.zephyrproject.org/issues/zephyrproject-rtos/zephyr/index.html

Testing Zephyr master branch during the stabilization period is also requested; please test the code base and file bug reports so they can be addressed before the release deadline. Everyone is encouraged, especially hardware vendors, to test on hardware available to them. Use twister to run tests from the Zephyr tree on the boards you have using the device testing features.

The full release log can be found here:

https://github.com/zephyrproject-rtos/zephyr/releases/tag/v2.5.0-rc1

We plan to release weekly candidates (2.5.0-rcx) leading to the final release (2.5.0) which is tentatively scheduled for 15 February.

You may continue to submit pull requests for new features in order to gather feedback early or collaborate with others, but the release team would like to encourage everyone to focus on bugfixes and documentation improvements to the largest extent possible, so that we can release 2.5.0 on time and in the best shape possible.

A big Thank You to everyone that contributed to this release so far, be it with code, reviews, documentation or any other type of contribution!

Anas

 

 


Re: CANopen error message

"Karsten König <karsten.koenig.030@...>
 

Hi,

failing to register rx filters sounds like a mismatch between the number of filters that canopen expects and the ones configured for the MCP2515. Until recently these were independent KConfigs, but I removed that distinction here, especially due to the risk of running into this.
https://github.com/zephyrproject-rtos/zephyr/pull/31197

Can you check whether you have that change already in your local branch?
If yes I'd still check why it failed attaching more filters, that looks suspicious. CO_CANrxBufferInit() returns an error if there is not enough filters, yet CO_init() seems to return successfully, looks like there is also a missing check for return values, but I don't really know canopen :-(

Cheers,
Karsten

On 1/21/21 5:37 PM, Cristian Anceschi wrote:
Hi all
I'm developing a CANOPEN node based on an nRF52DK nRF52832
(PCA10040) board  wired to a MCP2515 and a MCP2551 devices.
So far, through a CAN Interface for USB plugged to a PC, I can
receive and transmit packets and command from and to the board
When I compile the project and launch the Zephyr debug, the first
message received by the PC over the CAN bus is an error message (hex
string). Received only once, at reset.
08A 00 61 01 2A 00 00 00 00 00
which means that the system it is unable to allocate memory for
object (CO_EM_MEMORY_ALLOCATION_ERROR).
The log file at the boot is
  *** Booting Zephyr OS build v2.4.0-ncs1  ***
[00:00:02.737,579] [0m<inf> fs_nvs: 6 Sectors of 4096 bytes [0m
[00:00:02.737,579] [0m<inf> fs_nvs: alloc wra: 1, e90 [0m
[00:00:02.737,579] [0m<inf> fs_nvs: data wra: 1, 210 [0m
[00:00:02.739,776] [0m<dbg> canopen_storage.canopen_settings_set:
restored object dictionary EEPROM entries [0m
[00:00:02.739,807] [0m<dbg> canopen_driver.CO_CANmodule_init: rxSize
= 13, txSize = 9 [0m
*[00:00:02.740,814] [1;31m<err> canopen_driver: failed to attach CAN
rx isr, no free filter [0m
[00:00:02.740,875] [1;31m<err> canopen_driver: failed to attach CAN
rx isr, no free filter [0m
[00:00:02.740,905] [1;31m<err> canopen_driver: failed to attach CAN
rx isr, no free filter [0m*
[00:00:02.740,966] [0m<inf> app: CANopen stack initialized [0m
After this a guard message (hex string) , every 1 second,  is
received over the CAN bus
70A 7F
The node appears in pre-operational state.
No other error messages are shown by the PC via the Zephyr debug system.
In this condition, sending NMT commands, it is possible to force the
node to:
* Enter in STOP mode
* Enter in Pre-operational mode (from STOP mode)
* Reset node
* Reset communication
The node however doesn't enter in operational mode.
Might the reason for this latest fact be, that there is an error at
reset, so that the node won't enter in operational mode because of this?
What can be the cause of the error? Is there a THREAD STACK SIZE or
some other parameter I have to change to solve the problem?
Or can I suppose that the error message can be overlooked because
the node has to start and then everything works as expected? I mean,
the node after all IS receiving commands like I said above.
In any case I believe that the node has to be moved away from the
error condition in order to proceed. What should be the best way to
do this?                               Thanks in advance for any hints and
support Kind regards                                                         Cristian


CANopen error message

Cristian Anceschi <cristian.anceschi@...>
 

Hi all

I'm developing a CANOPEN node based on an nRF52DK nRF52832 (PCA10040) board  wired to a MCP2515 and a MCP2551 devices.
So far, through a CAN Interface for USB plugged to a PC, I can receive and transmit packets and command from and to the board

When I compile the project and launch the Zephyr debug, the first message received by the PC over the CAN bus is an error message (hex string). Received only once, at reset.

08A 00 61 01 2A 00 00 00 00 00

which means that the system it is unable to allocate memory for object (CO_EM_MEMORY_ALLOCATION_ERROR).
The log file at the boot is

  *** Booting Zephyr OS build v2.4.0-ncs1  ***
[00:00:02.737,579] [0m<inf> fs_nvs: 6 Sectors of 4096 bytes [0m
[00:00:02.737,579] [0m<inf> fs_nvs: alloc wra: 1, e90 [0m
[00:00:02.737,579] [0m<inf> fs_nvs: data wra: 1, 210 [0m
[00:00:02.739,776] [0m<dbg> canopen_storage.canopen_settings_set: restored object dictionary EEPROM entries [0m
[00:00:02.739,807] [0m<dbg> canopen_driver.CO_CANmodule_init: rxSize = 13, txSize = 9 [0m
[00:00:02.740,814] [1;31m<err> canopen_driver: failed to attach CAN rx isr, no free filter [0m
[00:00:02.740,875] [1;31m<err> canopen_driver: failed to attach CAN rx isr, no free filter [0m
[00:00:02.740,905] [1;31m<err> canopen_driver: failed to attach CAN rx isr, no free filter [0m

[00:00:02.740,966] [0m<inf> app: CANopen stack initialized [0m
 
After this a guard message (hex string) , every 1 second,  is received over the CAN bus

70A 7F

The node appears in pre-operational state.
No other error messages are shown by the PC via the Zephyr debug system.

In this condition, sending NMT commands, it is possible to force the node to:
  • Enter in STOP mode
  • Enter in Pre-operational mode (from STOP mode)
  • Reset node
  • Reset communication
The node however doesn't enter in operational mode.

Might the reason for this latest fact be, that there is an error at reset, so that the node won't enter in operational mode because of this?
What can be the cause of the error? Is there a THREAD STACK SIZE or some other parameter I have to change to solve the problem?

Or can I suppose that the error message can be overlooked because the node has to start and then everything works as expected? I mean, the node after all IS receiving commands like I said above.

In any case I believe that the node has to be moved away from the error condition in order to proceed. What should be the best way to do this?                                                                                                                                                                                                                                                                                                      Thanks in advance for any hints and support                                                                                                                                                                                                                                                                                                                                          Kind regards                                                                                                                Cristian                                                                                                                                                                                                                                                                                                                                                                                                                                           


Zephyr Project: Dev Meeting - Thu, 01/21/2021 4:00pm-5:00pm, Please RSVP #cal-reminder

devel@lists.zephyrproject.org Calendar <devel@...>
 

Reminder: Zephyr Project: Dev Meeting

When: Thursday, 21 January 2021, 4:00pm to 5:00pm, (GMT+00:00) UTC

Where:Microsoft Teams Meeting

An RSVP is requested. Click here to RSVP

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
 
 
________________________________________________________________________________


Dev-Review Meeting Agenda Jan 21

Kumar Gala
 

Here’s the agenda topics for this week:

* west: build: [RFC] Generate SPDX tag-value documents
- https://github.com/zephyrproject-rtos/zephyr/pull/31065


* WIP: Move power subsystem to new power states
- https://github.com/zephyrproject-rtos/zephyr/pull/31273
* Mapping between existing and new system power management states
- https://github.com/zephyrproject-rtos/zephyr/issues/31162


(If any updates)
* linker: generate memory regions from devicetree partitions
https://github.com/zephyrproject-rtos/zephyr/pull/31077
* Zephyr: re-work DT flash partitioning for Nordic nRF boards in the tree
https://github.com/zephyrproject-rtos/zephyr/pull/29794



* Any PR/issues w/dev-review tag

https://github.com/zephyrproject-rtos/zephyr/labels/dev-review

* Any topics anyone else has.

- k


Re: West and git reference repositories

Carles Cufi
 

Hi Michael,

 

You can use the clone-depth attribute in projects, but there’s an ongoing effort for shallow cloning that we plan to revisit very soon:

https://github.com/zephyrproject-rtos/west/issues/319

 

Carles

 

From: devel@... <devel@...> On Behalf Of michael.rosenblum via lists.zephyrproject.org
Sent: 20 January 2021 22:03
To: devel@...
Subject: [Zephyr-devel] West and git reference repositories

 

Hi All,

I have been trying to find any info about using a git reference repos to speed up the clones with west, but I can't seem to find any documentation that mentions it.
Is there some config that I missed?

Mike 


West and git reference repositories

michael.rosenblum@...
 

Hi All,

I have been trying to find any info about using a git reference repos to speed up the clones with west, but I can't seem to find any documentation that mentions it.
Is there some config that I missed?

Mike 


Zephyr Project: APIs - Tue, 01/19/2021 5:00pm-6:00pm, Please RSVP #cal-reminder

devel@lists.zephyrproject.org Calendar <devel@...>
 

Reminder: Zephyr Project: APIs

When: Tuesday, 19 January 2021, 5:00pm to 6:00pm, (GMT+00:00) UTC

Where:Microsoft Teams Meeting

An RSVP is requested. Click here to RSVP

Organizer: devel@...

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
 
 
________________________________________________________________________________


API meeting: agenda

Carles Cufi
 

381 - 400 of 7929