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 631.1k 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
    #1417

    How can I connect to DEC5 as an I/O when using MyBoardNRF5?

    The Ebyte Module Datasheet says: 14 DEC5 Input/Output MCU GPIO to it should be possible?

    NeverDieN 1 Reply Last reply
    0
    • O Omemanti

      How can I connect to DEC5 as an I/O when using MyBoardNRF5?

      The Ebyte Module Datasheet says: 14 DEC5 Input/Output MCU GPIO to it should be possible?

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

      @omemanti Suggest you check the Nordic datasheet on that rather than rely on the Ebyte documentation. IIRC, the DECT pins are not GPIO, but it's worth your double checking the nRF52 datasheet if it's important to you.

      O 1 Reply Last reply
      0
      • NeverDieN NeverDie

        @omemanti Suggest you check the Nordic datasheet on that rather than rely on the Ebyte documentation. IIRC, the DECT pins are not GPIO, but it's worth your double checking the nRF52 datasheet if it's important to you.

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

        @neverdie, Indeed, I checked and it was false. well goes to show that late-night prototyping has some disadvantages, my bad, :)

        Deleted Following up question..
        DK =>Ebyte module
        GND(detect) => GND
        SWDIO => SWDIO
        SWDCLK => SWCLK
        VTG => 3,3V
        3,3V => 3,3V
        GND =>GND

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

          Has anyone succeeded in programming the WT51822-S4AT module (the cheapest and tiny nrf51822 module on AliExpress) using NRF52 DK ?
          I pulled a lot of hair trying to find out what I did wrong with my board, I soldered an adapter to make sure I didn't have problems with faulty jumper wires etc, I reinstalled JLink and Nordic software, in the end I desoldered everything on my board, then the module itself to program it independantly. It always failed and JLink couldn't connect to it. I tried the other spare one I had, same result. I tried the one I'm sure I managed to program long ago with a jlink clone, always the same result.
          Then I tried with an old nrf51822 module I bought long ago on AliExpress, and no problem !

          Has anyone had similar problems ? Is there something special hardware wise that I should check ?

          NeverDieN 1 Reply Last reply
          0
          • Nca78N Nca78

            Has anyone succeeded in programming the WT51822-S4AT module (the cheapest and tiny nrf51822 module on AliExpress) using NRF52 DK ?
            I pulled a lot of hair trying to find out what I did wrong with my board, I soldered an adapter to make sure I didn't have problems with faulty jumper wires etc, I reinstalled JLink and Nordic software, in the end I desoldered everything on my board, then the module itself to program it independantly. It always failed and JLink couldn't connect to it. I tried the other spare one I had, same result. I tried the one I'm sure I managed to program long ago with a jlink clone, always the same result.
            Then I tried with an old nrf51822 module I bought long ago on AliExpress, and no problem !

            Has anyone had similar problems ? Is there something special hardware wise that I should check ?

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

            @nca78 said in nRF5 Bluetooth action!:

            Has anyone succeeded in programming the WT51822-S4AT module (the cheapest and tiny nrf51822 module on AliExpress) using NRF52 DK ?

            Yes. Haven't had a problem.

            A couple things:

            1. Are you powering the nRF51 module externally (separate from the nRF52DK)? It's highly advisable that you do, even though by random luck, you can sometimes succeed without it.
            2. Especially for new, unprogrammed modules, you need to do a bulk erase at the beginning. I do this by the d00616 trick of saying "Burn bootloader" with a null bootloader. The burning bootloader process fails, as expected, but the side-effect is that it does a bulk-erase before failing.

            I know you know these things, but sometimes we forget to do what we know.

            scalzS Nca78N 2 Replies Last reply
            0
            • S Offline
              S Offline
              Sarg666
              wrote on last edited by
              #1422

              @Nca78
              Do you have the J-Link with only 4 pins? And if so, is the module a QFAAH0? In this konstalation I have the same problem, but with the J-Link V8 and ST-Link V2, the module can be programmed without any problem.

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

                @Nca78
                Also, what board type in the arduino IDE are you using to program it? That could be throwing you off as well.

                1 Reply Last reply
                0
                • NeverDieN NeverDie

                  @nca78 said in nRF5 Bluetooth action!:

                  Has anyone succeeded in programming the WT51822-S4AT module (the cheapest and tiny nrf51822 module on AliExpress) using NRF52 DK ?

                  Yes. Haven't had a problem.

                  A couple things:

                  1. Are you powering the nRF51 module externally (separate from the nRF52DK)? It's highly advisable that you do, even though by random luck, you can sometimes succeed without it.
                  2. Especially for new, unprogrammed modules, you need to do a bulk erase at the beginning. I do this by the d00616 trick of saying "Burn bootloader" with a null bootloader. The burning bootloader process fails, as expected, but the side-effect is that it does a bulk-erase before failing.

                  I know you know these things, but sometimes we forget to do what we know.

                  scalzS Offline
                  scalzS Offline
                  scalz
                  Hardware Contributor
                  wrote on last edited by scalz
                  #1424

                  @neverdie said in nRF5 Bluetooth action!:

                  1. Especially for new, unprogrammed modules, you need to do a bulk erase at the beginning. I do this by the d00616 trick of saying "Burn bootloader" with a null bootloader. The burning bootloader process fails, as expected, but the side-effect is that it does a bulk-erase before failing.

                  if bulk erase is needed, then it means it was programmed ;) a fresh new mcu is usually not programmed unless you ask for it to the manufacturer..

                  Like said above, it could be a problem with module, power issue, usb & cable, dupont cable, jlink, jlink setup, arduino core etc.

                  NeverDieN Nca78N 2 Replies Last reply
                  0
                  • NeverDieN NeverDie

                    @nca78 said in nRF5 Bluetooth action!:

                    Has anyone succeeded in programming the WT51822-S4AT module (the cheapest and tiny nrf51822 module on AliExpress) using NRF52 DK ?

                    Yes. Haven't had a problem.

                    A couple things:

                    1. Are you powering the nRF51 module externally (separate from the nRF52DK)? It's highly advisable that you do, even though by random luck, you can sometimes succeed without it.
                    2. Especially for new, unprogrammed modules, you need to do a bulk erase at the beginning. I do this by the d00616 trick of saying "Burn bootloader" with a null bootloader. The burning bootloader process fails, as expected, but the side-effect is that it does a bulk-erase before failing.

                    I know you know these things, but sometimes we forget to do what we know.

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

                    @neverdie said in nRF5 Bluetooth action!:

                    1. Are you powering the nRF51 module externally (separate from the nRF52DK)? It's highly advisable that you do, even though by random luck, you can sometimes succeed without it.

                    I was at the beginning, but after that I tried with power from the DK. I will try again with external power.

                    1. Especially for new, unprogrammed modules, you need to do a bulk erase at the beginning. I do this by the d00616 trick of saying "Burn bootloader" with a null bootloader. The burning bootloader process fails, as expected, but the side-effect is that it does a bulk-erase before failing.

                    I can't even reach that step, JLink can't establish the SWD connection so there's no way to erase the chip.

                    NeverDieN 2 Replies Last reply
                    0
                    • Nca78N Nca78

                      @neverdie said in nRF5 Bluetooth action!:

                      1. Are you powering the nRF51 module externally (separate from the nRF52DK)? It's highly advisable that you do, even though by random luck, you can sometimes succeed without it.

                      I was at the beginning, but after that I tried with power from the DK. I will try again with external power.

                      1. Especially for new, unprogrammed modules, you need to do a bulk erase at the beginning. I do this by the d00616 trick of saying "Burn bootloader" with a null bootloader. The burning bootloader process fails, as expected, but the side-effect is that it does a bulk-erase before failing.

                      I can't even reach that step, JLink can't establish the SWD connection so there's no way to erase the chip.

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

                      @nca78 said in nRF5 Bluetooth action!:

                      I was at the beginning, but after that I tried with power from the DK. I will try again with external power.

                      I use a battery pack with a 3.3v regulator as the external power source. Don't just use 2xAA. If the voltage is too low, it will fail to program.

                      1 Reply Last reply
                      0
                      • scalzS scalz

                        @neverdie said in nRF5 Bluetooth action!:

                        1. Especially for new, unprogrammed modules, you need to do a bulk erase at the beginning. I do this by the d00616 trick of saying "Burn bootloader" with a null bootloader. The burning bootloader process fails, as expected, but the side-effect is that it does a bulk-erase before failing.

                        if bulk erase is needed, then it means it was programmed ;) a fresh new mcu is usually not programmed unless you ask for it to the manufacturer..

                        Like said above, it could be a problem with module, power issue, usb & cable, dupont cable, jlink, jlink setup, arduino core etc.

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

                        @scalz said in nRF5 Bluetooth action!:

                        if bulk erase is needed, then it means it was programmed a fresh new mcu is usually not programmed unless you ask for it to the manufacturer..

                        Well, you would think so, and yet it seems I always need to do it anyway on a new module. Go figure.

                        1 Reply Last reply
                        0
                        • scalzS scalz

                          @neverdie said in nRF5 Bluetooth action!:

                          1. Especially for new, unprogrammed modules, you need to do a bulk erase at the beginning. I do this by the d00616 trick of saying "Burn bootloader" with a null bootloader. The burning bootloader process fails, as expected, but the side-effect is that it does a bulk-erase before failing.

                          if bulk erase is needed, then it means it was programmed ;) a fresh new mcu is usually not programmed unless you ask for it to the manufacturer..

                          Like said above, it could be a problem with module, power issue, usb & cable, dupont cable, jlink, jlink setup, arduino core etc.

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

                          @sarg666 said in nRF5 Bluetooth action!:

                          Do you have the J-Link with only 4 pins? And if so, is the module a QFAAH0? In this konstalation I have the same problem, but with the J-Link V8 and ST-Link V2, the module can be programmed without any problem.

                          I use the JLink included on the NRF52DK.

                          @scalz said in nRF5 Bluetooth action!:

                          if bulk erase is needed, then it means it was programmed ;) a fresh new mcu is usually not programmed unless you ask for it to the manufacturer..

                          No because the <3$ modules are made to be controlled with an external MCU using serial commands, the same way than ESP8266 for Wifi, so they have a firmware installed.

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

                            For those interested, only 2.55$ for the CDEByte NRF52832 modules :o

                            https://www.aliexpress.com/store/product/nRF52832-2-4GHz-Wireless-rf-Module-CDSENET-E73-2G4M04S-SPI-SMD-rf-Receiver-transmitter-Bluetooth-Module/2798183_32819293925.html

                            [edit] Limited to 2 / customer, but you can buy 2 more in the other CDEByte store here :)
                            https://www.aliexpress.com/store/product/CDEBYTE-E73-2G4M04S-BLE-4-2-5-0-long-distance-100m-2-4GHz-SMD-ARM-Core/2077046_32820692238.html

                            1 Reply Last reply
                            2
                            • scalzS Offline
                              scalzS Offline
                              scalz
                              Hardware Contributor
                              wrote on last edited by scalz
                              #1430

                              @NeverDie @Nca78
                              then buy a fresh mcu on Mouser and you'll see by yourself ;)
                              You don't get what I meant, I'm not talking about a specific module design, but in general. the mcu can be accessed by jlink no matter, else how would you program it in first place ..

                              Nca78N 1 Reply Last reply
                              1
                              • scalzS scalz

                                @NeverDie @Nca78
                                then buy a fresh mcu on Mouser and you'll see by yourself ;)
                                You don't get what I meant, I'm not talking about a specific module design, but in general. the mcu can be accessed by jlink no matter, else how would you program it in first place ..

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

                                @scalz said in nRF5 Bluetooth action!:

                                @NeverDie @Nca78
                                then buy a fresh mcu on Mouser and you'll see by yourself etc ;)
                                You don't get what I meant, I'm not talking about a specific module design, but in general. the mcu can be accessed by jlink no matter, else how would you program it in first place ..

                                Yes, but when there's a firmware it can be locked, so you must unlock it and erase it to remove softdevice and be able to write something.

                                scalzS 1 Reply Last reply
                                1
                                • Nca78N Nca78

                                  @neverdie said in nRF5 Bluetooth action!:

                                  1. Are you powering the nRF51 module externally (separate from the nRF52DK)? It's highly advisable that you do, even though by random luck, you can sometimes succeed without it.

                                  I was at the beginning, but after that I tried with power from the DK. I will try again with external power.

                                  1. Especially for new, unprogrammed modules, you need to do a bulk erase at the beginning. I do this by the d00616 trick of saying "Burn bootloader" with a null bootloader. The burning bootloader process fails, as expected, but the side-effect is that it does a bulk-erase before failing.

                                  I can't even reach that step, JLink can't establish the SWD connection so there's no way to erase the chip.

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

                                  @nca78 said in nRF5 Bluetooth action!:

                                  I tried with power from the DK.

                                  I don't know why, but I seem to recollect that doing it that way may confuse it. Otherwise, I don't know how I would have ended up using a battery pack instead.

                                  1 Reply Last reply
                                  0
                                  • Nca78N Nca78

                                    @scalz said in nRF5 Bluetooth action!:

                                    @NeverDie @Nca78
                                    then buy a fresh mcu on Mouser and you'll see by yourself etc ;)
                                    You don't get what I meant, I'm not talking about a specific module design, but in general. the mcu can be accessed by jlink no matter, else how would you program it in first place ..

                                    Yes, but when there's a firmware it can be locked, so you must unlock it and erase it to remove softdevice and be able to write something.

                                    scalzS Offline
                                    scalzS Offline
                                    scalz
                                    Hardware Contributor
                                    wrote on last edited by
                                    #1433

                                    @nca78 said in nRF5 Bluetooth action!:

                                    @scalz said in nRF5 Bluetooth action!:

                                    @NeverDie @Nca78
                                    then buy a fresh mcu on Mouser and you'll see by yourself etc ;)
                                    You don't get what I meant, I'm not talking about a specific module design, but in general. the mcu can be accessed by jlink no matter, else how would you program it in first place ..

                                    Yes, but when there's a firmware it can be locked, so you must unlock it and erase it to remove softdevice and be able to write something.

                                    are you sure it's locked? I thought neverdie suggested to erase it with jlink.
                                    well, you should choose a better module than funky design modules.. just my opinion, for saving?? 2bucks!

                                    NeverDieN Nca78N 2 Replies Last reply
                                    0
                                    • scalzS scalz

                                      @nca78 said in nRF5 Bluetooth action!:

                                      @scalz said in nRF5 Bluetooth action!:

                                      @NeverDie @Nca78
                                      then buy a fresh mcu on Mouser and you'll see by yourself etc ;)
                                      You don't get what I meant, I'm not talking about a specific module design, but in general. the mcu can be accessed by jlink no matter, else how would you program it in first place ..

                                      Yes, but when there's a firmware it can be locked, so you must unlock it and erase it to remove softdevice and be able to write something.

                                      are you sure it's locked? I thought neverdie suggested to erase it with jlink.
                                      well, you should choose a better module than funky design modules.. just my opinion, for saving?? 2bucks!

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

                                      @scalz Well, what do you think he should use instead? Bare chips? That's not as easy to solder.

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

                                        By the way, any update as to when Nordic will be shipping final silicon on the nRF52840? Seems overdue. I just checked Digikey, and still all they have are the ancient PDK's.

                                        scalzS 1 Reply Last reply
                                        0
                                        • scalzS scalz

                                          @nca78 said in nRF5 Bluetooth action!:

                                          @scalz said in nRF5 Bluetooth action!:

                                          @NeverDie @Nca78
                                          then buy a fresh mcu on Mouser and you'll see by yourself etc ;)
                                          You don't get what I meant, I'm not talking about a specific module design, but in general. the mcu can be accessed by jlink no matter, else how would you program it in first place ..

                                          Yes, but when there's a firmware it can be locked, so you must unlock it and erase it to remove softdevice and be able to write something.

                                          are you sure it's locked? I thought neverdie suggested to erase it with jlink.
                                          well, you should choose a better module than funky design modules.. just my opinion, for saving?? 2bucks!

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

                                          @scalz said in nRF5 Bluetooth action!:

                                          well, you should choose a better module than funky design modules.. just my opinion, for saving?? 2bucks!

                                          Well I was about to complain about my limited choice on Arrow (others ask 75$ shipping :o ), but after checking (again) I see that Arrow now has the Fanstel modules, so I have no reason to complain anymore :D
                                          Too bad the BT832F is not in stock, but BT832 at 4.6$ is great, with the XE version in the gateway to compensate the lower range.

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


                                          23

                                          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