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. General Discussion
  3. STM32?
  • Getting Started
  • Controller
  • Build
  • Hardware
  • Download/API
  • Forum
  • Store

STM32?

Scheduled Pinned Locked Moved General Discussion
82 Posts 19 Posters 34.4k Views 19 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.
  • nagelcN Offline
    nagelcN Offline
    nagelc
    wrote on last edited by
    #72

    Just got a blue-pill, RFM69 node working. It was a bit of a learning curve moving from Atmega.

    • Cheap J-Link: Never got it working. Cheap ST-Link: Worked
    • Arduino (and VisualMicro) uploaded blink sketch with ST-Link: no problems
    • Uploaded the USB bootloader using the ST-Link: no problems
    • Took a while to figure out I didn't have the dfu driver loaded (Windows 10), but after that no problems using the usb
    • MySensors security personalizer: no problems.
    • Mock MySensors node: no problems. Talked to my gateway. Uses RFM69 encryption.

    Seems like this is the Nano of the future, but without needing to level shift for 3.3V. I'm looking forward to making some real blue pill nodes and gateways.

    1 Reply Last reply
    4
    • B Offline
      B Offline
      Brasletti
      wrote on last edited by
      #73

      Does anybody get the Serial Gateway with RS485 working? I can't get debug messages on serial console.

      1 Reply Last reply
      0
      • alowhumA alowhum

        So.. I accidentally bought something from Aliexpress that I thought was a cheap Arduino Nano.

        But it's not.

        It's an STM32F103C8T6. It has an arm chip.

        Is it useable with MySensors? Does it emulate an Arduino Nano? Of so, it looks like it has more memory, so could that be useful? It's cheaper too, and it has lots of 3v lines.

        I just found this page where someone talks about their adventures with this board. Hmm...

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

        @alowhum You may want to consider the nRF5 series instead.

        1 Reply Last reply
        1
        • B Offline
          B Offline
          Brasletti
          wrote on last edited by Brasletti
          #75

          OK it is working with Hardware Serial. But still no debug message on startup. Maybe it's because the switching of the usb mode.

          Is it possible to wait 2sec before starting up the gateway on stm32 boards?

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

            @neverdie Thanks! I ordered one, they look very interesting.

            1 Reply Last reply
            0
            • F freynder

              @freynder said in STM32?:

              stm32 sensor is unable to connect to gateway:

              After further testing, this seems to work now. I'm not exactly sure why unfortunately. I'm now using the new RFM69 library. I noticed that communication seems to fail after uploading the sketch over stlink, even when clicking the reset button. When disconnecting/reconnecting the usb power all works well. Maybe that was the issue previously as well.

              F Offline
              F Offline
              freynder
              wrote on last edited by freynder
              #77

              @freynder said in STM32?:

              @freynder said in STM32?:

              stm32 sensor is unable to connect to gateway:

              After further testing, this seems to work now. I'm not exactly sure why unfortunately. I'm now using the new RFM69 library. I noticed that communication seems to fail after uploading the sketch over stlink, even when clicking the reset button. When disconnecting/reconnecting the usb power all works well. Maybe that was the issue previously as well.

              Just following up on this as I finally found out why this is happening. I was using encryption and using serial upload (using stm32flash), the simulated eeprom would get overwritten by the flash erase. Not sure if this happens for dfu or stlink as well. Uploading using the black magic probe (which uses dbg) does not have this problem. I hope this may help someone struggling with the same issue.

              Edit: not sure about dfu or stlink.

              1 Reply Last reply
              1
              • nagelcN Offline
                nagelcN Offline
                nagelc
                wrote on last edited by
                #78

                Has anyone been able to do OTA programming with the STM32 yet?

                D 1 Reply Last reply
                0
                • nagelcN nagelc

                  Has anyone been able to do OTA programming with the STM32 yet?

                  D Offline
                  D Offline
                  Dab0G
                  wrote on last edited by Dab0G
                  #79

                  @nagelc Yes I did. My bootloader - https://github.com/mysensors-rus/STM32_Mysensors_bootloader. My modified MySensors library - https://github.com/mysensors-rus/MySensors. Short description in Russian - https://mysensors-rus.github.io/STM32-OTA-MySensors

                  nagelcN 1 Reply Last reply
                  2
                  • D Dab0G

                    @nagelc Yes I did. My bootloader - https://github.com/mysensors-rus/STM32_Mysensors_bootloader. My modified MySensors library - https://github.com/mysensors-rus/MySensors. Short description in Russian - https://mysensors-rus.github.io/STM32-OTA-MySensors

                    nagelcN Offline
                    nagelcN Offline
                    nagelc
                    wrote on last edited by
                    #80

                    @dab0g Wow! I did not expect anyone to answer. This is really great. I have a remote control lamp and a thermostat that use the STM32 and it would great to be able to program them OTA. I'll check it out.

                    alowhumA 1 Reply Last reply
                    1
                    • nagelcN nagelc

                      @dab0g Wow! I did not expect anyone to answer. This is really great. I have a remote control lamp and a thermostat that use the STM32 and it would great to be able to program them OTA. I'll check it out.

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

                      @nagelc said in STM32?:

                      @dab0g Wow! I did not expect anyone to answer. This is really great. I have a remote control lamp and a thermostat that use the STM32 and it would great to be able to program them OTA. I'll check it out.

                      If you do, be sure to create an English write-up for the rest of us!

                      1 Reply Last reply
                      0
                      • D Offline
                        D Offline
                        Dab0G
                        wrote on last edited by
                        #82

                        My mini board. 0_1556711451166_photo_2019-05-01_14-50-00.jpg

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


                        16

                        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