Date   

Re: Zephyr Support of Ethernet for NIOS II Soft Processor on FPGA

Nashif, Anas
 

Aviv,

No, Unfortunately Ethernet is not supported on NIOSII yet.

 

Anas

 

From: devel@... [mailto:devel@...] On Behalf Of Weinstein, Aviv
Sent: Friday, July 20, 2018 2:36 PM
To: devel@...
Cc: bpreston@...
Subject: [Zephyr-devel] Zephyr Support of Ethernet for NIOS II Soft Processor on FPGA

 

Hello,

 

I was wondering if there was/is ethernet support though Zephyr. I am interested in using Intel FPGA’s (formerly Altera) NIOS II soft processor on an FPGA and want to make sure that Zephyr supports ethernet.

 

Best,

Aviv

-------

Aviv Weinstein

Field Applications Engineering| Seattle, WA

Intel Programmable Solutions Group

Cell: (408) 702 - 8984
Intel Corporation |
www.intel.com

 


Zephyr Support of Ethernet for NIOS II Soft Processor on FPGA

Weinstein, Aviv <aviv.weinstein@...>
 
Edited

Hello,

 

I was wondering if there was/is ethernet support though Zephyr. I am interested in using Intel FPGA’s (formerly Altera) NIOS II soft processor on an FPGA and want to make sure that Zephyr supports ethernet.

 

Best,

Aviv

-------

Aviv Weinstein

Field Applications Engineering| Seattle, WA

Intel Programmable Solutions Group
Intel Corporation | www.intel.com

 


Register soon for the Zephyr Hackathon at OpenIoT/Embedded Linux Con EU

Thea Aldrich
 

Hi Zephyr Developers,


We have a great week of presentations, workshops and special events organized for October 21-26, 2018 in Edinburgh, Scotland for the OpenIoT Summit and Embedded Linux Conference EU. As part of the conference’s co-located events, we are hosting a Zephyr Hackathon on Thursday October 25. I want to encourage you all to consider attending both the conference and our Hackathon the following day.


We have a number of activities planned for hackathon attendees of all experience levels and interest areas. This is a great opportunity to work with member representatives, developers and the larger user community on our ongoing development efforts, work on outstanding bugs and collaborate on new features.


We also have fun contests and games for attendees to compete to win prizes. All attendees will receive badges running Zephyr generously provided by Phytec for use in the challenge. More information is below. Please feel free to reach out if you have any questions about the event or what we have planned.

Best,

Thea Aldrich

Zephyr Project Developer Evangelist


Zephyr Hackathon - “Get Connected”

Date: Thursday, October 25

Time: 9:00 - 17:00

Location: Kilsyth Room - Ground Floor, EICC

 

Registration Cost: Free to ELC EU & OpenIoT Summit 2018 Attendees

Pre-registration is required. Click here to register or add this to your existing registration


Re: Low power node and friend #bluetoothmesh

Diana Rivera
 

Hello!

A couple of months ago, I requested some help to enable the LPN and friend features in this post: https://lists.zephyrproject.org/g/devel/topic/18050411#2060
Which turned out successfully with your help (decided to take the prj.conf file approach). Back then, I was using: v1.11.0-244-gbe52e3c.

Now I'm currently trying to run the same app in the latest Zephyr release: v1.12.0 (f58d9ca). However, I'm having some trouble with the LPN and friend node associating. I believe the problem might be with the friend node, as I've managed to make a node flashed with the LPN v1.12 configurations associate with a Friend v1.11 configurations. But still, I have failed to make them associate if both of them are flashed with the v1.12 code, or if the Friend is the one using that version. 

I've gone through the Friend related codes, and haven't been able to find a significant difference from the version I previously used. I have also gone through the API, and haven't been able to find what I'm doing wrong. Is there any change in the friend's configuration that I'm ignoring?

Thank you in advance for your help.
Best regards,

Diana


Re: AODV Based Routing Over BLE Mesh

Nashif, Anas
 

Osama,

 

Sure, can you share more details about your project and share the feature in form of a pull request on Github?

 

Thank you,

 

Anas

 

From: devel@... [mailto:devel@...] On Behalf Of Haytham Osama
Sent: Wednesday, July 18, 2018 10:01 AM
To: devel@...
Cc: Khaled Elsayed <khaled@...>; rehamtarekahmed@...; Ahmed Hussein <ahmedhussein.9494@...>; Rana Fawzi <rana.fawzi22@...>
Subject: [Zephyr-devel] AODV Based Routing Over BLE Mesh

 

Dear All,

 

We are a group of students at Cairo University who has developed an AODV based routing protocol using Zephyr over a BLE mesh network as our graduation project. Will you be interested in adding such feature to the current Zephyr stack?

 

Best Regards.  


AODV Based Routing Over BLE Mesh

Haytham Osama <haythamossama.95@...>
 

Dear All,

We are a group of students at Cairo University who has developed an AODV based routing protocol using Zephyr over a BLE mesh network as our graduation project. Will you be interested in adding such feature to the current Zephyr stack?

Best Regards.  


Re: Bluetooth: Mesh: Saving Server's State on SoC flash

vikrant8051 <vikrant8051@...>
 

Hi Johan,

But I need reference example or files from mesh stack which show how
to save & retrieve variable after reboot using setting layer ?

Thank You !!

On Wed, Jul 18, 2018 at 3:30 PM, Johan Hedberg <johan.hedberg@...> wrote:
Hi Vikrant,

On Wed, Jul 18, 2018, vikrant8051 wrote:
> Bluetooth Mesh stack is already utilizing setting layer (#FCB)
> to store mesh related data on SoC flash. Need examples so that
> its implementation along with Bluetooth Mesh sample code
> would not impact Mesh's persistent data ?

You should be able to use the same settings storage for your own data as
well. The Bluetooth stack (Mesh included) uses the prefix "bt/" for all
key names stored in settings, so as long as you use something else for
your own data there shouldn't be any risk of conflicts.

Johan


Re: Bluetooth: Mesh: Saving Server's State on SoC flash

Johan Hedberg
 

Hi Vikrant,

On Wed, Jul 18, 2018, vikrant8051 wrote:
Bluetooth Mesh stack is already utilizing setting layer (#FCB)
to store mesh related data on SoC flash. Need examples so that
its implementation along with Bluetooth Mesh sample code
would not impact Mesh's persistent data ?
You should be able to use the same settings storage for your own data as
well. The Bluetooth stack (Mesh included) uses the prefix "bt/" for all
key names stored in settings, so as long as you use something else for
your own data there shouldn't be any risk of conflicts.

Johan


Bluetooth: Mesh: Saving Server's State on SoC flash

vikrant8051 <vikrant8051@...>
 

Hi,

Bluetooth Mesh stack is already utilizing setting layer (#FCB)
to store mesh related data on SoC flash. Need examples so that
its implementation along with Bluetooth Mesh sample code
would not impact Mesh's persistent data ?

Thank You !!


Re: ZEPHYR_BASE environment variableIs setup #gettingstartedguide

miem@...
 

I added the ZEPHYR_BASE in environmental variable and it works now. Thanks.


Re: ZEPHYR_BASE environment variableIs setup #gettingstartedguide

Carles Cufi
 

Hi there,

 

I did tell you yesterday how to do that.

 

  1. Download Rapid Environment Editor.
  2. Add the environment variables you want with it
  3. Save

 

Now ZEPHYR_BASE will be set automatically every time you open a command window.

 

Carles

 

From: devel@... <devel@...> On Behalf Of miem@...
Sent: 13 July 2018 09:41
To: devel@...
Subject: Re: [Zephyr-devel] ZEPHYR_BASE environment variableIs setup #gettingstartedguide

 

Yes,
I am running on windows. and I set the ZEPHYR_TOOLCHAIN_VARIANT and GCCARMEMB_TOOLCHAIN_PATH in zephyrrc.cmd but I have to run zephyrrc.cmd and zephyr-env.cmd every time I am running a new command window session. 
Is it any way to save them as environmental variables and don't run zephyrrc.cmd and zephyr-env.cmd everytime?


Re: ZEPHYR_BASE environment variableIs setup #gettingstartedguide

miem@...
 

Yes,
I am running on windows. and I set the ZEPHYR_TOOLCHAIN_VARIANT and GCCARMEMB_TOOLCHAIN_PATH in zephyrrc.cmd but I have to run zephyrrc.cmd and zephyr-env.cmd every time I am running a new command window session. 
Is it any way to save them as environmental variables and don't run zephyrrc.cmd and zephyr-env.cmd everytime?


Re: ZEPHYR_BASE environment variableIs setup #gettingstartedguide

Maureen Helm
 

In Windows you can run zephyr-env.cmd to set ZEPHYR_BASE. It also has a hook to invoke your own zephyrrc.cmd which is handy for setting ZEPHYR_TOOLCHAIN_VARIANT and GCCARMEMB_TOOLCHAIN_PATH.

 

From: devel@... [mailto:devel@...] On Behalf Of Cufi, Carles
Sent: Thursday, July 12, 2018 10:28 AM
To: miem@...; devel@...
Subject: Re: [Zephyr-devel] ZEPHYR_BASE environment variableIs setup #gettingstartedguide

 

I assume you are on Windows from what you say.

 

If you have a single copy of the repo on your disk you can add ZEPHYR_BASE as a permanent environment variable. I recommend https://www.rapidee.com/en/about to do that.

 

Windows doesn’t have the equivalent of ~/.bashrc AFAIK.

 

 

From: devel@... <devel@...> On Behalf Of miem@...
Sent: 12 July 2018 16:12
To: devel@...
Subject: [Zephyr-devel] ZEPHYR_BASE environment variableIs setup #gettingstartedguide

 

Hi,

I have to set the the ZEPHYR_BASE environment variableIs every time I creat a new command window session to compile a project. Is there any way to save the ZEPHYR_BASE environment variableIs in windows setup and have it worked for all sessions?

Regards,
Miem


Re: ZEPHYR_BASE environment variableIs setup #gettingstartedguide

Carles Cufi
 

I assume you are on Windows from what you say.

 

If you have a single copy of the repo on your disk you can add ZEPHYR_BASE as a permanent environment variable. I recommend https://www.rapidee.com/en/about to do that.

 

Windows doesn’t have the equivalent of ~/.bashrc AFAIK.

 

 

From: devel@... <devel@...> On Behalf Of miem@...
Sent: 12 July 2018 16:12
To: devel@...
Subject: [Zephyr-devel] ZEPHYR_BASE environment variableIs setup #gettingstartedguide

 

Hi,

I have to set the the ZEPHYR_BASE environment variableIs every time I creat a new command window session to compile a project. Is there any way to save the ZEPHYR_BASE environment variableIs in windows setup and have it worked for all sessions?

Regards,
Miem


ZEPHYR_BASE environment variableIs setup #gettingstartedguide

miem@...
 

Hi,

I have to set the the ZEPHYR_BASE environment variableIs every time I creat a new command window session to compile a project. Is there any way to save the ZEPHYR_BASE environment variableIs in windows setup and have it worked for all sessions?

Regards,
Miem


STM32L4 CAN Driver status

leonard.bise@...
 

Hello Alexander,

I would like to use the STM32L4 CAN driver, as I understand you were the one that coded it, I wanted to ask if you could provide a status on this?
I tried to compile the samples/drivers/CAN sample on the master branch for the nucleo_l432kc board and I get compilation errors related to the CAN_InitTypeDef type in the HAL.

/home/lbise/gitrepo/zephyr/drivers/can/stm32_can.c:245:11: error: ‘CAN_InitTypeDef {aka struct <anonymous>}’ has no member named ‘TTCM’
  hcan.Init.TTCM = DISABLE;
           ^
/home/lbise/gitrepo/zephyr/drivers/can/stm32_can.c:246:11: error: ‘CAN_InitTypeDef {aka struct <anonymous>}’ has no member named ‘ABOM’
  hcan.Init.ABOM = DISABLE;
           ^
/home/lbise/gitrepo/zephyr/drivers/can/stm32_can.c:247:11: error: ‘CAN_InitTypeDef {aka struct <anonymous>}’ has no member named ‘AWUM’
  hcan.Init.AWUM = DISABLE;
           ^
/home/lbise/gitrepo/zephyr/drivers/can/stm32_can.c:248:11: error: ‘CAN_InitTypeDef {aka struct <anonymous>}’ has no member named ‘NART’
  hcan.Init.NART = DISABLE;
           ^
/home/lbise/gitrepo/zephyr/drivers/can/stm32_can.c:249:11: error: ‘CAN_InitTypeDef {aka struct <anonymous>}’ has no member named ‘RFLM’
  hcan.Init.RFLM = DISABLE;
           ^
/home/lbise/gitrepo/zephyr/drivers/can/stm32_can.c:250:11: error: ‘CAN_InitTypeDef {aka struct <anonymous>}’ has no member named ‘TXFP’
  hcan.Init.TXFP = DISABLE;
           ^
/home/lbise/gitrepo/zephyr/drivers/can/stm32_can.c:252:11: error: ‘CAN_InitTypeDef {aka struct <anonymous>}’ has no member named ‘SJW’
  hcan.Init.SJW  = swj;
           ^
/home/lbise/gitrepo/zephyr/drivers/can/stm32_can.c:253:11: error: ‘CAN_InitTypeDef {aka struct <anonymous>}’ has no member named ‘BS1’
  hcan.Init.BS1  = bs1;

Is there something broken or is it on my end?
Thanks.

Best regards,
Léonard.


Factory Reset: using power On/Off

vikrant8051 <vikrant8051@...>
 

Hi,

To push device into factory reset mode, there is one solution :
1) As soon as device get power it'd read variable store on SoC flash
2) And would immediately increase it by +1 & again stored it on SoC flash
3) After say 5 secs, it'd set that value to Zero & restore it on flash.

So in this method if after reboot, device found that value greater than 5, then it'd push device into factory reset mode.

How to implement it using #FCB & setting layer ? I wanna use this method along with #BluetoothMesh sample/demo examples. Could we make it as software module for all microcontrollers or SoCs which could be enable/disable using prj.conf ?

Thank You !!


Re: Has anyone used the USB HS port used as a USB FS on STM32F4?

Aurelien Jarno
 

On 2018-07-11 13:04, Yannis Damigos wrote:
All the STM32F7 SoCs except the STM32F723 have an on-chip FS PHY, just
like the STM32F4 family. The STM32F723 only has an on-chip HS PHY and
does not have the FS PHY.

You can see that on RM0431, pages 1172 and 1173.

The idea is to disable the ULPI clock for SoCs which do not have an HS
PHY, as the FS PHY should be used instead. If USB_HS_PHYC is defined,
the SoC has an HS PHY but not FS PHY, when it is not defined, it has a
FS PHY but no HS PHY.
Thanks for the pointers. I updated my tree accordingly.
Thanks, I confirm it works well on STM32F723E-DISCO, by just changing
the device tree to disable usbotg_fs and enable usbotg_hs.

Aurelien

--
Aurelien Jarno GPG: 4096R/1DDD8C9B
aurelien@aurel32.net http://www.aurel32.net


Re: Has anyone used the USB HS port used as a USB FS on STM32F4?

Yannis Damigos
 

All the STM32F7 SoCs except the STM32F723 have an on-chip FS PHY, just
like the STM32F4 family. The STM32F723 only has an on-chip HS PHY and
does not have the FS PHY.

You can see that on RM0431, pages 1172 and 1173.

The idea is to disable the ULPI clock for SoCs which do not have an HS
PHY, as the FS PHY should be used instead. If USB_HS_PHYC is defined,
the SoC has an HS PHY but not FS PHY, when it is not defined, it has a
FS PHY but no HS PHY.
Thanks for the pointers. I updated my tree accordingly.

Yannis


Re: Has anyone used the USB HS port used as a USB FS on STM32F4?

Aurelien Jarno
 

On 2018-07-11 11:03, Yannis Damigos wrote:
Hi Aurelien,

Thanks for reviewing it.

- The PHY has to be USB_OTG_HS_EMBEDDED_PHY on that board as it doesn't
have an embedded full-speed PHY
Strange. STM32F72xxx SoC reference manual mentions an on-chip full-speed PHY.
All the STM32F7 SoCs except the STM32F723 have an on-chip FS PHY, just
like the STM32F4 family. The STM32F723 only has an on-chip HS PHY and
does not have the FS PHY.

You can see that on RM0431, pages 1172 and 1173.

- The check on CONFIG_SERIES_STM32F7X is wrong and should be
CONFIG_SOC_SERIES_STM32F7X instead.
Fixed.

I also I believe that the STM32F7 SoCs without embedded HS speed behave
the same than the STM32F4. Therefore I think that both OTGHSULPI and
OTGPHYC clocks should be enabled if the SoC has an internal HS PHY,
otherwise OTGHSULPI should be disabled.
I agree. That's why I am trying to find a way to define the PHYs
(maybe in device tree).

diff --git a/drivers/usb/device/usb_dc_stm32.c b/drivers/usb/device/usb_dc_stm32.c
index f11233535..c85bca9a5 100644
--- a/drivers/usb/device/usb_dc_stm32.c
+++ b/drivers/usb/device/usb_dc_stm32.c
@@ -248,17 +248,14 @@ static int usb_dc_stm32_clock_enable(void)

#ifdef CONFIG_USB_HS_BASE_ADDRESS

-#ifdef CONFIG_SERIES_STM32F7X
- LL_AHB1_GRP1_EnableClock(LL_AHB1_GRP1_PERIPH_OTGHSULPI);
-
#ifdef USB_HS_PHYC
+ /* Enable ULPI interface and internal high-speed PHY clocks */
+ LL_AHB1_GRP1_EnableClock(LL_AHB1_GRP1_PERIPH_OTGHSULPI);
LL_APB2_GRP1_EnableClock(LL_APB2_GRP1_PERIPH_OTGPHYC);
-#endif /* USB_HS_PHYC
-
#else
/* Disable ULPI interface (for external high-speed PHY) clock */
LL_AHB1_GRP1_DisableClock(LL_AHB1_GRP1_PERIPH_OTGHSULPI);
-#endif /* CONFIG_SERIES_STM32F7X */
+#endif /* USB_HS_PHYC */

#endif /* CONFIG_USB_HS_BASE_ADDRESS */
USB_HS_PHYC is not defined on all STM32F7 SoCs, so enabling ULPI clock
if it is defined won't
work on other SoCs.
The idea is to disable the ULPI clock for SoCs which do not have an HS
PHY, as the FS PHY should be used instead. If USB_HS_PHYC is defined,
the SoC has an HS PHY but not FS PHY, when it is not defined, it has a
FS PHY but no HS PHY.

@@ -285,7 +282,11 @@ static int usb_dc_stm32_init(void)
#endif
usb_dc_stm32_state.pcd.Init.dev_endpoints = CONFIG_USB_NUM_BIDIR_ENDPOINTS;
usb_dc_stm32_state.pcd.Init.speed = USB_OTG_SPEED_FULL;
+#ifdef USB_HS_PHYC
+ usb_dc_stm32_state.pcd.Init.phy_itface = USB_OTG_HS_EMBEDDED_PHY;
+#else
usb_dc_stm32_state.pcd.Init.phy_itface = PCD_PHY_EMBEDDED;
+#endif /* USB_HS_PHYC */
usb_dc_stm32_state.pcd.Init.ep0_mps = USB_OTG_MAX_EP0_SIZE;
usb_dc_stm32_state.pcd.Init.vbus_sensing_enable = DISABLE;
The PR is focused on enabling FS mode on OTG_HS that's why I didn't
change PHY interface.
I understand that, that's why my patch didn't change USB_OTG_SPEED_FULL
(but I have verified it work in HS mode). That said given that there is
no FS PHY when there is an HS PHY, we need to use it in FS mode instead.

Aurelien

--
Aurelien Jarno GPG: 4096R/1DDD8C9B
aurelien@aurel32.net http://www.aurel32.net

2801 - 2820 of 7679