Giter VIP home page Giter VIP logo

rakwireless-arduino-bsp-index's People

Contributors

beegee-tokyo avatar eddieho1124 avatar ianlo-rak avatar nerodu avatar ptrose avatar

Stargazers

 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  avatar  avatar

rakwireless-arduino-bsp-index's Issues

Naming issue of the downloaded json file

The index file was saved with different name than the urls
I need to do:
mv ~/Library/Arduino15/package_package_rakwireless.json ~/Library/Arduino15/package_rakwireless.com_rui_index.json

Upload fails

We've had this problem before. It was fixed, but seems like it's back again after updating the BSP to the one in the repo.

Sketch uses 123776 bytes (15%) of program storage space. Maximum is 815104 bytes.
Global variables use 15356 bytes (6%) of dynamic memory, leaving 222212 bytes for local variables. Maximum is 237568 bytes.
Upgrading target on /dev/ttyACM0 with DFU package /tmp/arduino_build_754762/RAK4631-DeepSleep-LoRaWan.ino.zip. Flow control is disabled, Single bank, Touch disabled
###############################Timed out waiting for acknowledgement from device.

Failed to upgrade target. Error is: No data received on serial port. Not able to proceed.
Traceback (most recent call last):
  File "/home/jpmeijers/.local/lib/python3.8/site-packages/nordicsemi/__main__.py", line 294, in serial
    dfu.dfu_send_images()
  File "/home/jpmeijers/.local/lib/python3.8/site-packages/nordicsemi/dfu/dfu.py", line 235, in dfu_send_images
    self._dfu_send_image(HexType.APPLICATION, self.manifest.application)
  File "/home/jpmeijers/.local/lib/python3.8/site-packages/nordicsemi/dfu/dfu.py", line 206, in _dfu_send_image
    self.dfu_transport.send_firmware(firmware)
  File "/home/jpmeijers/.local/lib/python3.8/site-packages/nordicsemi/dfu/dfu_transport_serial.py", line 213, in send_firmware
    self.send_packet(pkt)
  File "/home/jpmeijers/.local/lib/python3.8/site-packages/nordicsemi/dfu/dfu_transport_serial.py", line 243, in send_packet
    ack = self.get_ack_nr()
  File "/home/jpmeijers/.local/lib/python3.8/site-packages/nordicsemi/dfu/dfu_transport_serial.py", line 282, in get_ack_nr
    raise NordicSemiException("No data received on serial port. Not able to proceed.")
nordicsemi.exceptions.NordicSemiException: No data received on serial port. Not able to proceed.

Possible causes:
- Selected Bootloader version does not match the one on Bluefruit device.
    Please upgrade the Bootloader or select correct version in Tools->Bootloader.
- Baud rate must be 115200, Flow control must be off.
- Target is not in DFU mode. Ground DFU pin and RESET and release both to enter DFU mode.

Incorrect file size for `buildtime` tool

When installing the RUI platform via arduino-cli I get the following error:

arduino-cli core install $BOARD_CORE
Downloading packages...
rak_rui:arm-none-eabi-gcc@9-2019q4 already downloaded
rak_rui:[email protected] already downloaded
rak_rui:[email protected] already downloaded
rak_rui:[email protected] already downloaded
rak_rui:[email protected] downloaded                                                                                                                    
rak_rui:[email protected] already downloaded
Installing rak_rui:arm-none-eabi-gcc@9-2019q4...
rak_rui:arm-none-eabi-gcc@9-2019q4 installed
Installing rak_rui:[email protected]...
rak_rui:[email protected] installed
Installing rak_rui:[email protected]...
rak_rui:[email protected] installed
Installing rak_rui:[email protected]...
rak_rui:[email protected] installed
Installing rak_rui:[email protected]...
Error during install: installing tool rak_rui:[email protected]: testing local archive integrity: testing archive size: fetched archive size differs from size specified in index

When I manually downloaded the tool from the URL1 in the library manifest2 the MD5 checksum matched but the size did not (410 bytes vs. 446). I also checked and both the MacOS and Win32 downloads of the buildtime tool appear to have incorrect file sizes as well.

I'm not sure what the upstream packaging process looks like for these tools, and whether this JSON listing is updated automatically or by hand, but at minimum it seems like the file sizes listed in the JSON need to be updated.

In the meantime I can manually patch the JSON locally but obviously that will fall behind as any other changes are made upstream.

Footnotes

  1. https://downloads.rakwireless.com/RUI/RUI3/Tools/buildtime-linux.tar.gz

  2. https://github.com/RAKWireless/RAKwireless-Arduino-BSP-Index/blob/main/package_rakwireless.com_rui_index.json#L457

RAK11720 compile errors with AS923 disabled

Hello,

First of all, thank you for implement timereq commands and callbacks. I've been testing 4.1.1_279 from staging and I have a little hiccup when disabling all LoRaWAN regions except EU868. Board RAK11720
The compiler throws the following error:

c:/users/javie/appdata/local/arduino15/packages/rak_rui/tools/arm-none-eabi-gcc/9-2019q4/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: C:\Projects\GEM RUI3\GEM-V2-Firmware\build/core\core.a(service_lora.c.o): in function `service_lora_init':
C:\Users\javie\AppData\Local\Arduino15\packages\rak_rui\hardware\apollo3\4.1.1\cores\apollo3\component\service\lora/service_lora.c:754: undefined reference to `RegionAS923SubBandSet'
c:/users/javie/appdata/local/arduino15/packages/rak_rui/tools/arm-none-eabi-gcc/9-2019q4/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\javie\AppData\Local\Arduino15\packages\rak_rui\hardware\apollo3\4.1.1\cores\apollo3\component\service\lora/service_lora.c:769: undefined reference to `RegionAS923SubBandSet'
c:/users/javie/appdata/local/arduino15/packages/rak_rui/tools/arm-none-eabi-gcc/9-2019q4/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: C:\Projects\GEM RUI3\GEM-V2-Firmware\build/core\core.a(service_lora.c.o): in function `service_lora_set_band':
C:\Users\javie\AppData\Local\Arduino15\packages\rak_rui\hardware\apollo3\4.1.1\cores\apollo3\component\service\lora/service_lora.c:1446: undefined reference to `RegionAS923SubBandSet'
c:/users/javie/appdata/local/arduino15/packages/rak_rui/tools/arm-none-eabi-gcc/9-2019q4/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\javie\AppData\Local\Arduino15\packages\rak_rui\hardware\apollo3\4.1.1\cores\apollo3\component\service\lora/service_lora.c:1458: undefined reference to `RegionAS923SubBandSet'

I'm bypassing it by temporally enabling Region AS923.

Regards

RAK4631-LoRaWAN-DeepSleep does not compile

sketch/lora_handler.cpp: In function 'int8_t initLoRaWan()':
lora_handler.cpp:137:86: error: too many arguments to function 'lmh_error_status lmh_init(lmh_callback_t*, lmh_param_t, bool, eDeviceClass)'
  137 |  if (lmh_init(&lora_callbacks, lora_param_init, doOTAA, gCurrentClass, gCurrentRegion) != 0)
      |                                                                                      ^
In file included from /home/jpmeijers/Arduino/libraries/SX126x-Arduino/src/LoRaWan-Arduino.h:17,
                 from /home/jpmeijers/Arduino/libraries/SX126x-Arduino/src/LoRaWan-RAK4630.h:4,
                 from sketch/main.h:14,
                 from sketch/lora_handler.cpp:11:
/home/jpmeijers/Arduino/libraries/SX126x-Arduino/src/mac/LoRaMacHelper.h:146:19: note: declared here
  146 |  lmh_error_status lmh_init(lmh_callback_t *callbacks, lmh_param_t lora_param, bool otaa, eDeviceClass nodeClass = CLASS_A);
      |                   ^~~~~~~~
exit status 1
too many arguments to function 'lmh_error_status lmh_init(lmh_callback_t*, lmh_param_t, bool, eDeviceClass)'

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.