Date   

API meeting: agenda

Carles Cufi
 

Agenda:

- Flash: write protection and read alignment unification
- GPIO: Proposal review

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


[Mbedtls][logging] Mbedtls not printing logs

Prabhu Vinod, Karthik
 

Hi,

 

I am unable to get the Mbedtls log working.  I don’t see any logs from mbedtls being printed.

 

These are my KConfig options or mbedtls:

 

#

# Cryptography

#

# CONFIG_TINYCRYPT is not set

CONFIG_MBEDTLS=y

CONFIG_MBEDTLS_BUILTIN=y

# CONFIG_MBEDTLS_LIBRARY is not set

CONFIG_MBEDTLS_CFG_FILE="config-tls-generic.h"

 

#

# TLS configuration

#

 

#

# Supported TLS version

#

# CONFIG_MBEDTLS_TLS_VERSION_1_0 is not set

# CONFIG_MBEDTLS_TLS_VERSION_1_1 is not set

CONFIG_MBEDTLS_TLS_VERSION_1_2=y

# CONFIG_MBEDTLS_DTLS is not set

# CONFIG_MBEDTLS_SSL_EXPORT_KEYS is not set

 

#

# Ciphersuite configuration

#

 

#

# Supported key exchange modes

#

# CONFIG_MBEDTLS_KEY_EXCHANGE_ALL_ENABLED is not set

# CONFIG_MBEDTLS_KEY_EXCHANGE_PSK_ENABLED is not set

# CONFIG_MBEDTLS_KEY_EXCHANGE_DHE_PSK_ENABLED is not set

# CONFIG_MBEDTLS_KEY_EXCHANGE_ECDHE_PSK_ENABLED is not set

# CONFIG_MBEDTLS_KEY_EXCHANGE_RSA_PSK_ENABLED is not set

CONFIG_MBEDTLS_KEY_EXCHANGE_RSA_ENABLED=y

# CONFIG_MBEDTLS_KEY_EXCHANGE_DHE_RSA_ENABLED is not set

# CONFIG_MBEDTLS_KEY_EXCHANGE_ECDHE_RSA_ENABLED is not set

# CONFIG_MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED is not set

# CONFIG_MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA_ENABLED is not set

# CONFIG_MBEDTLS_KEY_EXCHANGE_ECDH_RSA_ENABLED is not set

# CONFIG_MBEDTLS_KEY_EXCHANGE_ECJPAKE_ENABLED is not set

 

#

# Supported cipher modes

#

# CONFIG_MBEDTLS_CIPHER_ALL_ENABLED is not set

CONFIG_MBEDTLS_CIPHER_AES_ENABLED=y

CONFIG_MBEDTLS_AES_ROM_TABLES=y

# CONFIG_MBEDTLS_CIPHER_CAMELLIA_ENABLED is not set

CONFIG_MBEDTLS_CIPHER_DES_ENABLED=y

# CONFIG_MBEDTLS_CIPHER_ARC4_ENABLED is not set

# CONFIG_MBEDTLS_CIPHER_CHACHA20_ENABLED is not set

# CONFIG_MBEDTLS_CIPHER_BLOWFISH_ENABLED is not set

# CONFIG_MBEDTLS_CIPHER_CCM_ENABLED is not set

# CONFIG_MBEDTLS_CIPHER_MODE_XTS_ENABLED is not set

# CONFIG_MBEDTLS_CIPHER_MODE_GCM_ENABLED is not set

CONFIG_MBEDTLS_CIPHER_CBC_ENABLED=y

 

#

# Supported message authentication methods

#

# CONFIG_MBEDTLS_MAC_ALL_ENABLED is not set

# CONFIG_MBEDTLS_MAC_MD4_ENABLED is not set

CONFIG_MBEDTLS_MAC_MD5_ENABLED=y

CONFIG_MBEDTLS_MAC_SHA1_ENABLED=y

CONFIG_MBEDTLS_MAC_SHA256_ENABLED=y

CONFIG_MBEDTLS_SHA256_SMALLER=y

# CONFIG_MBEDTLS_MAC_SHA512_ENABLED is not set

# CONFIG_MBEDTLS_MAC_POLY1305_ENABLED is not set

# CONFIG_MBEDTLS_MAC_CMAC_ENABLED is not set

 

#

# Random number generators

#

CONFIG_MBEDTLS_CTR_DRBG_ENABLED=y

# CONFIG_MBEDTLS_HMAC_DRBG_ENABLED is not set

 

#

# Other configurations

#

# CONFIG_MBEDTLS_GENPRIME_ENABLED is not set

# CONFIG_MBEDTLS_PEM_CERTIFICATE_FORMAT is not set

# CONFIG_MBEDTLS_HAVE_ASM is not set

# CONFIG_MBEDTLS_ENTROPY_ENABLED is not set

CONFIG_MBEDTLS_USER_CONFIG_ENABLE=y

CONFIG_MBEDTLS_USER_CONFIG_FILE="config-mini-tls1_2-gcm-aes512.h"

CONFIG_MBEDTLS_SSL_MAX_CONTENT_LEN=5000

CONFIG_MBEDTLS_DEBUG=y

CONFIG_MBEDTLS_DEBUG_LEVEL=4

# CONFIG_MBEDTLS_TEST is not set

CONFIG_MBEDTLS_ENABLE_HEAP=y

CONFIG_MBEDTLS_HEAP_SIZE=53248

CONFIG_APP_LINK_WITH_MBEDTLS=y

 

Like you can see mbedtls_debug has been set to y and with log level to verbose. Any idea what’s wrong or missing.

 

Many Regards,

Karthik Prabhu Vinod

 

Help save the planet by choosing not to use single use plastics. Pick paper, bamboo or metal cutlery and carry your own bag to the grocery store. Every little thing you do makes an impact.


"net arp" command displays "ARP cache is empty" even after a series of arpings from peer devices #nrf52480

giriprasad@...
 

Hi,

I have interfaced "ENC28J60" to "PCA10056"(NRF52840) through SPI. Made necessary configurations in order to reflect hardware changes in software. Flashed sample application, "dumb_http_server" to the board. Enabled "ARP" and "ICMP". I am able to ping the board from peer devices in network and vice versa. Also, I am able to "arping" the board from peer devices in network. After this, I have issued "net arp" command in the serial console of the board. By this, I am expecting a list of peer devices to be displayed on the console. But console throws a message saying "ARP cache is empty". Can I know the reason for this behavior? Please let me know, if I was wrong in the process. Also, let me know if more information is needed. Attached configuration file for reference.

Thanks & Regards,
Giri Prasad N.


Re: Runner pyocd cannot find 'intelhex' while running ninja flash - is there a Python environment vaiable I am missing ?

Maureen Helm
 

Hi Bob,

The ‘intelhex’ error looks like you’re missing a python package, but even if you get that resolved you unfortunately cannot use pyocd in the Windows 10 Linux subsystem. WSL has limited support for USB. I recommend using the native Windows command prompt or a Linux VM.

 

Maureen

 

From: users@... <users@...> On Behalf Of Bob Wilmes via Lists.Zephyrproject.Org
Sent: Thursday, May 30, 2019 1:15 PM
To: users@...
Cc: users@...
Subject: [Zephyr-users] Runner pyocd cannot find 'intelhex' while running ninja flash - is there a Python environment vaiable I am missing ?

 

I am a beginner using Windows 10 Linux subsystem running Ubuntu 18.04 LTS from the Windows app store as a development environment
I was able to get cmake working correctly after defining the environment variable ZEPHYR_BASE (below is a trace)
The problem I'm having is that the runner 'pyocd' cannot find the module 'intelhex' while running ninja flash
Is there a python environment variable that needs to be set to pickup 'intelhex' ?

Thanks for any help! Regards, Bob Wilmes

bobwilmes@WILMES:~/zephyrproject/zephyr/samples/hello_world/build$ cmake -GNinja -DBOARD=bbc_microbit ..
Zephyr version: 1.14.99
-- Selected BOARD bbc_microbit
-- Found west: /home/bobwilmes/.local/bin/west (found suitable version "0.5.7", minimum required is "0.5.6")
-- Loading /home/bobwilmes/zephyrproject/zephyr/boards/arm/bbc_microbit/bbc_microbit.dts as base
-- Overlaying /home/bobwilmes/zephyrproject/zephyr/dts/common/common.dts
Parsing Kconfig tree in /home/bobwilmes/zephyrproject/zephyr/Kconfig
Loading /home/bobwilmes/zephyrproject/zephyr/samples/hello_world/build/zephyr/.config as base
Configuration written to '/home/bobwilmes/zephyrproject/zephyr/samples/hello_world/build/zephyr/.config'
-- Cache files will be written to: /home/bobwilmes/.cache/zephyr
-- The C compiler identification is GNU 8.3.0
-- The CXX compiler identification is GNU 8.3.0
-- The ASM compiler identification is GNU
-- Found assembler: /opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc
Including module: tinycbor in path: /home/bobwilmes/zephyrproject/modules/lib/tinycbor
Including module: qmsi in path: /home/bobwilmes/zephyrproject/modules/hal/qmsi
Including module: esp-idf in path: /home/bobwilmes/zephyrproject/modules/hal/esp-idf/zephyr
Including module: fatfs in path: /home/bobwilmes/zephyrproject/modules/fs/fatfs
Including module: mcumgr in path: /home/bobwilmes/zephyrproject/modules/lib/mcumgr
Including module: nffs in path: /home/bobwilmes/zephyrproject/modules/fs/nffs
Including module: segger in path: /home/bobwilmes/zephyrproject/modules/debug/segger
-- Configuring done
-- Generating done
-- Build files have been written to: /home/bobwilmes/zephyrproject/zephyr/samples/hello_world/build
bobwilmes@WILMES:~/zephyrproject/zephyr/samples/hello_world/build$ ninja flash
[1/106] Preparing syscall dependency handling

[98/104] Linking C executable zephyr/zephyr_prebuilt.elf
Memory region         Used Size  Region Size  %age Used
           FLASH:       10540 B       256 KB      4.02%
            SRAM:        2380 B        16 KB     14.53%
        IDT_LIST:          56 B         2 KB      2.73%
[103/104] Flashing bbc_microbit
Using runner: pyocd
Flashing Target Device
Traceback (most recent call last):
  File "/usr/local/bin/pyocd", line 7, in <module>
    from pyocd.__main__ import main
  File "/usr/local/lib/python3.6/dist-packages/pyocd/__init__.py", line 21, in <module>
    from . import gdbserver
  File "/usr/local/lib/python3.6/dist-packages/pyocd/gdbserver/__init__.py", line 17, in <module>
    from .gdbserver import GDBServer
  File "/usr/local/lib/python3.6/dist-packages/pyocd/gdbserver/gdbserver.py", line 19, in <module>
    from ..flash.loader import (FlashLoader, FlashEraser)
  File "/usr/local/lib/python3.6/dist-packages/pyocd/flash/loader.py", line 21, in <module>
    from intelhex import IntelHex
ModuleNotFoundError: No module named 'intelhex'
ERROR: command exited with status 1: pyocd flash -e sector -t nrf51 /home/bobwilmes/zephyrproject/zephyr/samples/hello_world/build/zephyr/zephyr.hex
run as "west -v flash --skip-rebuild" for a stack trace
FAILED: zephyr/cmake/flash/CMakeFiles/flash
cd /home/bobwilmes/zephyrproject/zephyr/samples/hello_world/build && /home/bobwilmes/.local/lib/python2.7/site-packages/cmake/data/bin/cmake -E env /home/bobwilmes/.local/bin/west flash --skip-rebuild
ninja: build stopped: subcommand failed.
bobwilmes@WILMES:~/zephyrproject/zephyr/samples/hello_world/build$


Runner pyocd cannot find 'intelhex' while running ninja flash - is there a Python environment vaiable I am missing ?

Bob Wilmes
 

I am a beginner using Windows 10 Linux subsystem running Ubuntu 18.04 LTS from the Windows app store as a development environment
I was able to get cmake working correctly after defining the environment variable ZEPHYR_BASE (below is a trace)
The problem I'm having is that the runner 'pyocd' cannot find the module 'intelhex' while running ninja flash
Is there a python environment variable that needs to be set to pickup 'intelhex' ?

Thanks for any help! Regards, Bob Wilmes

bobwilmes@WILMES:~/zephyrproject/zephyr/samples/hello_world/build$ cmake -GNinja -DBOARD=bbc_microbit ..
Zephyr version: 1.14.99
-- Selected BOARD bbc_microbit
-- Found west: /home/bobwilmes/.local/bin/west (found suitable version "0.5.7", minimum required is "0.5.6")
-- Loading /home/bobwilmes/zephyrproject/zephyr/boards/arm/bbc_microbit/bbc_microbit.dts as base
-- Overlaying /home/bobwilmes/zephyrproject/zephyr/dts/common/common.dts
Parsing Kconfig tree in /home/bobwilmes/zephyrproject/zephyr/Kconfig
Loading /home/bobwilmes/zephyrproject/zephyr/samples/hello_world/build/zephyr/.config as base
Configuration written to '/home/bobwilmes/zephyrproject/zephyr/samples/hello_world/build/zephyr/.config'
-- Cache files will be written to: /home/bobwilmes/.cache/zephyr
-- The C compiler identification is GNU 8.3.0
-- The CXX compiler identification is GNU 8.3.0
-- The ASM compiler identification is GNU
-- Found assembler: /opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc
Including module: tinycbor in path: /home/bobwilmes/zephyrproject/modules/lib/tinycbor
Including module: qmsi in path: /home/bobwilmes/zephyrproject/modules/hal/qmsi
Including module: esp-idf in path: /home/bobwilmes/zephyrproject/modules/hal/esp-idf/zephyr
Including module: fatfs in path: /home/bobwilmes/zephyrproject/modules/fs/fatfs
Including module: mcumgr in path: /home/bobwilmes/zephyrproject/modules/lib/mcumgr
Including module: nffs in path: /home/bobwilmes/zephyrproject/modules/fs/nffs
Including module: segger in path: /home/bobwilmes/zephyrproject/modules/debug/segger
-- Configuring done
-- Generating done
-- Build files have been written to: /home/bobwilmes/zephyrproject/zephyr/samples/hello_world/build
bobwilmes@WILMES:~/zephyrproject/zephyr/samples/hello_world/build$ ninja flash
[1/106] Preparing syscall dependency handling
[98/104] Linking C executable zephyr/zephyr_prebuilt.elf
Memory region         Used Size  Region Size  %age Used
           FLASH:       10540 B       256 KB      4.02%
            SRAM:        2380 B        16 KB     14.53%
        IDT_LIST:          56 B         2 KB      2.73%
[103/104] Flashing bbc_microbit
Using runner: pyocd
Flashing Target Device
Traceback (most recent call last):
  File "/usr/local/bin/pyocd", line 7, in <module>
    from pyocd.__main__ import main
  File "/usr/local/lib/python3.6/dist-packages/pyocd/__init__.py", line 21, in <module>
    from . import gdbserver
  File "/usr/local/lib/python3.6/dist-packages/pyocd/gdbserver/__init__.py", line 17, in <module>
    from .gdbserver import GDBServer
  File "/usr/local/lib/python3.6/dist-packages/pyocd/gdbserver/gdbserver.py", line 19, in <module>
    from ..flash.loader import (FlashLoader, FlashEraser)
  File "/usr/local/lib/python3.6/dist-packages/pyocd/flash/loader.py", line 21, in <module>
    from intelhex import IntelHex
ModuleNotFoundError: No module named 'intelhex'
ERROR: command exited with status 1: pyocd flash -e sector -t nrf51 /home/bobwilmes/zephyrproject/zephyr/samples/hello_world/build/zephyr/zephyr.hex
run as "west -v flash --skip-rebuild" for a stack trace
FAILED: zephyr/cmake/flash/CMakeFiles/flash
cd /home/bobwilmes/zephyrproject/zephyr/samples/hello_world/build && /home/bobwilmes/.local/lib/python2.7/site-packages/cmake/data/bin/cmake -E env /home/bobwilmes/.local/bin/west flash --skip-rebuild
ninja: build stopped: subcommand failed.
bobwilmes@WILMES:~/zephyrproject/zephyr/samples/hello_world/build$


Re: C Compiler "/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc" does not compile

Bob Wilmes
 

Thanks Marc - your answer works perfect - I didn't have ZEPHYR_BASE set to $HOME/zephyrproject/zephyr
cmake works perfectly now and picks up the arm compiler now.

Best regards,
Bob Wilmes

On Wed, May 29, 2019 at 10:33 PM Herbert, Marc <marc.herbert@...> wrote:

Hi,

 

You're missing a ${ZEPHYR_BASE} definition. Do you use west?

 

This often confused me too. So I looked into adding a better error message but I couldn't find an implementation that wouldn't have to be duplicated in every single sample and test. That must be why there isn't any.

 

CMake doesn't support $ENV{ZEPHYR_BASE:-zephyr_base_is_missing} out of the box; please prove me wrong. Zephyr has tons of advanced CMake features available in.... ${ZEPHYR_BASE}/cmake

 

 

Marc

 

Off-topic PS: cmake has a new -B option that saves changing directory, see example in https://github.com/zephyrproject-rtos/zephyr/issues/15315

 

 

From: <users@...> on behalf of "bobwilmes@..." <bobwilmes@...>
Date: Wednesday, 29 May 2019 at 20:15
To: "users@..." <users@...>
Subject: [Zephyr-users] C Compiler "/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc" does not compile

 

I am new to Zephyr trying to build some of the sample programs for a bbc_microbit.
I get the following error message from the compiler (I installed the 0.10 level of the Zephyr SDK on Windows 10 subsystem for Linux running Ubuntu 18.04 LTS).
It looks like the compiler that comers with the SDK is not working.
Any help would be much appreciated!!!!

bobwilmes@WILMES:~/zephyrproject/zephyr/samples/hello_world/build$ cmake -GNinja -DBOARD=bbc_microbit ..
CMake Error at CMakeLists.txt:5 (include):
  include could not find load file:

    /cmake/app/boilerplate.cmake


-- The C compiler identification is GNU 8.3.0
-- The CXX compiler identification is GNU 8.3.0
-- Check for working C compiler: /opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc
-- Check for working C compiler: /opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc -- broken
CMake Error at /home/bobwilmes/.local/lib/python2.7/site-packages/cmake/data/share/cmake-3.13/Modules/CMakeTestCCompiler.cmake:52 (message):
  The C compiler

    "/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir: /home/bobwilmes/zephyrproject/zephyr/samples/hello_world/build/CMakeFiles/CMakeTmp

    Run Build Command:"/usr/bin/ninja" "cmTC_37158"
    [1/2] Building C object CMakeFiles/cmTC_37158.dir/testCCompiler.c.o
    [2/2] Linking C executable cmTC_37158
    FAILED: cmTC_37158
    : && /opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc    CMakeFiles/cmTC_37158.dir/testCCompiler.c.o  -o cmTC_37158   && :
    /opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/8.3.0/../../../../arm-zephyr-eabi/bin/ld: /opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/8.3.0/../../../../arm-zephyr-eabi/lib/libc.a(lib_a-exit.o): in function `exit':
    /home/buildslave/src/github.com/zephyrproject-rtos/sdk-ng/build/build_arm/.build/arm-zephyr-eabi/src/newlib/newlib/libc/stdlib/exit.c:64: undefined reference to `_exit'
    collect2: error: ld returned 1 exit status
    ninja: build stopped: subcommand failed.

 


  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:6 (project)


-- Configuring incomplete, errors occurred!
See also "/home/bobwilmes/zephyrproject/zephyr/samples/hello_world/build/CMakeFiles/CMakeOutput.log".
See also "/home/bobwilmes/zephyrproject/zephyr/samples/hello_world/build/CMakeFiles/CMakeError.log".
bobwilmes@WILMES:~/zephyrproject/zephyr/samples/hello_world/build$ -



--
Bob Wilmes
bobwilmes@...


Galileo pinmux issue

andreibolkonski1814@...
 

As I was testing Zephyr on Galileo, I noticed that pinumx functionalities that use pwm for multiplexing are not working. A small modification in pinmux.c(https://github.com/zephyrproject-rtos/zephyr/blob/master/boards/x86/galileo/pinmux.c), consisting in changing the pulse_count parameter of pwm_pin_set_cycles from 100 to 4095 seems to have solved the problem. This change was suggested by the commentaries in the pwm driver.
Is this a good solution?


Re: C Compiler "/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc" does not compile

Marc Herbert
 

Hi,

 

You're missing a ${ZEPHYR_BASE} definition. Do you use west?

 

This often confused me too. So I looked into adding a better error message but I couldn't find an implementation that wouldn't have to be duplicated in every single sample and test. That must be why there isn't any.

 

CMake doesn't support $ENV{ZEPHYR_BASE:-zephyr_base_is_missing} out of the box; please prove me wrong. Zephyr has tons of advanced CMake features available in.... ${ZEPHYR_BASE}/cmake

 

 

Marc

 

Off-topic PS: cmake has a new -B option that saves changing directory, see example in https://github.com/zephyrproject-rtos/zephyr/issues/15315

 

 

From: <users@...> on behalf of "bobwilmes@..." <bobwilmes@...>
Date: Wednesday, 29 May 2019 at 20:15
To: "users@..." <users@...>
Subject: [Zephyr-users] C Compiler "/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc" does not compile

 

I am new to Zephyr trying to build some of the sample programs for a bbc_microbit.
I get the following error message from the compiler (I installed the 0.10 level of the Zephyr SDK on Windows 10 subsystem for Linux running Ubuntu 18.04 LTS).
It looks like the compiler that comers with the SDK is not working.
Any help would be much appreciated!!!!

bobwilmes@WILMES:~/zephyrproject/zephyr/samples/hello_world/build$ cmake -GNinja -DBOARD=bbc_microbit ..
CMake Error at CMakeLists.txt:5 (include):
  include could not find load file:

    /cmake/app/boilerplate.cmake


-- The C compiler identification is GNU 8.3.0
-- The CXX compiler identification is GNU 8.3.0
-- Check for working C compiler: /opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc
-- Check for working C compiler: /opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc -- broken
CMake Error at /home/bobwilmes/.local/lib/python2.7/site-packages/cmake/data/share/cmake-3.13/Modules/CMakeTestCCompiler.cmake:52 (message):
  The C compiler

    "/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir: /home/bobwilmes/zephyrproject/zephyr/samples/hello_world/build/CMakeFiles/CMakeTmp

    Run Build Command:"/usr/bin/ninja" "cmTC_37158"
    [1/2] Building C object CMakeFiles/cmTC_37158.dir/testCCompiler.c.o
    [2/2] Linking C executable cmTC_37158
    FAILED: cmTC_37158
    : && /opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc    CMakeFiles/cmTC_37158.dir/testCCompiler.c.o  -o cmTC_37158   && :
    /opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/8.3.0/../../../../arm-zephyr-eabi/bin/ld: /opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/8.3.0/../../../../arm-zephyr-eabi/lib/libc.a(lib_a-exit.o): in function `exit':
    /home/buildslave/src/github.com/zephyrproject-rtos/sdk-ng/build/build_arm/.build/arm-zephyr-eabi/src/newlib/newlib/libc/stdlib/exit.c:64: undefined reference to `_exit'
    collect2: error: ld returned 1 exit status
    ninja: build stopped: subcommand failed.

 


  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:6 (project)


-- Configuring incomplete, errors occurred!
See also "/home/bobwilmes/zephyrproject/zephyr/samples/hello_world/build/CMakeFiles/CMakeOutput.log".
See also "/home/bobwilmes/zephyrproject/zephyr/samples/hello_world/build/CMakeFiles/CMakeError.log".
bobwilmes@WILMES:~/zephyrproject/zephyr/samples/hello_world/build$ -


C Compiler "/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc" does not compile

Bob Wilmes
 

I am new to Zephyr trying to build some of the sample programs for a bbc_microbit.
I get the following error message from the compiler (I installed the 0.10 level of the Zephyr SDK on Windows 10 subsystem for Linux running Ubuntu 18.04 LTS).
It looks like the compiler that comers with the SDK is not working.
Any help would be much appreciated!!!!

bobwilmes@WILMES:~/zephyrproject/zephyr/samples/hello_world/build$ cmake -GNinja -DBOARD=bbc_microbit ..
CMake Error at CMakeLists.txt:5 (include):
  include could not find load file:
    /cmake/app/boilerplate.cmake

-- The C compiler identification is GNU 8.3.0
-- The CXX compiler identification is GNU 8.3.0
-- Check for working C compiler: /opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc
-- Check for working C compiler: /opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc -- broken
CMake Error at /home/bobwilmes/.local/lib/python2.7/site-packages/cmake/data/share/cmake-3.13/Modules/CMakeTestCCompiler.cmake:52 (message):
  The C compiler
    "/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc"
  is not able to compile a simple test program.
  It fails with the following output:
    Change Dir: /home/bobwilmes/zephyrproject/zephyr/samples/hello_world/build/CMakeFiles/CMakeTmp
    Run Build Command:"/usr/bin/ninja" "cmTC_37158"
    [1/2] Building C object CMakeFiles/cmTC_37158.dir/testCCompiler.c.o
    [2/2] Linking C executable cmTC_37158
    FAILED: cmTC_37158
    : && /opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc    CMakeFiles/cmTC_37158.dir/testCCompiler.c.o  -o cmTC_37158   && :
    /opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/8.3.0/../../../../arm-zephyr-eabi/bin/ld: /opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/8.3.0/../../../../arm-zephyr-eabi/lib/libc.a(lib_a-exit.o): in function `exit':
    /home/buildslave/src/github.com/zephyrproject-rtos/sdk-ng/build/build_arm/.build/arm-zephyr-eabi/src/newlib/newlib/libc/stdlib/exit.c:64: undefined reference to `_exit'
    collect2: error: ld returned 1 exit status
    ninja: build stopped: subcommand failed.
 

  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:6 (project)

-- Configuring incomplete, errors occurred!
See also "/home/bobwilmes/zephyrproject/zephyr/samples/hello_world/build/CMakeFiles/CMakeOutput.log".
See also "/home/bobwilmes/zephyrproject/zephyr/samples/hello_world/build/CMakeFiles/CMakeError.log".
bobwilmes@WILMES:~/zephyrproject/zephyr/samples/hello_world/build$ -


Re: fail to install python dependencies

KAY LI NG <kayli0109@...>
 

Hi Carles,

I tried google method as well. Including update the setup tools, change python version.
But it doesnt work.

Regards,
Kay Li

On Tue, 28 May 2019 at 21:26, Cufi, Carles <Carles.Cufi@...> wrote:

Googling a bit this shows that it might be related to an out of date setuptools.

Try running:

pip install --upgrade setuptools

 

Regards,

 

Carles

 

From: users@... <users@...> On Behalf Of via Lists.Zephyrproject.Org
Sent: 28 May 2019 09:00
To: users@...
Cc: users@...
Subject: [Zephyr-users] fail to install python dependencies

 

Hi,

 

I tried this, but the following error came out. What should I do?

$ pip3 install --user -r zephyr/scripts/requirements.txt

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-hvx0atyk/pyocd/
Regards, Kay Li


Re: fail to install python dependencies

Carles Cufi
 

Googling a bit this shows that it might be related to an out of date setuptools.

Try running:

pip install --upgrade setuptools

 

Regards,

 

Carles

 

From: users@... <users@...> On Behalf Of via Lists.Zephyrproject.Org
Sent: 28 May 2019 09:00
To: users@...
Cc: users@...
Subject: [Zephyr-users] fail to install python dependencies

 

Hi,

 

I tried this, but the following error came out. What should I do?

$ pip3 install --user -r zephyr/scripts/requirements.txt

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-hvx0atyk/pyocd/
Regards, Kay Li


fail to install python dependencies

KAY LI NG <kayli0109@...>
 

Hi,

I tried this, but the following error came out. What should I do?
$ pip3 install --user -r zephyr/scripts/requirements.txt

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-hvx0atyk/pyocd/
Regards, Kay Li


API meeting and agenda

Carles Cufi
 

Hi all,

As you know, the Zephyr API meeting takes place on Tuesdays 9AM-10AM (PDT) (18h-19h (CEST)).

Until now the way to include an item (issue or Pull Request) added to the meeting agenda was to add the API label to it.
In order to simplify the management of issues, we now ask everybody to instead mark the item as belonging to the API review/cleanup/rework GitHub Project (use the Projects selector in the issue or Pull Request):
https://github.com/zephyrproject-rtos/zephyr/projects/18

During the API meeting we will go through the Triage column in that project.

Additional information about the meeting can be found here:
https://github.com/zephyrproject-rtos/zephyr/wiki/Zephyr-Committee-and-Working-Group-Meetings#zephyr-api-discussion

Thanks,

Carles


Re: Zephyr compatible motes for 802.15.4

Nikos Karamolegkos
 

On Tue, May 28, 2019 at 02:44 AM, Paul Sokolovsky wrote:
frdm_kw41z
The only bad thing is that this module supports only the FSK PHY.


Re: Zephyr compatible motes for 802.15.4

Paul Sokolovsky
 

On Tue, 28 May 2019 01:48:33 -0700
"Nikos Karamolegkos" <nkaram@...> wrote:

Thank you all. Paul can I use these modules with the zephyr's 6lowpan
stack? Theoretically, I believe yes
That's what I did, yes - ping6'ed from Linux host to frdm_kw41z over
6lowpan/15.4. More thorough testing is still in my backlog.

--
Best Regards,
Paul

Linaro.org | Open source software for ARM SoCs
Follow Linaro: http://www.facebook.com/pages/Linaro
http://twitter.com/#!/linaroorg - http://www.linaro.org/linaro-blog


Re: Zephyr compatible motes for 802.15.4

Nikos Karamolegkos
 

Thank you all. Paul can I use these modules with the zephyr's 6lowpan stack? Theoretically, I believe yes


Re: Zephyr compatible motes for 802.15.4

Paul Sokolovsky
 

Hello,

On Mon, 27 May 2019 06:43:44 -0700
"Nikos Karamolegkos" <nkaram@...> wrote:

What about FRDM-KW41Z? As I can see this low cost development
platform supports IEEE 802.15.4 and it's supported by the zephyr
RTOS.
https://docs.zephyrproject.org/1.11.0/boards/arm/frdm_kw41z/doc/frdm_kw41z.html
Yes, FRDM-KW41Z supports 802.15.4 in Zephyr, I issued pings over 15.4
connection using it.

Note that level of support for different features (especially advanced,
like 15.4) for different boards (and lack/presence of bugs) may vary.

[]

--
Best Regards,
Paul

Linaro.org | Open source software for ARM SoCs
Follow Linaro: http://www.facebook.com/pages/Linaro
http://twitter.com/#!/linaroorg - http://www.linaro.org/linaro-blog


Re: Zephyr compatible motes for 802.15.4

Andrei
 

Hi,

On Mon, May 27, 2019 at 06:43:44AM -0700, Nikos Karamolegkos wrote:
What about FRDM-KW41Z? As I can see this low cost development platform
supports IEEE 802.15.4 and it's supported by the zephyr RTOS.
https://docs.zephyrproject.org/1.11.0/boards/arm/frdm_kw41z/doc/frdm_kw41z.html
I have not tried that board, I know that FRDM-K64F works (somehow) with
802.15.4 through FRDM-CR20A shield (there is overlay for that
configuration overlay-frdm_k64f_mcr20a.conf).

I would personally recommend to use nrf based boards like reel_board,
etc.

Best regards
Andrei Emeltchenko


Re: west command not found

Kinder, David B <david.b.kinder@...>
 

When you install with “pip3 install —user” on Linux, you also need to add ~/.local/bin to the front of your PATH (as documented in https://docs.zephyrproject.org/latest/getting_started/index.html#gs-python-deps)

-- david kinder

On May 27, 2019, at 6:32 PM, KAY LI NG <kayli0109@...> wrote:

Hi,

I am facing a problem with the west installation. CAn figure out how to solve this.

$ pip3 install --user west
Collecting west
  Using cached https://files.pythonhosted.org/packages/e5/9f/7dcd8985532e9b42d76c0777bbfa411b58991f86e82e9d2a0c97948b26e1/west-0.5.8-py3-none-any.whl
Collecting configobj (from west)
Collecting PyYAML (from west)
Collecting colorama (from west)
  Using cached https://files.pythonhosted.org/packages/4f/a6/728666f39bfff1719fc94c481890b2106837da9318031f71a8424b662e12/colorama-0.4.1-py2.py3-none-any.whl
Collecting pykwalify (from west)
  Using cached https://files.pythonhosted.org/packages/36/9f/612de8ca540bd24d604f544248c4c46e9db76f6ea5eb75fb4244da6ebbf0/pykwalify-1.7.0-py2.py3-none-any.whl
Collecting six (from configobj->west)
  Using cached https://files.pythonhosted.org/packages/73/fb/00a976f728d0d1fecfe898238ce23f502a721c0ac0ecfedb80e0d88c64e9/six-1.12.0-py2.py3-none-any.whl
Collecting python-dateutil>=2.4.2 (from pykwalify->west)
  Using cached https://files.pythonhosted.org/packages/41/17/c62faccbfbd163c7f57f3844689e3a78bae1f403648a6afb1d0866d87fbb/python_dateutil-2.8.0-py2.py3-none-any.whl
Collecting docopt>=0.6.2 (from pykwalify->west)
Installing collected packages: six, configobj, PyYAML, colorama, python-dateutil, docopt, pykwalify, west
Successfully installed PyYAML-5.1 colorama-0.4.1 configobj-5.0.6 docopt-0.6.2 pykwalify-1.7.0 python-dateutil-2.8.0 six-1.12.0 west-0.5.8
You are using pip version 8.1.1, however version 19.1.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
$ west --version
No command 'west' found, did you mean:
 Command 'test' from package 'coreutils' (main)
west: command not found
Regards,
Kay Li


west command not found

KAY LI NG <kayli0109@...>
 

Hi,

I am facing a problem with the west installation. CAn figure out how to solve this.

$ pip3 install --user west
Collecting west
  Using cached https://files.pythonhosted.org/packages/e5/9f/7dcd8985532e9b42d76c0777bbfa411b58991f86e82e9d2a0c97948b26e1/west-0.5.8-py3-none-any.whl
Collecting configobj (from west)
Collecting PyYAML (from west)
Collecting colorama (from west)
  Using cached https://files.pythonhosted.org/packages/4f/a6/728666f39bfff1719fc94c481890b2106837da9318031f71a8424b662e12/colorama-0.4.1-py2.py3-none-any.whl
Collecting pykwalify (from west)
  Using cached https://files.pythonhosted.org/packages/36/9f/612de8ca540bd24d604f544248c4c46e9db76f6ea5eb75fb4244da6ebbf0/pykwalify-1.7.0-py2.py3-none-any.whl
Collecting six (from configobj->west)
  Using cached https://files.pythonhosted.org/packages/73/fb/00a976f728d0d1fecfe898238ce23f502a721c0ac0ecfedb80e0d88c64e9/six-1.12.0-py2.py3-none-any.whl
Collecting python-dateutil>=2.4.2 (from pykwalify->west)
  Using cached https://files.pythonhosted.org/packages/41/17/c62faccbfbd163c7f57f3844689e3a78bae1f403648a6afb1d0866d87fbb/python_dateutil-2.8.0-py2.py3-none-any.whl
Collecting docopt>=0.6.2 (from pykwalify->west)
Installing collected packages: six, configobj, PyYAML, colorama, python-dateutil, docopt, pykwalify, west
Successfully installed PyYAML-5.1 colorama-0.4.1 configobj-5.0.6 docopt-0.6.2 pykwalify-1.7.0 python-dateutil-2.8.0 six-1.12.0 west-0.5.8
You are using pip version 8.1.1, however version 19.1.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
$ west --version
No command 'west' found, did you mean:
 Command 'test' from package 'coreutils' (main)
west: command not found
Regards,
Kay Li

1581 - 1600 of 3076