Skip to content
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. My Project
  3. nRF5 action!
  • Getting Started
  • Controller
  • Build
  • Hardware
  • Download/API
  • Forum
  • Store

nRF5 action!

Scheduled Pinned Locked Moved My Project
1.9k Posts 49 Posters 630.7k Views 44 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • alowhumA Offline
    alowhumA Offline
    alowhum
    Plugin Developer
    wrote on last edited by
    #1599

    @maciekczwa If you could share a guide to unlocking these devices, I would be very grateful. I'm have a bit of trouble still. I create an JLink device form an STM32. But even that gives the same general error on all my modules.

    nrfjprog --recover
    ERROR: JLinkARM DLL reported an error. Try again. If error condition
    ERROR: persists, run the same command again with argument --log, contact Nordic
    ERROR: Semiconductor and provide the generated log.log file to them.
    

    I tried lots of DLL versions, and a new version of nrfjprog.. no luck.

    nrfjprog --recover --log
    nrfjprog verion 9.7.0
    --------------------------------------------------------------------------------
    FUNCTION: open_dll.
    FUNCTION: open_dll.
    FUNCTION: enum_emu_snr.
    FUNCTION: enum_emu_snr.
    FUNCTION: enum_emu_snr.
    FUNCTION: enum_emu_snr.
    FUNCTION: connect_to_emu_with_snr.
    FUNCTION: connect_to_emu_with_snr.
    FUNCTION: connect_to_emu_without_snr.
    FUNCTION: enum_emu_snr.
    Device "NRF52832_XXAA" selected.
    FUNCTION: read_connected_emu_snr.
    FUNCTION: read_connected_emu_snr.
    FUNCTION: read_device_family.
    FUNCTION: read_device_family.
    JLinkARM.dll CORESIGHT_WriteAPDPReg returned error -1.
    JLinkARM.dll CORESIGHT_WriteAPDPReg returned error -102.
    FUNCTION: close_dll.
    FUNCTION: close_dll.
    
    1 Reply Last reply
    0
    • T Toyman

      @alowhum I intentionally asked you because I know the problem exists.
      You need to erase the chip via Jlink Commander. Neither nrfjprog nor anything alse will work (AFAIK)
      Actually, it was @NeverDie who found it in the beginning of his quest with nrf52. "The thing that started it all" (c)

      Mars WarriorM Offline
      Mars WarriorM Offline
      Mars Warrior
      wrote on last edited by
      #1600

      @alowhum, you seem to need Jlink Commander:

      @toyman said in nRF5 Bluetooth action!:

      @alowhum I intentionally asked you because I know the problem exists.
      You need to erase the chip via Jlink Commander. Neither nrfjprog nor anything alse will work (AFAIK)
      Actually, it was @NeverDie who found it in the beginning of his quest with nrf52. "The thing that started it all" (c)

      Furthermore, It would be nice to have a small step-by-step guide to unlock and then program the ebyte module.
      @Omemanti and @NeverDie are using these modules, so should be able to write something up that works for other ppl ;-)

      (My ebyte modules are still on their way)

      O NeverDieN 2 Replies Last reply
      1
      • Mars WarriorM Mars Warrior

        @alowhum, you seem to need Jlink Commander:

        @toyman said in nRF5 Bluetooth action!:

        @alowhum I intentionally asked you because I know the problem exists.
        You need to erase the chip via Jlink Commander. Neither nrfjprog nor anything alse will work (AFAIK)
        Actually, it was @NeverDie who found it in the beginning of his quest with nrf52. "The thing that started it all" (c)

        Furthermore, It would be nice to have a small step-by-step guide to unlock and then program the ebyte module.
        @Omemanti and @NeverDie are using these modules, so should be able to write something up that works for other ppl ;-)

        (My ebyte modules are still on their way)

        O Offline
        O Offline
        Omemanti
        wrote on last edited by Omemanti
        #1601

        @mars-warrior @alowhum

        For uploading code onto the Ebyte modules I use an ST-Link V2 (2 dollar USB modules).

        • Install the USB-Driver using Zadig

        • Connect the DIO, CLK VCC, and GND.
          For testing purposes, I soldered just the tips of some Dupont cables to the Ebyte module and put the female parts on the ST-link.

        • The first time I want to upload code, I first "burn the bootloader" (Tools => burn Bootloader) (https://forum.mysensors.org/topic/6961/nrf5-bluetooth-action/386)
          This will give an error.
          After that, you should be able to upload sketches.

        0_1525087406964_IMG_20180430_131940.jpg

        Nca78N 1 Reply Last reply
        0
        • O Omemanti

          @mars-warrior @alowhum

          For uploading code onto the Ebyte modules I use an ST-Link V2 (2 dollar USB modules).

          • Install the USB-Driver using Zadig

          • Connect the DIO, CLK VCC, and GND.
            For testing purposes, I soldered just the tips of some Dupont cables to the Ebyte module and put the female parts on the ST-link.

          • The first time I want to upload code, I first "burn the bootloader" (Tools => burn Bootloader) (https://forum.mysensors.org/topic/6961/nrf5-bluetooth-action/386)
            This will give an error.
            After that, you should be able to upload sketches.

          0_1525087406964_IMG_20180430_131940.jpg

          Nca78N Offline
          Nca78N Offline
          Nca78
          Hardware Contributor
          wrote on last edited by
          #1602

          @omemanti said in nRF5 Bluetooth action!:

          • The first time I want to upload code, I first "burn the bootloader" (Tools => burn Bootloader) (https://forum.mysensors.org/topic/6961/nrf5-bluetooth-action/386)
            This will give an error.
            After that, you should be able to upload sketches.

          That's what I suggested earlier but it seems it didn't work. But I don't remember if it was with an stlink.

          1 Reply Last reply
          0
          • O Offline
            O Offline
            Omemanti
            wrote on last edited by Omemanti
            #1603

            @alowhum
            maybe a very stupid question, but did you check all the wires and after that if your computer uses the right drivers.

            I took me quite a while to figure this out myself. Especially the driver part messes things up. Errors everywhere that referred to different problems, but after I used Zadig they all disappeared.

            1 Reply Last reply
            0
            • Mars WarriorM Mars Warrior

              @alowhum, you seem to need Jlink Commander:

              @toyman said in nRF5 Bluetooth action!:

              @alowhum I intentionally asked you because I know the problem exists.
              You need to erase the chip via Jlink Commander. Neither nrfjprog nor anything alse will work (AFAIK)
              Actually, it was @NeverDie who found it in the beginning of his quest with nrf52. "The thing that started it all" (c)

              Furthermore, It would be nice to have a small step-by-step guide to unlock and then program the ebyte module.
              @Omemanti and @NeverDie are using these modules, so should be able to write something up that works for other ppl ;-)

              (My ebyte modules are still on their way)

              NeverDieN Offline
              NeverDieN Offline
              NeverDie
              Hero Member
              wrote on last edited by NeverDie
              #1604

              @mars-warrior said in nRF5 Bluetooth action!:

              @Omemanti and @NeverDie are using these modules, so should be able to write something up that works for other ppl

              As I've said many times previoiusly, I use the nRF52 DK to program external modules, and it's what I recommend for noobs because it's relatively hassle free. If you're able to use the $2 st-link v2 programmer then great, my hat's off to you. If not, I recommend the nRF52 DK rather than get frustrated and give up.

              alowhumA 1 Reply Last reply
              1
              • NeverDieN NeverDie

                @mars-warrior said in nRF5 Bluetooth action!:

                @Omemanti and @NeverDie are using these modules, so should be able to write something up that works for other ppl

                As I've said many times previoiusly, I use the nRF52 DK to program external modules, and it's what I recommend for noobs because it's relatively hassle free. If you're able to use the $2 st-link v2 programmer then great, my hat's off to you. If not, I recommend the nRF52 DK rather than get frustrated and give up.

                alowhumA Offline
                alowhumA Offline
                alowhum
                Plugin Developer
                wrote on last edited by
                #1605

                @neverdie said in nRF5 Bluetooth action!:

                nRF52 DK

                Which hardware programmer do you use with that?

                I find many of these software packages, like Segger's JLink stuff, are made for Windows (I'm on a mac).

                gohanG O 2 Replies Last reply
                0
                • alowhumA alowhum

                  @neverdie said in nRF5 Bluetooth action!:

                  nRF52 DK

                  Which hardware programmer do you use with that?

                  I find many of these software packages, like Segger's JLink stuff, are made for Windows (I'm on a mac).

                  gohanG Offline
                  gohanG Offline
                  gohan
                  Mod
                  wrote on last edited by
                  #1606

                  @alowhum you can still install windows on it :sweat_smile:

                  1 Reply Last reply
                  0
                  • alowhumA alowhum

                    @neverdie said in nRF5 Bluetooth action!:

                    nRF52 DK

                    Which hardware programmer do you use with that?

                    I find many of these software packages, like Segger's JLink stuff, are made for Windows (I'm on a mac).

                    O Offline
                    O Offline
                    Omemanti
                    wrote on last edited by
                    #1607

                    @alowhum by programmer you mean in something like the Arduino ide? That's what I use ( I both use the nrf52dk =>j-link aswell the st-link v2 => st-link)

                    1 Reply Last reply
                    0
                    • alowhumA Offline
                      alowhumA Offline
                      alowhum
                      Plugin Developer
                      wrote on last edited by alowhum
                      #1608

                      @Omemanti I didn't realise the nRF52-DK was a hardware device. I thought it was a software program.

                      On the picture you provided (thanks!), are pin 6 and 8 connected to a serial port to read what's going on? Your ground is connected in a different place than mine (I connect it next to the VCC pin). I suspect both those side-pins near the antenna, at the top, where you have soldered something, are ground too, right?

                      O 1 Reply Last reply
                      0
                      • alowhumA alowhum

                        @Omemanti I didn't realise the nRF52-DK was a hardware device. I thought it was a software program.

                        On the picture you provided (thanks!), are pin 6 and 8 connected to a serial port to read what's going on? Your ground is connected in a different place than mine (I connect it next to the VCC pin). I suspect both those side-pins near the antenna, at the top, where you have soldered something, are ground too, right?

                        O Offline
                        O Offline
                        Omemanti
                        wrote on last edited by
                        #1609

                        @alowhum said in nRF5 Bluetooth action!:

                        @Omemanti I didn't realise the nRF52-DK was a hardware device. I thought it was a software program.

                        The nrf52 dev kit= > NRF52 Dev kit

                        To connect the DK to a module :
                        DK Ebyte module
                        GND(detect) => GND
                        SWDIO => SWDIO
                        SWDCLK => SWCLK
                        VTG => 3,3V
                        3,3V => 3,3V
                        GND =>GND

                        select J-link and there you go.

                        On the picture you provided (thanks!), are pin 6 and 8 connected to a serial port to read what's going on?

                        I used Pin 6 and 8 to connect to a FTDI to read out the serial. Since you can tell the sketch where to put the RX and TX I just connected them to 6 & 8.

                        Your ground is connected in a different place than mine (I connect it next to the VCC pin).

                        the Ebyte module has multiple GND connections, I messed the one next to the VCC up so I connected them next to the antenna. Just because I was easy ;)

                        I suspect both those side-pins near the antenna, at the top, where you have soldered something, are ground too, right?

                        Indeed!

                        1 Reply Last reply
                        1
                        • alowhumA Offline
                          alowhumA Offline
                          alowhum
                          Plugin Developer
                          wrote on last edited by
                          #1610

                          JLinkExe gives me this:


                          WARNING: RESET (pin 15) high, but should be low. Please check target hardware.


                          I already had some signs these EByte modules have a reset issue. As it they are constantly being reset. This points to that again. hmm.

                          O 1 Reply Last reply
                          0
                          • alowhumA alowhum

                            JLinkExe gives me this:


                            WARNING: RESET (pin 15) high, but should be low. Please check target hardware.


                            I already had some signs these EByte modules have a reset issue. As it they are constantly being reset. This points to that again. hmm.

                            O Offline
                            O Offline
                            Omemanti
                            wrote on last edited by Omemanti
                            #1611

                            @alowhum

                            Hey, sorry, I'm not familiar with your error messages.

                            Can you please sum everything up what you did so far and what your setup looks like (pic)

                            • Drivers
                            • Libraries
                            • what software you use
                            • Number of modules you tested
                            • etc

                            just to retrace your steps ( It might be useful to post it in a separate topic to keep this one cleaner ) => https://forum.mysensors.org/category/5/troubleshooting

                            1 Reply Last reply
                            1
                            • Nca78N Offline
                              Nca78N Offline
                              Nca78
                              Hardware Contributor
                              wrote on last edited by Nca78
                              #1612

                              For those interested, NRF52840 is already available on AliExpress from HolyIOT, it's the revision 1 of the chip, too bad they put a chip antenna :(

                              https://www.aliexpress.com/store/product/Nordic-nRF52840-Bluetooth-module-grid-development-board-BLE5-0-Bluetooth-serial-low-power-voice-long-distance/420533_32868365660.html

                              [Edit] They also have the most compact NRF24 compatible gateway ever, for 10$ :o
                              https://www.aliexpress.com/store/product/Nordic-nRF52832-BLE-4-0-4-2-5-0-USB-UART-BLE-dongle-for-computer/420533_32862480389.html

                              1 Reply Last reply
                              1
                              • NeverDieN Offline
                                NeverDieN Offline
                                NeverDie
                                Hero Member
                                wrote on last edited by NeverDie
                                #1613

                                Looks as though there is also a new DK for the nRF52840 as well:
                                https://www.digikey.com/product-detail/en/nordic-semiconductor-asa/NRF52840-DK/1490-1072-ND/8593726
                                just not in stock.

                                Looks like HolyIOT is ahead of the curve on this chip.

                                JokgiJ 1 Reply Last reply
                                0
                                • alowhumA Offline
                                  alowhumA Offline
                                  alowhum
                                  Plugin Developer
                                  wrote on last edited by
                                  #1614

                                  @nca78 said in nRF5 Bluetooth action!:

                                  https://www.aliexpress.com/store/product/Nordic-nRF52832-BLE-4-0-4-2-5-0-USB-UART-BLE-dongle-for-computer/420533_32862480389.html

                                  Cool!

                                  Nca78N 1 Reply Last reply
                                  0
                                  • alowhumA alowhum

                                    @nca78 said in nRF5 Bluetooth action!:

                                    https://www.aliexpress.com/store/product/Nordic-nRF52832-BLE-4-0-4-2-5-0-USB-UART-BLE-dongle-for-computer/420533_32862480389.html

                                    Cool!

                                    Nca78N Offline
                                    Nca78N Offline
                                    Nca78
                                    Hardware Contributor
                                    wrote on last edited by
                                    #1615

                                    @alowhum said in nRF5 Bluetooth action!:

                                    @nca78 said in nRF5 Bluetooth action!:

                                    https://www.aliexpress.com/store/product/Nordic-nRF52832-BLE-4-0-4-2-5-0-USB-UART-BLE-dongle-for-computer/420533_32862480389.html

                                    Cool!

                                    If you buy one, buy the "black" version, it's a bit bigger but it's because it has a PCB antenna, range will be better.

                                    T 1 Reply Last reply
                                    1
                                    • Nca78N Nca78

                                      @alowhum said in nRF5 Bluetooth action!:

                                      @nca78 said in nRF5 Bluetooth action!:

                                      https://www.aliexpress.com/store/product/Nordic-nRF52832-BLE-4-0-4-2-5-0-USB-UART-BLE-dongle-for-computer/420533_32862480389.html

                                      Cool!

                                      If you buy one, buy the "black" version, it's a bit bigger but it's because it has a PCB antenna, range will be better.

                                      T Offline
                                      T Offline
                                      Toyman
                                      wrote on last edited by
                                      #1616

                                      @nca78 I don't recognize any LDO on the PCB while it has USB power supply. How is 5V converted to 3.3v?

                                      alowhumA 1 Reply Last reply
                                      0
                                      • T Toyman

                                        @nca78 I don't recognize any LDO on the PCB while it has USB power supply. How is 5V converted to 3.3v?

                                        alowhumA Offline
                                        alowhumA Offline
                                        alowhum
                                        Plugin Developer
                                        wrote on last edited by
                                        #1617

                                        @toyman said in nRF5 Bluetooth action!:

                                        @nca78 I don't recognize any LDO on the PCB while it has USB power supply. How is 5V converted to 3.3v?

                                        I was wondering the exact same thing!

                                        Nca78N 1 Reply Last reply
                                        0
                                        • scalzS Offline
                                          scalzS Offline
                                          scalz
                                          Hardware Contributor
                                          wrote on last edited by
                                          #1618

                                          small internal dcdc converter

                                          1 Reply Last reply
                                          1
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          15

                                          Online

                                          11.7k

                                          Users

                                          11.2k

                                          Topics

                                          113.0k

                                          Posts


                                          Copyright 2019 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • OpenHardware.io
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular