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.3k 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.
  • M Offline
    M Offline
    Mike_Lemo
    wrote on last edited by
    #252

    how'd you program this blank nrf52832 chip with an SWD programmer like the ST link v2 what programming environment to use and so on?

    NeverDieN mtiutiuM 2 Replies Last reply
    0
    • M Mike_Lemo

      how'd you program this blank nrf52832 chip with an SWD programmer like the ST link v2 what programming environment to use and so on?

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

      @Mike_Lemo
      I had no luck using the ST link v2 from Windows. You might be luckier, or you might try using it from Linux. However, as discussed above, I have had success using the nRF52832 DK and the Arduino IDE from Windows. That's how I intend to program the nRF52832 module using the breakout board I posted above.

      1 Reply Last reply
      0
      • M Mike_Lemo

        how'd you program this blank nrf52832 chip with an SWD programmer like the ST link v2 what programming environment to use and so on?

        mtiutiuM Offline
        mtiutiuM Offline
        mtiutiu
        Hardware Contributor
        wrote on last edited by mtiutiu
        #254

        @Mike_Lemo

        I used the Arduino IDE with sandeepmistry arduino core installed and I managed to program a nrf51822 module with success. I used a cheap st-link programmer from AliExpress. I don't know about nrf52832 as I don't have one. But I don't see why it wouldn't work. You need 4 wires: Vdd(3.3V), GND, SWD and SWCLK.
        From Arduino IDE you need to select st-link as programmer.
        It uses openocd under the hood to do the work and it worked both on Windows and Linux. On Linux you might need to set udev rules for allowing regular user to use the st-link.

        NeverDieN M 2 Replies Last reply
        1
        • mtiutiuM mtiutiu

          @Mike_Lemo

          I used the Arduino IDE with sandeepmistry arduino core installed and I managed to program a nrf51822 module with success. I used a cheap st-link programmer from AliExpress. I don't know about nrf52832 as I don't have one. But I don't see why it wouldn't work. You need 4 wires: Vdd(3.3V), GND, SWD and SWCLK.
          From Arduino IDE you need to select st-link as programmer.
          It uses openocd under the hood to do the work and it worked both on Windows and Linux. On Linux you might need to set udev rules for allowing regular user to use the st-link.

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

          @mtiutiu said in nRF5 Bluetooth action!:

          I managed to program a nrf51822 module with success.

          Did you power the nrf51822 through the st-link programmer, or did you power it independently?

          mtiutiuM 1 Reply Last reply
          0
          • mtiutiuM mtiutiu

            @Mike_Lemo

            I used the Arduino IDE with sandeepmistry arduino core installed and I managed to program a nrf51822 module with success. I used a cheap st-link programmer from AliExpress. I don't know about nrf52832 as I don't have one. But I don't see why it wouldn't work. You need 4 wires: Vdd(3.3V), GND, SWD and SWCLK.
            From Arduino IDE you need to select st-link as programmer.
            It uses openocd under the hood to do the work and it worked both on Windows and Linux. On Linux you might need to set udev rules for allowing regular user to use the st-link.

            M Offline
            M Offline
            Mike_Lemo
            wrote on last edited by
            #256

            @mtiutiu And when you want to program an independent chip with the ST link V2 do you just chose "generic nrf52"?

            Also how is it possible to connect between through two NRF52s in slave master config?
            Is it possible to take advantage of the NFC functionality with that programming environment?

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

              Good news! I received my second nRF52832 DK today, so now I can have a DK on both ends of a link. Bottom line: I ran some quick tests, and it has much better range than the Adafruit nRF52832 Feather.

              Whew! What a relief. The Adafruit had very disappointing range. In contrast, and as expected, the two DK's have better range than regular nRF24L01+ radios.

              M 1 Reply Last reply
              1
              • NeverDieN NeverDie

                Good news! I received my second nRF52832 DK today, so now I can have a DK on both ends of a link. Bottom line: I ran some quick tests, and it has much better range than the Adafruit nRF52832 Feather.

                Whew! What a relief. The Adafruit had very disappointing range. In contrast, and as expected, the two DK's have better range than regular nRF24L01+ radios.

                M Offline
                M Offline
                Mike_Lemo
                wrote on last edited by
                #258

                @NeverDie How did you manage to send and receive data between these two units? may you share the code with us?

                NeverDieN 1 Reply Last reply
                0
                • M Mike_Lemo

                  @NeverDie How did you manage to send and receive data between these two units? may you share the code with us?

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

                  @Mike_Lemo
                  I'm simply using the GatewaySerial and the LightSensor sketches from the mysensors developers release. Just make the following change in each sketch:

                  //#define MY_RADIO_NRF24
                  #define MY_RADIO_NRF5_ESB
                  
                  1 Reply Last reply
                  0
                  • NeverDieN NeverDie

                    @mtiutiu said in nRF5 Bluetooth action!:

                    I managed to program a nrf51822 module with success.

                    Did you power the nrf51822 through the st-link programmer, or did you power it independently?

                    mtiutiuM Offline
                    mtiutiuM Offline
                    mtiutiu
                    Hardware Contributor
                    wrote on last edited by
                    #260

                    @NeverDie

                    Powered from st-link programmer.

                    1 Reply Last reply
                    0
                    • M Mike_Lemo

                      @mtiutiu And when you want to program an independent chip with the ST link V2 do you just chose "generic nrf52"?

                      Also how is it possible to connect between through two NRF52s in slave master config?
                      Is it possible to take advantage of the NFC functionality with that programming environment?

                      mtiutiuM Offline
                      mtiutiuM Offline
                      mtiutiu
                      Hardware Contributor
                      wrote on last edited by mtiutiu
                      #261

                      @Mike_Lemo

                      I used generic and no soft device as Mysensors doesn't use soft devices. I don't know about master-slave, didn't used such a configuration.

                      You need to create another variant for other pin definitions as this is the way arduino framework works as far as I know.

                      Never used NFC so I can't give you hints on that, sorry.

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

                        Looks as though these guys came up with a fairly easy way to develop using actual bluetooth low energy: http://mklec.com/project-kits/kd-circuits/bluetooth-low-energy-board-anaren-A20737-module

                        Unfortunately, I don't believe it runs on the nRF5 though.

                        1 Reply Last reply
                        0
                        • NeverDieN NeverDie

                          Looks as though the nRF52832 sparkfun board has more of a conventional trace antenna:
                          0_1500297066787_sparkfun_nRF52832_antenna.png
                          though isn't it somewhat odd that it appears to also be directly connected to the ground plane(?), or at least a copper pour. Is that normal? This was one of the images produced by sending their .BRD file to oshpark, so that I could get a look at the antenna.

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

                          More good news! I was able to program a Sparkfun nrf52832 board using the DK, and its range is better than the Adafruit nRF52832 Feather and also better than an nRF24L01+.

                          So, my provisional conclusion is to avoid chip antennas, such as Adafruit is using, if better range is desired.

                          @NeverDie said in nRF5 Bluetooth action!:

                          Looks as though the nRF52832 sparkfun board has more of a conventional trace antenna:
                          0_1500297066787_sparkfun_nRF52832_antenna.png
                          though isn't it somewhat odd that it appears to also be directly connected to the ground plane(?), or at least a copper pour. Is that normal? This was one of the images produced by sending their .BRD file to oshpark, so that I could get a look at the antenna.

                          Also, this now gives me a "known good" platform, namely the Sparkfun nRF52832 board, to order PCB's for and try to see if I can successfully solder on any of the bonus nRF52832 chips I received with my two DK's.

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

                            Apparently you can now run micropython on an nRF52832 board:
                            https://www.youtube.com/watch?v=50ImTDRREnU

                            It's still early days, but it sounds like fun. For one thing, since it's a dynamic language, OTA updates should be easy!

                            TerrenceT 1 Reply Last reply
                            0
                            • NeverDieN NeverDie

                              Apparently you can now run micropython on an nRF52832 board:
                              https://www.youtube.com/watch?v=50ImTDRREnU

                              It's still early days, but it sounds like fun. For one thing, since it's a dynamic language, OTA updates should be easy!

                              TerrenceT Offline
                              TerrenceT Offline
                              Terrence
                              wrote on last edited by
                              #265

                              @NeverDie Wow, that it really good news. I was following Tony's videos on mpy on the ESP chips, but had not checked back lately.

                              1 Reply Last reply
                              0
                              • Nca78N Nca78

                                @NeverDie yes noticed their shop only 2 days ago and feeling frustrated now :D
                                For shipment delay I wouldn't be surprised if they shipped the same way with free option and it would just be a different way to state the delay on the 2 websites...

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

                                @Nca78 said in nRF5 Bluetooth action!:

                                For shipment delay I wouldn't be surprised if they shipped the same way with free option and it would just be a different way to state the delay on the 2 websites...

                                You were right: I received both the ebay and the aliexpress packages today. Even for e-packet, that's pretty fast shipping! In fact, they arrived before any of the other items I ordered from other vendors. So, at least that part went well.

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

                                  Does the E73-2G4M04S require anything extra in order to be programmed?
                                  0_1500676804378_Ebyte-E73-2G4M04S-BLE-4-2-5.jpg_350x350.jpg
                                  Today I tried programming it the same way that I have successfully with both the adafruit and the Sparkfun nRF52832 boards using the DK, but the DK keeps complaining that the E73-2G4M04S may not be connected.

                                  Nca78N 1 Reply Last reply
                                  0
                                  • NeverDieN NeverDie

                                    Does the E73-2G4M04S require anything extra in order to be programmed?
                                    0_1500676804378_Ebyte-E73-2G4M04S-BLE-4-2-5.jpg_350x350.jpg
                                    Today I tried programming it the same way that I have successfully with both the adafruit and the Sparkfun nRF52832 boards using the DK, but the DK keeps complaining that the E73-2G4M04S may not be connected.

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

                                    @NeverDie if I remember well in the datasheet they say you have to put the softdevice on it first.

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

                                      Yeah, here's what it says:

                                      1. The module embedded with ARM MCU. For program downloading, please use the J-LINK downloader, any other serial port or JTAG、ISP、ICP are
                                        unavailable to download.
                                      2. There’s two parts to download the program. Because the protocol stack
                                        of NORDIC is not programmed yet, so users need to use the official nRFgo
                                        studio of NORDIC to program the protocol stack first, then program the hex of application code. Or, to program the protocol stack of NORDIC first and
                                        download via the IAR or KEIL.

                                      Seems odd, but I'll give it a try.

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

                                        It's not clear whether the DK can/should be used for this part of it, as it's unclear (at least to me) whether it will end up altering the target chip or the DK. I'm just not sure. So, to do at least this ambiguous part of it, I'll first check whether or not the nRFgo studio software will work with one of the other programmers I've collected (not the DK). That may take a while...

                                        mtiutiuM JokgiJ 2 Replies Last reply
                                        0
                                        • NeverDieN NeverDie

                                          It's not clear whether the DK can/should be used for this part of it, as it's unclear (at least to me) whether it will end up altering the target chip or the DK. I'm just not sure. So, to do at least this ambiguous part of it, I'll first check whether or not the nRFgo studio software will work with one of the other programmers I've collected (not the DK). That may take a while...

                                          mtiutiuM Offline
                                          mtiutiuM Offline
                                          mtiutiu
                                          Hardware Contributor
                                          wrote on last edited by mtiutiu
                                          #271

                                          @NeverDie

                                          Why don't you try to program it with a st-link programmer and arduino ide with sandeepmistry nrf5 core installed? I bought that module(E73-2G4M04S) too and I want to know how this part goes. Thanks.

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


                                          10

                                          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