Navigation

    • Register
    • Login
    • Search
    • OpenHardware.io
    • Categories
    • Recent
    • Tags
    • Popular
    1. Home
    2. idanronen
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    idanronen

    @idanronen

    3
    Reputation
    20
    Posts
    62
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    idanronen Follow

    Best posts made by idanronen

    • RE: GUIDE - NRF5 / NRF51 / NRF52 for beginners

      @Nca78 I feared that might be the case. my task for today was to dig up my st-link and try that, though I hoped I might have done something wrong and the cp2102 can be used to program and not just debug.
      That module is pretty cheap and from what I see with the naked eye, you can disconnect the cp2102 with the jumpers so the power consumption might actually be good enough to use as-is.
      I'll report back to let you know once I've succeeded

      posted in Development
      idanronen
      idanronen
    • RE: 💬 MySensors Battery Relay

      Thanks for sharing. How did you get low current while still checking messages frequently enough? Or do you only check for messages every hour or so?

      posted in OpenHardware.io
      idanronen
      idanronen
    • RE: Wireless remote door lock - HW choices

      @nagelc From what i've read on the forums, it seems pretty clear that if a pro mini was my choice i should go for the 3.3v variant, as the power draw is lower, its just that i then came up on the STM8/32 options and got thrown off. since i can enable the boost converter to 5V for the motor just when i need the motor, i think that offsets the benefits of using just 1 regulator to 5V for both the pro mini (5v variant) and the motor.
      What im trying to do is mainly get it to work with the lowest possible current draw and most efficient power source so i dont have to replace/charge it every month. for example lithium is more energy dense than alkaline, but if the power conversion takes a lot more that kinda negates the benefits.

      posted in Hardware
      idanronen
      idanronen

    Latest posts made by idanronen

    • RE: GUIDE - NRF5 / NRF51 / NRF52 for beginners

      @BearWithBeard said in GUIDE - NRF5 / NRF51 / NRF52 for beginners:

      I just got my first NRF5 running. I'll note how I got it working in case any of you guys still have troubles:

      Setup

      • OS: Windows 10
      • Programmer: STM32 Blue Pill with the Black Magic Probe firmware
      • NRF5: EByte E73-TBB dev board with a E73-2G4M0S1B (NRF52832)
      • Environment: PlatformIO

      Instructions

      Load the Black Magic Probe firmware with stlink as the probe host onto Blue Pill. You can follow this guide.

      Connect your new BMP to the NRF52 module:

      BMP NRF52 Serial Port
      3V3 3V3
      GND GND
      A5 SWDCLK GDB Server
      B14 SWDIO GBD Server
      A2 TX UART
      A3 RX UART

      Note: A2 and A3 are not required for programming. This is how you'd wire up the BMP for "classic" serial debugging. You can use the BMP both for programming and serial communication - no need for a second FTDI module.

      Using the GNU Arm Embedded Toolchain, run arm-none-eabi-gdb in a console and enter the following commands to unlock the NRF52:

      target extended-remote BMP_GDB_SERVER_PORT
      mon swdp_scan
      attach N // N = number of "Nordic nRF52 Access Port" if there are several
      mon erase_mass
      detach
      

      From the two serial ports the BMP provides, you want to use the GDB Server for BMP_GDB_SERVER_PORT above. If Windows only provides generic names for both ("USB Serial Device" or something), the one with the lower number should (usually) be the right choice. If not, try the other one.

      Windows users also must prefix the port with \\.\ if the number is double-digit, e.g. \\.\COM13.

      Now you can start uploading sketches the usual way. Here's my minimal PlatformIO config:

      [env:nrf52_dk]
      platform = nordicnrf52
      board = nrf52_dk
      board_build.variant = generic
      framework = arduino
      upload_protocol = blackmagic
      lib_deps = 
      	548 ; MySensors
      

      And a minimal test sketch for MySensors:

      #include <Arduino.h>
      
      #define LED 17
      
      #define MY_RADIO_RF24
      #define MY_RADIO_NRF5_ESB
      #define MY_NODE_ID 182
      
      #define SKETCH_NAME "NRF52 Test"
      #define SKETCH_VERSION "0.1"
      
      #include <MySensors.h>
      
      #define CHILD_ID 1
      MyMessage msg(CHILD_ID, V_VAR1);
      
      void presentation()
      {
        sendSketchInfo(SKETCH_NAME, SKETCH_VERSION);
        present(CHILD_ID, S_CUSTOM);
      }
      
      void setup()
      {
        pinMode(LED, OUTPUT);
      }
      
      void loop()
      {
        static uint8_t num;
        send(msg.set(num));
        ++num;
        
        digitalWrite(LED, HIGH);
        wait(5000);
        digitalWrite(LED, LOW);
        wait(5000);
      }
      

      Works like a charm so far! Now, if you please excuse me, I have a whole new microprocessor family to explore. Fun times!

      For the life of me i cant figure out if im making the BlackMagic properly. I'm moving the boot0 jumper to 1, flashing the 8kb maple (usb flash) DFU file using the st-link application on windows.
      I move the jumper back to 0, and connect using the micro usb, and i can flash code normally using arudino IDE using the STM32duino bootloader (and if i do so, i see the device communication on a new COM port).
      From there i cant get anything from these guides to work. the windows STM "flash demonstrator" app doesnt recognize the device, and i dont have a linux machine available at the moment for the dfu-util (and Ubuntu shell on windows wont recognize the usb device). When i try to flash the blackmagic.bin starting at 0x08002000 using the ST-link software it shows it succeeded, but when i return the jumper to 0 and reset the device, this is what i get:
      3fca00ad-a84e-477a-aaed-c70d4553adc8-image.png
      The 2 new COM ports appear (COM12,COM13), but i cant seem to flash anything successfully.
      I've installed the GNU arm toolchain for windows and tried "target extended-remote \.\COM13" (12 just gets stuck on nothing), and i get:
      f2dd9bb6-d333-41a8-b883-b3ba4a97d25f-image.png

      posted in Development
      idanronen
      idanronen
    • RE: GUIDE - NRF5 / NRF51 / NRF52 for beginners

      Im not sure my flashing with the blackmagic even does anything. The console is unclear:

      Sketch uses 3556 bytes (0%) of program storage space. Maximum is 409600 bytes.
      Remote debugging using \\.\COM11
      Target voltage: ABSENT!
      Available Targets:
      No. Att Driver
       1      Nordic nRF52 M3/M4
       2      Nordic nRF52 Access Port 
      Attaching to Remote target
      0xfffffffe in ?? ()
      Reading symbols from nrf1.ino.elf...done.
      Loading section .text, size 0xde4 lma 0x1c000
      Loading section .ARM.exidx, size 0x8 lma 0x1cde4
      Loading section .data, size 0x78 lma 0x1cdec
      Start address 0x1c578, load size 3684
      Transfer rate: 33 KB/sec, 614 bytes/write.
      Temporary breakpoint 1 at 0x1cb8c: file C:\Users\....\AppData\Local\Arduino15\packages\sandeepmistry\hardware\nRF5\0.6.0\cores\nRF5\main.cpp, line 28.
      Starting program: C:\Users\....\AppData\Local\Temp\arduino_build_366086\nrf1.ino.elf 
      Note: automatically using hardware breakpoints for read-only addresses.
      
      Program received signal SIGSEGV, Segmentation fault.
      0x00000000 in ?? ()
      
      Program complete!
      

      and i dont see any serial debug information

      posted in Development
      idanronen
      idanronen
    • RE: GUIDE - NRF5 / NRF51 / NRF52 for beginners

      @ncollins I've been working on turning an stm32f030f4p6 into a blackmagic probe for a few days now. Hit a wall when the compiled firmware came out to 83kb which is over the 64kb on board. Found someone who shrunk it down so it'd fit, and someone claiming it has another 64kb which can be unlocked. I'm just looking for the patience to get back in there, as this whole thing has been a major ordeal

      posted in Development
      idanronen
      idanronen
    • RE: GUIDE - NRF5 / NRF51 / NRF52 for beginners

      @Nca78 no luck with the st-link v2, though i doubt it is related to the board, but rather my inability. i've tried every option in zadig, installed the st-link driver from their website, and nothing works.
      i get this in arduino ide:

      debug_level: 0
      0x4000
      adapter speed: 10000 kHz
      Error: init mode failed (unable to connect to the target)
      in procedure 'program' 
      in procedure 'init' called at file "embedded:startup.tcl", line 473
      in procedure 'ocd_bouncer'
      ** OpenOCD init failed **
      shutdown command invoked
      
      the selected serial port 
       does not exist or your board is not connected
      
      posted in Development
      idanronen
      idanronen
    • RE: GUIDE - NRF5 / NRF51 / NRF52 for beginners

      @Nca78 I feared that might be the case. my task for today was to dig up my st-link and try that, though I hoped I might have done something wrong and the cp2102 can be used to program and not just debug.
      That module is pretty cheap and from what I see with the naked eye, you can disconnect the cp2102 with the jumpers so the power consumption might actually be good enough to use as-is.
      I'll report back to let you know once I've succeeded

      posted in Development
      idanronen
      idanronen
    • RE: GUIDE - NRF5 / NRF51 / NRF52 for beginners

      Does anyone know what settings I need to use for this development board with arduino ide?
      Ebyte E104-BT5032A-TB
      https://a.aliexpress.com/_dT5dMb8

      It has a cp2102 on board which I have the driver for. I've installed the arduino ide nrf52 board, but I can't find a programmer, board, or any other settings which will let me flash it without a Java exception or a timeout. Maybe I need to set the jumpers differently but there's no documentation on that.
      OTA works fine though.

      posted in Development
      idanronen
      idanronen
    • RE: What did you build today (Pictures) ?

      @NeverDie thanks for clarifying!
      So for example in the mini breakout board (https://www.openhardware.io/view/471/Ebyte-nRF52832-Small-Breakout-Board) I could just align the 6 pads and use a standard 6 pin pogo programmer right?

      posted in General Discussion
      idanronen
      idanronen
    • RE: 💬 MySensors Battery Relay

      Thanks for sharing. How did you get low current while still checking messages frequently enough? Or do you only check for messages every hour or so?

      posted in OpenHardware.io
      idanronen
      idanronen
    • RE: What did you build today (Pictures) ?

      @NeverDie sorry if it's a bit off topic, but I see that 10 pin ARM box connector you use in several of your designs, and I was wondering if it offers anything extra in addition to the regular 6 pin programming pins. I'm asking specifically because I want to try some of your nrf52832 designs, but would like to avoid spending extra money on special connectors and cables. Thanks!

      posted in General Discussion
      idanronen
      idanronen