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 630.9k 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 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
                                  • 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!

                                    Nca78N Offline
                                    Nca78N 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
                                    • NeverDieN Offline
                                      NeverDieN 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.

                                      Nca78N 1 Reply Last reply
                                      0
                                      • NeverDieN 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.

                                        Nca78N Offline
                                        Nca78N 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 NeverDieN 2 Replies Last reply
                                        0
                                        • Nca78N Nca78

                                          @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 Offline
                                          T Offline
                                          Toyman
                                          wrote on last edited by
                                          #1622

                                          @nca78 Got it. So it's kinda Arduino Nano, but nrf52-based.

                                          1 Reply Last reply
                                          0
                                          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
                                          • MySensors
                                          • OpenHardware.io
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular