gptp example project
KAY LI NG <kayli0109@...>
Hi, I would like to ask if this gptp example project is possible to run on windows? I run this code.
# On Windows
cd %ZEPHYR_BASE%\samples\net\gptp
mkdir build & cd build
cmake -GNinja -DBOARD=sam_e70_xplained -DCONF_FILE=prj_base.conf ..
but this error occur. Zephyr version: 1.14.0 Whats the problem with this? i didnt modify anything from the example code. Regards, Kay Li
|
|
Re: mcuboot + dfu-util on nRF52840 not able to update firmware
Adam Mooers
I was able to get DFU working by itself. See the prj.conf and flashing method of this thread (but remove the bluetooth flags because BT HCI will cause problems with DFU in Zephyr 1.14):
https://lists.zephyrproject.org/g/users/topic/31634625 Basically, you need to enable the DFU driver, the flash driver, and the DFU manager. Also be sure to follow this read me for setting up MCUboot: https://github.com/JuulLabs-OSS/mcuboot/blob/master/ext/nrf/README.md I was unable to get MCUboot 1.3 working on the nRF52840, but master (2dc9f8f) worked.
|
|
Adam Mooers
I created a Github issue for the above incompatibility:
https://github.com/ It looks like DFU cannot be used at the same time as Bluetooth HCI in v1.14 or master but there is active development on composite USB.
|
|
Closing an accepting BSD socket from a different thread
Stephan Gatzka
Hello!
I've a thread blocking on an zsock_accept(). After a certain time another thread decides that this socket is no longer required and calls zsock_close() on that socket. Now the thread blocking on zsock_accept() crashes horribly deep down in zephyrs socket implementation. My question is how I can safely "unblock" the thread waiting in the zsock_accept()? Thanks, Stephan
|
|
Re: Zephyr compatible motes for 802.15.4
Nikos Karamolegkos
Thank you Andrei,
toggle quoted messageShow quoted text
1) Therefore these module can support 802.15.4 in 2.4 GHz band only. Correct? 2) Can I use them to run zigbee or 802.15.4g (SUN) in 2.4GHz with zephyr. Does zephyr supports SUN and zigbee? 3) Is there any special code and device for the 802.15.4 GW? Greetings,
On 5/14/19 4:10 PM, Andrei Emeltchenko wrote:
Hi, --
Nikos Karamolegkos R & D Engineer at ICS-FORTH Telecommunications and Networks Lab (TNL)
|
|
Re: Does zephyr supports DTLS and 6lowpan
Hello Nikos, On Wed, May 22, 2019, 6:11 AM Nikos Karamolegkos <nkaram@...> wrote:
That documentation is out of date. The LwM2M subsystem supports both DTLS and Bootstrap mode. I opened a new issue to correct that bit of documentation:
Yes, as a matter of fact the following sample documentation for the LwM2M client discuss the DTLS and BLE/6lowpan support: This is the protocol / subsystem documentation for LwM2M which can also be helpful: - Mike
|
|
Does zephyr supports DTLS and 6lowpan
Nikos Karamolegkos
Hello all, As I can see here, zephyr supports DTLS via mbed DTLS. However, according this "LWM2M OMA Lightweight Machine-to-Machine Protocol (V1.0 Feb 2017) is supported via the “Register Device” API (Register, De-Register and Update) and has template implementations for Security, Server, Device Management and Firmware objects. DTLS and Bootstrap support are currently not supported. LwM2M client implements the library as an example." what is the truth? Also, does zephyr supports 6lowpan? I have not seen anything Thank you, -- Nikos Karamolegkos R & D Engineer at ICS-FORTH Telecommunications and Networks Lab (TNL)
|
|
Re: NVS corrupt after applying sys_reboot() directly after nvs_write()
#nrf52840
Phil Hipp
Alright, I fixed that issue by splitting the predefined flash storage partition (storage_partition) in the board's dts in half. Leaving the name of the first one as is and naming the second one storage_partition_nvs. I now have following layout: - storage_partiton - size 0x2000 - used by FCB. Hope this will work.
|
|
Re: NVS corrupt after applying sys_reboot() directly after nvs_write()
#nrf52840
Phil Hipp
I found out that NVS seems to interfere with the settings fcb. I'm using that for the bt settings (pairing keys, etc.). Is there any way to use the settings fcb and NVS concurrently?
|
|
NVS corrupt after applying sys_reboot() directly after nvs_write()
#nrf52840
Phil Hipp
Hi, Can anybody tell me, what I'm doing wrong here?
Best
|
|
Adam Mooers
Whenever the USB DFU driver and the USB BLE HCI driver are both enabled, neither works as expected . BLE HCI over USB works when the DFU USB driver is disabled via prj.conf (CONFIG_USB_DFU_CLASS=n). DFU works when the bluetooth kernel module is removed in Linux (via modprobe btusb).
Are there any known bugs/limitations with the USB stack which would prevent DFU and BLE from operating simultaneously? Alternatively, is it possible that I am missing some settings in dfu-util? Environment:Ubuntu 16.04 (host)nRF52840 PCA10056 hw v. 1.1.0 Zephyr 1.14 Zephyr SDK 0.10.0 dfu-util 0.9 (modified for increased timeout during flash erase) prj.conf:CONFIG_STDOUT_CONSOLE=yCONFIG_GPIO=y CONFIG_SERIAL=y CONFIG_UART_INTERRUPT_DRIVEN=y CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC=y CONFIG_CLOCK_CONTROL_NRF_K32SRC_20PPM=y CONFIG_BT=y CONFIG_BT_HCI_RAW=y CONFIG_BT_CTLR_TX_BUFFER_SIZE=251 CONFIG_BT_RX_BUF_LEN=258 CONFIG_BT_CTLR_DATA_LENGTH_MAX=251 CONFIG_USB=y CONFIG_USB_DEVICE_STACK=y # Bluetooth works when the below setting is set to no CONFIG_USB_DFU_CLASS=y CONFIG_USB_DEVICE_BLUETOOTH=y CONFIG_FLASH=y CONFIG_SOC_FLASH_NRF=y CONFIG_BOOTLOADER_MCUBOOT=y CONFIG_IMG_MANAGER=y CONFIG_MCUBOOT_IMG_MANAGER=y CONFIG_USB_DEVICE_VID=0x167f CONFIG_USB_DEVICE_PID=0x3001 CONFIG_USB_DEVICE_MANUFACTURER="Company" CONFIG_USB_DEVICE_PRODUCT="Product" CONFIG_USB_DEVICE_SN="123abc" Flashing method:source zephyr/zephyr/zephyr-env.shmkdir -p build/nrf52840_pca10056 && cd build/nrf52840_pca10056 cmake -GNinja -DBOARD=nrf52840_pca10056 -Dapp_VERSION_BUILD=9999 ../.. ninja ~/repos/mcuboot/scripts/imgtool.py sign --key ~/repos/mcuboot/root-ec-p256.pem --header-size 0x200 --align 8 --version 1.2 -S 0x69000 ./zephyr/zephyr.hex signed-hello.hex nrfjprog --family NRF52 --program signed-hello.hex --sectorerase ~/repos/mcuboot/scripts/imgtool.py sign --key ~/repos/mcuboot/root-ec-p256.pem --header-size 0x200 --align 8 --version 1.2 -S 0x69000 ./zephyr/zephyr.bin signed-hello.bin sudo dfu-util --alt 1 --download signed-hello.bin Output of failed run of dfu-util:dfu-util 0.9Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc. Copyright 2010-2019 Tormod Volden and Stefan Schmidt This program is Free Software and has ABSOLUTELY NO WARRANTY Please report bugs to http://sourceforge.net/p/dfu-util/tickets/ dfu-util: Invalid DFU suffix signature dfu-util: A valid DFU suffix will be required in a future dfu-util release!!! Opening DFU capable USB device... ID 167f:3001 Run-time device DFU version 0110 Claiming USB DFU Runtime Interface... dfu-util: Cannot claim interface 1: LIBUSB_ERROR_BUSY Output of successful run of dfu-util:dfu-util 0.9Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc. Copyright 2010-2019 Tormod Volden and Stefan Schmidt This program is Free Software and has ABSOLUTELY NO WARRANTY Please report bugs to http://sourceforge.net/p/dfu-util/tickets/ dfu-util: Invalid DFU suffix signature dfu-util: A valid DFU suffix will be required in a future dfu-util release!!! Opening DFU capable USB device... ID 167f:3001 Run-time device DFU version 0110 Claiming USB DFU Interface... Setting Alternate Setting #1 ... Determining device status: state = dfuIDLE, status = 0 dfuIDLE, continuing DFU mode device DFU version 0110 Device returned transfer size 64 Copying data from PC to DFU device Download [=========================] 100% 85970 bytes Download done. state(2) = dfuIDLE, status(0) = No error condition is present Done!
|
|
Re: Zephyr compatible motes for 802.15.4
Andrei
Hi,
On Tue, May 14, 2019 at 03:49:49PM +0300, Nikos Karamolegkos wrote: Hello all,reel_board, frdm_k64f + CR20A, quark_se_devboard, the easiest is reel_board: https://www.zephyrproject.org/introducing-the-zephyr-reel-board/ Best regards Andrei Emeltchenko
|
|
Zephyr compatible motes for 802.15.4
Nikos Karamolegkos
Hello all,
I have seen that Zephyr supports a lot of MCU boards. I was wondering if there is any mote supported by Zephyr that includes the MCU board and the RF module of the 802.15.4. For example in Contiki there is the Zolertia RE-Mote. I have not find anything. Thank you, -- Nikos Karamolegkos R & D Engineer at ICS-FORTH Telecommunications and Networks Lab (TNL)
|
|
giriprasad@...
Hi,
I am trying to interface ENC28J60 module to PCA10056(NRF52840). Below are my pin configurations: ================= =================================== NRF52840 PCA10056 ENC28J60 (pin numbers on the board) ================= =================================== P0_19 SCK P0_21 SO P0_20 SI P0_03 CS P0_04 INT VDD VCC GND GND ================= =================================== Also, I had cut and connected proper SBs on board to connect ENC28J60 board. After done with the connections part, configurations are done by using menuconfig in dhcpclient application and flashed the software. As a result, it is observed in the console that an IP Address has been generated for the board. But, when tried to ping to that IP, timeout was occurring. Please help us to solve this issue. Thanks & Regards, Giri Prasad N.
|
|
Zephyr and LoRaWAN stack
Nikos Karamolegkos <nkaram@...>
Hello everyone,
As I can see in the documentation of the zephyr, zephyr supports Dragino LSN50 LoRA Sensor Node. I would like to ask if the code of the LoRaWAN stack is available in the github for this node or should be developed? Thank you, Nikos -- Nikos Karamolegkos R & D Engineer at ICS-FORTH Telecommunications and Networks Lab (TNL)
|
|
Re: Dragino LSN50 and STLink
Erwan Gouriou
Hi Gustavo, Sorry, I'm not familiar with Dragino, nor J-Link, maybe Endre would know better, as he did the board port. Erwan
On Wed, 8 May 2019 at 19:35, Gustavo F N <gustavofn@...> wrote:
|
|
Re: Dragino LSN50 and STLink
Awesome, thanks!
On Wed, May 8, 2019 at 6:55 AM Kumar Gala <kumar.gala@...> wrote: Adding 2 people who might be able to help.
|
|
Re: mcuboot + dfu-util on nRF52840 not able to update firmware
Adam Mooers
I am able to replicate this problem with Zephyr v1.14.0 and nrf52840 PCA10056 hardware rev 1.1.0. The same "Error during download get_status" error occurred while flashing to slot 1.
Host Configuration:• Ubuntu 16.04 fully updatedBootloader Configuration:Environment:• MCUboot 1.2 compiled with Zephyr SDK 0.9.5 and Zephyr OS v1.13.00 Build Steps: • cd boot/zephyr • mkdir build && cd build • cmake -GNinja -DBOARD=nrf52840_pca10056 .. • ninja • ninja flash These instructions mirror https://mcuboot.com/mcuboot/readme-zephyr.html. The source was not modified. Slot 0 Configuration:Environment:- Zephyr SDK 0.10.0 and Zephyr OS v1.14.00 prj.conf: CONFIG_LOG=y CONFIG_LOG_OVERRIDE_LEVEL=4 CONFIG_STDOUT_CONSOLE=y CONFIG_USB=y CONFIG_USB_DEVICE_STACK=y CONFIG_USB_DFU_CLASS=y CONFIG_BOOTLOADER_MCUBOOT=y CONFIG_IMG_MANAGER=y CONFIG_MCUBOOT_IMG_MANAGER=y CONFIG_USB_DEVICE_VID=0x167f CONFIG_USB_DEVICE_PID=0x3001 CONFIG_USB_DEVICE_MANUFACTURER="Company" CONFIG_USB_DEVICE_PRODUCT="Product" CONFIG_USB_DEVICE_SN="123abc" source: #include <zephyr.h> #include <misc/printk.h> void main(void) { printk("Hello World!\n"); } Build steps • source zephyr/zephyr/zephyr-env.sh • mkdir -p build/nrf52840_pca10056 && cd build/nrf52840_pca10056 • cmake -GNinja -DBOARD=nrf52840_pca10056 -Dapp_VERSION_BUILD=9999 ../.. • ninja • ~/repos/mcuboot/scripts/imgtool.py sign --key ~/repos/mcuboot/root-rsa-2048.pem --header-size 0x200 --align 8 --version 1.2 -S 0x69000 ./zephyr/zephyr.hex signed-hello.hex • nrfjprog --family NRF52 --program signed-hello.hex --sectorerase Procedure for uploading new firmware:• The nrf USB cable was connected first followed by the segger USB cable. A reset via the button on the board directly preceded the logs below. The full log is attached.***** Booting Zephyr OS zephyr-v1.13.0 ***** ***** Booting Zephyr OS zephyr-v1.14.0 ***** Hello World! [00:00:00.005,035] <dbg> usb_descriptor.ascii7_to_utf16le: char g : 67, idx 3 -> 7 --- 66 messages dropped --- [00:00:00.005,096] <dbg> usb_descriptor.ascii7_to_utf16le: char i : 69, idx 0 -> 1 [00:00:00.005,126] <dbg> usb_descriptor.ascii7_to_utf16le: idx_max 13, ascii_idx_max 6, buf 2000362f [00:00:00.005,157] <dbg> usb_descriptor.ascii7_to_utf16le: char 0 : 30, idx 6 -> 13 [00:00:00.005,157] <dbg> usb_descriptor.ascii7_to_utf16le: char - : 2d, idx 5 -> 11 [00:00:00.005,187] <dbg> usb_descriptor.ascii7_to_utf16le: char e : 65, idx 4 -> 9 [00:00:00.005,218] <dbg> usb_descriptor.ascii7_to_utf16le: char g : 67, idx 3 -> 7 [00:00:00.005,218] <dbg> usb_descriptor.ascii7_to_utf16le: char a : 61, idx 2 -> 5 [00:00:00.005,249] <dbg> usb_descriptor.ascii7_to_utf16le: char m : 6d, idx 1 -> 3 [00:00:00.005,279] <dbg> usb_descriptor.ascii7_to_utf16le: char i : 69, idx 0 -> 1 [00:00:00.005,493] <dbg> usb_nrfx.usbd_work_process_pwr_events: USB detected ... • ~/repos/mcuboot/scripts/imgtool.py sign --key ~/repos/mcuboot/root-rsa-2048.pem --header-size 0x200 --align 8 --version 1.2 -S 0x69000 ./zephyr/zephyr.bin signed-hello.bin • sudo dfu-util --alt 1 --download signed-hello.bin Result:• dfu-util detects the monitor and attempts to download firmware but fails after a timeout.dfu-util 0.8 Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc. Copyright 2010-2014 Tormod Volden and Stefan Schmidt This program is Free Software and has ABSOLUTELY NO WARRANTY Please report bugs to dfu-util@... dfu-util: Invalid DFU suffix signature dfu-util: A valid DFU suffix will be required in a future dfu-util release!!! Opening DFU capable USB device... ID 167f:3001 Run-time device DFU version 0110 Claiming USB DFU Runtime Interface... Determining device status: state = appIDLE, status = 0 Device really in Runtime Mode, send DFU detach request... Resetting USB... Opening DFU USB Device... Claiming USB DFU Interface... Setting Alternate Setting #1 ... Determining device status: state = dfuIDLE, status = 0 dfuIDLE, continuing DFU mode device DFU version 0110 Device returned transfer size 64 Copying data from PC to DFU device Download [ ] 0% 0 bytesdfu-util: Error during download get_status • The nrf52840 shows a hardware exception (the full log is attached): [00:07:45.671,081] <dbg> usb_nrfx.usb_dc_ep_write: ep_write: ep 128, len 0 [00:07:45.671,508] <dbg> usb_nrfx.usbd_work_process_setup: SETUP: r:3 rt:161 v:0 i:0 l:6 [00:07:45.671,508] <dbg> usb_device.usb_handle_control_transfer: ep 0, status 0 [00:07:45.671,508] <dbg> usb_nrfx.usb_dc_ep_read: ep_read: ep 0, maxlen 8 [00:07:45.671,539] <dbg> usb_device.usb_handle_request: ** 1 ** [00:07:45.671,569] <dbg> usb_dfu.dfu_class_handle_req: DFU_GETSTATUS: status 0, state 4 [00:07:45.671,569] <dbg> usb_nrfx.usb_dc_ep_write: ep_write: ep 128, len 6 [00:07:45.671,661] <dbg> usb_nrfx.usbd_event_transfer_ctrl: ctrl write complete ***** BUS FAULT ***** Instruction bus error ***** Hardware exception ***** Current thread ID = 0x20001824 Faulting instruction address = 0x9f38018 Fatal fault in thread 0x20001824! Aborting. 07:45.670,654] <dbg> usb_nrfx.usbd_work_process_setup: SETUP: r:1 rt:33 v:0 i:0 l:64 • dmesg shows nothing related to the crash. It does detect the USB device initial connect: [260966.516923] usb 1-2: new full-speed USB device number 55 using xhci_hcd [260966.669260] usb 1-2: New USB device found, idVendor=167f, idProduct=3001 [260966.669265] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [260966.669269] usb 1-2: Product: Product [260966.669273] usb 1-2: Manufacturer: Company [260966.669276] usb 1-2: SerialNumber: 123abc Attempted Mitigations:• Disabling logging in Zephyr did not affect the crash.• Attempting to re-run dfu-util did not succeed: dfu-util 0.8 Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc. Copyright 2010-2014 Tormod Volden and Stefan Schmidt This program is Free Software and has ABSOLUTELY NO WARRANTY Please report bugs to dfu-util@... dfu-util: Invalid DFU suffix signature dfu-util: A valid DFU suffix will be required in a future dfu-util release!!! Opening DFU capable USB device... ID 167f:3001 Run-time device DFU version 0110 Claiming USB DFU Interface... Setting Alternate Setting #1 ... dfu-util: Cannot set alternate interface Is DFU supported on the nrf52840 with Zephyr 1.14? Any supporting documentation would be appreciated.
|
|
Re: Dragino LSN50 and STLink
Kumar Gala
Adding 2 people who might be able to help.
toggle quoted messageShow quoted text
- k
On May 7, 2019, at 1:29 PM, Gustavo FN <gustavofn@...> wrote:
|
|
Re: Concurrent TLS and Non-TLS TCP Communication
Lubos, Robert
Hi Erin,
It is be possible to have both, TCP and TLS sockets when CONFIG_NET_SOCKETS_SOCKOPT_TLS option is enabled. Just to be sure, I’ve verified this functionality with current master and echo_server sample; communication over a regular TCP socket even with overlay-tls.conf enabled works fine, same with UDP. Perhaps you could provide some more details or share some code so that we could see what’s happening in your project?
Regards, Robert
From: users@... [mailto:users@...]
On Behalf Of Erin Beckwith via Lists.Zephyrproject.Org
Hello,
|
|