Skip to content
  • MySensors
  • 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!

nRF5 action!

Scheduled Pinned Locked Moved My Project
1.9k Posts 49 Posters 1.5m 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.
  • 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

    N Offline
    N 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)

        N Offline
        N 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
        • N 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
                      • N Offline
                        N 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
                        • N Offline
                          N 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.

                          J 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!

                            N 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!

                              N Offline
                              N 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
                              • N 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!

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

                                    small internal dcdc converter

                                    1 Reply Last reply
                                    1
                                    • alowhumA alowhum

                                      @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!

                                      N Offline
                                      N Offline
                                      Nca78
                                      Hardware Contributor
                                      wrote on last edited by
                                      #1619

                                      @alowhum said in nRF5 Bluetooth action!:

                                      @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!

                                      Look at bottom of page 6 and top left of "schematic" on page 9 of the CP2104 datasheet. It can supply up to 100mA.
                                      https://www.silabs.com/documents/public/data-sheets/cp2104.pdf

                                      1 Reply Last reply
                                      0
                                      • N Offline
                                        N Offline
                                        NeverDie
                                        Hero Member
                                        wrote on last edited by
                                        #1620

                                        Can someone please provide a link to the module being discussed? I tried looking on Aliexpress, and I don't see anything which matches.

                                        N 1 Reply Last reply
                                        0
                                        • N NeverDie

                                          Can someone please provide a link to the module being discussed? I tried looking on Aliexpress, and I don't see anything which matches.

                                          N Offline
                                          N Offline
                                          Nca78
                                          Hardware Contributor
                                          wrote on last edited by Nca78
                                          #1621

                                          @neverdie it's this link, in the description on aliexpress you can see the internal PCB "module"
                                          https://www.aliexpress.com/store/product/Nordic-nRF52832-BLE-4-0-4-2-5-0-USB-UART-BLE-dongle-for-computer/420533_32862480389.html

                                          T N 2 Replies Last reply
                                          0

                                          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                          With your input, this post could be even better 💗

                                          Register Login
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          14

                                          Online

                                          12.0k

                                          Users

                                          11.2k

                                          Topics

                                          113.4k

                                          Posts


                                          Copyright 2025 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
                                          • MySensors
                                          • OpenHardware.io
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular