Code Monkey home page Code Monkey logo

openhaystack-zephyr's Introduction

openhaystack-zephyr's People

Contributors

koenvervloesem avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

openhaystack-zephyr's Issues

Problem

enough settings to use the crystal?

CONFIG_CLOCK_CONTROL_NRF_K32SRC_XTAL=y
CONFIG_CLOCK_CONTROL_NRF_K32SRC_50PPM=y

At the moment the consumption is too high 4.8mA = 4800ua
Should be around ~7.3ua

Deploying firmware onto nRF52840 dongle

Hey I really appreciate your work and it's working really well so far. I just have a brief question on deploying the device using OpenHaystack. I am using version 051 and have also tested on version 036 and I am unable to get the device to deploy on this software. In regards to hardcoding the base64 advertisement key, I have copied this directly from OpenHaystack and tried replacing the recommended line in the main.c file in the apps folder but this has not been effective at deploying the device. Could you please walk me through the process with more instruction on the other method to connect the base64 advertisement key from OpenHaystack and my device? Which .bin file is the openhaystack.sh file requesting as input to deploy the device? I have been able to successfully flash the firmware onto this nRF dongle with no issues whatsoever with your instruction.

Many thanks.

AttributeError in openhaystack-zephyr when using nrfutil for package generation

When attempting to generate a package using the nrfutil tool with the command nrfutil pkg generate, an AttributeError is raised within the openhaystack-zephyr project. This error occurs specifically when the tool attempts to iterate through the firmwares_data dictionary, leading to the error message "AttributeError: 'dict' object has no attribute 'iteritems'".

`openhaystack-zephyr % nrfutil pkg generate --hw-version 52 --sd-req=0x00
--application build/zephyr/zephyr.hex
--application-version 1 openhaystack.zip

|===============================================================|
|## ## ### ######## ## ## #### ## ## ###### |
|## ## ## ## ## ## ## ### ## ## ### ## ## ## |
|## ## ## ## ## ## ## #### ## ## #### ## ## |
|## ## ## ## ## ######## ## ## ## ## ## ## ## ## ####|
|## ## ## ######### ## ## ## #### ## ## #### ## ## |
|## ## ## ## ## ## ## ## ### ## ## ### ## ## |
| ### ### ## ## ## ## ## ## #### ## ## ###### |
|===============================================================|
|You are not providing a signature key, which means the DFU |
|files will not be signed, and are vulnerable to tampering. |
|This is only compatible with a signature-less bootloader and is|
|not suitable for production environments. |
|===============================================================|

Traceback (most recent call last):
File "/usr/local/bin/nrfutil", line 8, in
sys.exit(cli())
^^^^^
File "/usr/local/lib/python3.11/site-packages/click/core.py", line 829, in call
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/nordicsemi/main.py", line 867, in generate
package.generate_package(zipfile_path)
File "/usr/local/lib/python3.11/site-packages/nordicsemi/dfu/package.py", line 403, in generate_package
for key, firmware_data in self.firmwares_data.iteritems():
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'dict' object has no attribute 'iteritems'`

Cant build for BBC Micro:bit v2

Hi, Im trying to build the firmware for a BBC Micro:Bit V2 when I run this command:

west build -p auto -b bbc_microbit_v2 -s app

I get the following error

usage: west [-h] [-z ZEPHYR_BASE] [-v] [-V] ...
west: error: argument : invalid choice: 'build' (choose from 'init', 'update', 'list', 'manifest', 'diff', 'status', 'forall', 'help', 'config', 'topdir', 'selfupdate')

is this able to run on the nrf51822?

Hello there, I was checking your repo and noticed that you focused more on the nrf52? I was wondering if this can be targetted to the nrf51 as well

Error in Nordic Semiconductor DFU: No Trigger Interface Found and TypeError on Serial DFU Update

I'm working on MacOS 11 bigsur, and BBC microbit v2.2 (nfr52)
The specified serial port (/dev/tty.usbmodem14102) is correct and accessible.
python3.10
nrfutil 6.1.7

I encountered an issue while attempting to perform a Device Firmware Update (DFU) using the Nordic Semiconductor nRFutil tool. The update is being done over a USB serial connection using the following command:

nrfutil dfu usb-serial -pkg openhaystack.zip -p /dev/tty.usbmodem14102
However, during the update process, I received the following error messages:
`
openhaystack-zephyr % nrfutil dfu usb-serial -pkg openhaystack.zip -p /dev/tty.usbmodem14102
[------------------------------------] 0%2023-08-29 15:03:50,312 No trigger interface found for device with serial number: 990636020005282066217b1b4ded8f5e000000006e052820, Product ID: 0x204 and Vendor ID: 0xD28

Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.10/bin/nrfutil", line 8, in
sys.exit(cli())
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/click/core.py", line 1157, in call
return self.main(*args, **kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/nordicsemi/main.py", line 1032, in usb_serial
do_serial(package, port, connect_delay, flow_control, packet_receipt_notification, baud_rate, serial_number, False,
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/nordicsemi/main.py", line 988, in do_serial
dfu.dfu_send_images()
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/nordicsemi/dfu/dfu.py", line 127, in dfu_send_images
self._dfu_send_image(self.manifest.application)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/nordicsemi/dfu/dfu.py", line 88, in _dfu_send_image
self.dfu_transport.open()
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/nordicsemi/dfu/dfu_transport_serial.py", line 217, in open
self.__get_mtu()
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/nordicsemi/dfu/dfu_transport_serial.py", line 366, in __get_mtu
self.mtu = struct.unpack('<H', bytearray(response))[0]
TypeError: cannot convert 'NoneType' object to bytearray
`

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.