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. Hardware
  3. Is the 32-bit ATSAML10 the ATMEGA328P killer that we've been waiting for?

Is the 32-bit ATSAML10 the ATMEGA328P killer that we've been waiting for?

Scheduled Pinned Locked Moved Hardware
26 Posts 8 Posters 4.2k Views 9 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.
  • NeverDieN Offline
    NeverDieN Offline
    NeverDie
    Hero Member
    wrote on last edited by NeverDie
    #6

    Thanks for pointing that out. :)

    Unfortunately, I see no indication of any Arduino support for it on github, so I guess it's largely moot. As near as I can tell, 32 bit Arduino(ish) options at present are just Arduino Zero, Arduino Due, nRF52, and I guess quite a large number of STM32 boards (https://github.com/stm32duino/Arduino_Core_STM32). Is there anything else, or is that the full set?

    Of the STM32 boards, the three STM32L0 boards would be the low power boards. For instance, the STM32L031K6 board has:

    Ultra-low-power platform
    1.65 V to 3.6 V power supply
    -40 to 125 °C temperature range
    0.25 μA Standby mode (2 wakeup pins)
    0.38 μA Stop mode (16 wakeup lines)
    0.68 μA Stop mode + RTC + 8 KB RAM retention
    Down to 76 μA/MHz in Run mode
    5 μs wakeup time (from Flash memory)
    41 μA 12-bit ADC conversion (at 10ksps)
    

    which actually sounds like it beats the ATSAML10, at least in terms of power consumption (https://www.st.com/en/microcontrollers/stm32l031k6.html).

    1 Reply Last reply
    0
    • MiKaM Offline
      MiKaM Offline
      MiKa
      wrote on last edited by
      #7

      SAMD21G18A is also option for next level of mysensors support ;)
      Check moteino M0 on lowpowerlab site

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

        I have some STM32L1 chips in my basement which I got and promptly figured out the F1 had arduino support but not the L1. I see that the L1 is supported now. Gonna have to dig those back out.
        It would be interesting to drop it onto this board:
        https://www.openhardware.io/view/590/STM32-Sensor-V3

        NeverDieN F 3 Replies Last reply
        0
        • nagelcN nagelc

          I have some STM32L1 chips in my basement which I got and promptly figured out the F1 had arduino support but not the L1. I see that the L1 is supported now. Gonna have to dig those back out.
          It would be interesting to drop it onto this board:
          https://www.openhardware.io/view/590/STM32-Sensor-V3

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

          @nagelc Just how Arduino compatible are they? Is it fairly transparent, or do you end up studying the datasheet a lot to workaround incompatibilities?

          nagelcN 1 Reply Last reply
          0
          • nagelcN nagelc

            I have some STM32L1 chips in my basement which I got and promptly figured out the F1 had arduino support but not the L1. I see that the L1 is supported now. Gonna have to dig those back out.
            It would be interesting to drop it onto this board:
            https://www.openhardware.io/view/590/STM32-Sensor-V3

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

            @nagelc That would be interesting. Remember also that MySensors currently only supports STM32F1 without sleep mode. I'm running a modified version with sleep support, but since I could not make it generic enough, I never submitted it as an enhancement (can be found here: github, 2.2.0 only)

            I still have a few prototype boards available but don't have enough time to progress much in the near future. If you would like a few boards (PCB only, not fully assembled) for experimenting and testing I can send you a few provided shipping costs permit it. I would love to see them better supported. Drop me a PM if interested.

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

              It looks as though the entire line-up of the STML0 series is ultra low power when it comes to standby current.

              I think I'll be ordering the Discovery board: https://www.digikey.com/product-detail/en/STM32L0538-DISCO/497-14709-ND/4866483/?itemSeq=270107875 to get familiar with these chips.

              [Edit: Well, maybe I'll try the nucleo board instead (https://www.digikey.com/product-detail/en/stmicroelectronics/NUCLEO-L053R8/497-14710-ND/4866484), since it is supported by the stm32duino library. ]

              1 Reply Last reply
              0
              • NeverDieN NeverDie

                @nagelc Just how Arduino compatible are they? Is it fairly transparent, or do you end up studying the datasheet a lot to workaround incompatibilities?

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

                @neverdie Found my STM32L1 chips -- L151C8T6R. Looks like the STM32duino folks have some support for the L152, but don't list the L151, so I'm out of luck with these for now. The L0 and L4 seem to be more supported.

                1 Reply Last reply
                0
                • F freynder

                  @nagelc That would be interesting. Remember also that MySensors currently only supports STM32F1 without sleep mode. I'm running a modified version with sleep support, but since I could not make it generic enough, I never submitted it as an enhancement (can be found here: github, 2.2.0 only)

                  I still have a few prototype boards available but don't have enough time to progress much in the near future. If you would like a few boards (PCB only, not fully assembled) for experimenting and testing I can send you a few provided shipping costs permit it. I would love to see them better supported. Drop me a PM if interested.

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

                  @freynder I found MySensors after messing around with Moteino's, so I really like the idea of this board. The RFM69 let me cover my house without repeaters and just worked. Now, the NRF5 series is so amazing, but I admit my personal prejudice -- I keep wishing for something similar for the RFM world.

                  1 Reply Last reply
                  0
                  • nagelcN nagelc

                    I have some STM32L1 chips in my basement which I got and promptly figured out the F1 had arduino support but not the L1. I see that the L1 is supported now. Gonna have to dig those back out.
                    It would be interesting to drop it onto this board:
                    https://www.openhardware.io/view/590/STM32-Sensor-V3

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

                    @nagelc said in Is the 32-bit ATSAML10 the ATMEGA328P killer that we've been waiting for?:

                    I see that the L1 is supported now. Gonna have to dig those back out.

                    Are you referring to the official STM32 core provided by STM (github)?

                    AFAIK, MySensors currently only works with the unofficial one from Roger Clark (github) which is much more limited as far as supported mcu families go (good F1 support and limited F4).

                    A nice overview of cores can be found here.

                    YveauxY nagelcN 2 Replies Last reply
                    0
                    • F freynder

                      @nagelc said in Is the 32-bit ATSAML10 the ATMEGA328P killer that we've been waiting for?:

                      I see that the L1 is supported now. Gonna have to dig those back out.

                      Are you referring to the official STM32 core provided by STM (github)?

                      AFAIK, MySensors currently only works with the unofficial one from Roger Clark (github) which is much more limited as far as supported mcu families go (good F1 support and limited F4).

                      A nice overview of cores can be found here.

                      YveauxY Offline
                      YveauxY Offline
                      Yveaux
                      Mod
                      wrote on last edited by
                      #15

                      @freynder said in Is the 32-bit ATSAML10 the ATMEGA328P killer that we've been waiting for?:

                      AFAIK, MySensors currently only works with the unofficial one from Roger Clark

                      I'm using Blue Pills with stm32duino (https://github.com/stm32duino/Arduino_Core_STM32) and MySensors without problems.
                      Stm32duino also supports a number of STM32L variants.

                      http://yveaux.blogspot.nl

                      F 1 Reply Last reply
                      0
                      • YveauxY Yveaux

                        @freynder said in Is the 32-bit ATSAML10 the ATMEGA328P killer that we've been waiting for?:

                        AFAIK, MySensors currently only works with the unofficial one from Roger Clark

                        I'm using Blue Pills with stm32duino (https://github.com/stm32duino/Arduino_Core_STM32) and MySensors without problems.
                        Stm32duino also supports a number of STM32L variants.

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

                        @yveaux I stand corrected. I just tried compiling an example sketch and indeed no errors. Last time I tried I had compilation errors, but that may have been due to other factors then.

                        F 1 Reply Last reply
                        0
                        • F freynder

                          @nagelc said in Is the 32-bit ATSAML10 the ATMEGA328P killer that we've been waiting for?:

                          I see that the L1 is supported now. Gonna have to dig those back out.

                          Are you referring to the official STM32 core provided by STM (github)?

                          AFAIK, MySensors currently only works with the unofficial one from Roger Clark (github) which is much more limited as far as supported mcu families go (good F1 support and limited F4).

                          A nice overview of cores can be found here.

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

                          @freynder Yes. I had a Blue Pill with RFM69 working from stm32duino, but it has been a while.

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

                            It seems that blue pills are now cheaper than pro mini's: https://www.aliexpress.com/item/STM32F103C8T6-ARM-STM32-Minimum-System-Development-Board-Module-For-arduino-DIY-KIT-Sensing-Evaluation-for-Skiller/32839140960.html?spm=2114.search0604.3.21.5f1f5d6f9DVrT6&ws_ab_test=searchweb0_0,searchweb201602_2_10152_10065_10151_10344_10068_10130_5724113_10342_10547_10343_5724713_10546_10340_10341_10548_315_10545_10696_5724013_10084_531_10083_10618_5724313_10307_5724213_10059_100031_10103_5725013_10624_10623_10622_10621_10620_5724913,searchweb201603_55,ppcSwitch_7&algo_expid=39b863cc-b9e0-40b1-b7ad-1e800e717f83-6&algo_pvid=39b863cc-b9e0-40b1-b7ad-1e800e717f83&priceBeautifyAB=0

                            You can even put a USB bootloader onto them.

                            gohanG F 2 Replies Last reply
                            1
                            • NeverDieN NeverDie

                              It seems that blue pills are now cheaper than pro mini's: https://www.aliexpress.com/item/STM32F103C8T6-ARM-STM32-Minimum-System-Development-Board-Module-For-arduino-DIY-KIT-Sensing-Evaluation-for-Skiller/32839140960.html?spm=2114.search0604.3.21.5f1f5d6f9DVrT6&ws_ab_test=searchweb0_0,searchweb201602_2_10152_10065_10151_10344_10068_10130_5724113_10342_10547_10343_5724713_10546_10340_10341_10548_315_10545_10696_5724013_10084_531_10083_10618_5724313_10307_5724213_10059_100031_10103_5725013_10624_10623_10622_10621_10620_5724913,searchweb201603_55,ppcSwitch_7&algo_expid=39b863cc-b9e0-40b1-b7ad-1e800e717f83-6&algo_pvid=39b863cc-b9e0-40b1-b7ad-1e800e717f83&priceBeautifyAB=0

                              You can even put a USB bootloader onto them.

                              gohanG Offline
                              gohanG Offline
                              gohan
                              Mod
                              wrote on last edited by
                              #19

                              @neverdie so will it be able to run mysensors also in sleep mode? I got lost with all those chip codes

                              1 Reply Last reply
                              0
                              • NeverDieN NeverDie

                                It seems that blue pills are now cheaper than pro mini's: https://www.aliexpress.com/item/STM32F103C8T6-ARM-STM32-Minimum-System-Development-Board-Module-For-arduino-DIY-KIT-Sensing-Evaluation-for-Skiller/32839140960.html?spm=2114.search0604.3.21.5f1f5d6f9DVrT6&ws_ab_test=searchweb0_0,searchweb201602_2_10152_10065_10151_10344_10068_10130_5724113_10342_10547_10343_5724713_10546_10340_10341_10548_315_10545_10696_5724013_10084_531_10083_10618_5724313_10307_5724213_10059_100031_10103_5725013_10624_10623_10622_10621_10620_5724913,searchweb201603_55,ppcSwitch_7&algo_expid=39b863cc-b9e0-40b1-b7ad-1e800e717f83-6&algo_pvid=39b863cc-b9e0-40b1-b7ad-1e800e717f83&priceBeautifyAB=0

                                You can even put a USB bootloader onto them.

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

                                @neverdie said in Is the 32-bit ATSAML10 the ATMEGA328P killer that we've been waiting for?:

                                You can even put a USB bootloader onto them.

                                plus debug using Black Magic Probe or stlink + OpenOCD

                                1 Reply Last reply
                                1
                                • F freynder

                                  @yveaux I stand corrected. I just tried compiling an example sketch and indeed no errors. Last time I tried I had compilation errors, but that may have been due to other factors then.

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

                                  @freynder said in Is the 32-bit ATSAML10 the ATMEGA328P killer that we've been waiting for?:

                                  @yveaux I stand corrected. I just tried compiling an example sketch and indeed no errors. Last time I tried I had compilation errors, but that may have been due to other factors then.

                                  I'm revisiting this as I tried to compile a sketch today using the official STM32 core (https://github.com/stm32duino/Arduino_Core_STM32 v1.3)

                                  I realize now I tested with the wrong core as it is a bit confusing in Arduino IDE. Please see the screenshot below which boards menu should be selected (highlighted the selected board).

                                  0_1535733869475_scrshot.png image url)

                                  When I select this core, the sketch will not compile because the ARDUINO_ARCH_STM32F1 flag is not set.

                                  @Yveaux and @nagelc : can you confirm you actually used this core? The core named "STM32 Boards (stm32duino.com)" is Roger Clarks core, not the official STM32 core one. Easily confused as the github user name for the official STM32 core is stm32duino.

                                  nagelcN YveauxY 2 Replies Last reply
                                  0
                                  • F freynder

                                    @freynder said in Is the 32-bit ATSAML10 the ATMEGA328P killer that we've been waiting for?:

                                    @yveaux I stand corrected. I just tried compiling an example sketch and indeed no errors. Last time I tried I had compilation errors, but that may have been due to other factors then.

                                    I'm revisiting this as I tried to compile a sketch today using the official STM32 core (https://github.com/stm32duino/Arduino_Core_STM32 v1.3)

                                    I realize now I tested with the wrong core as it is a bit confusing in Arduino IDE. Please see the screenshot below which boards menu should be selected (highlighted the selected board).

                                    0_1535733869475_scrshot.png image url)

                                    When I select this core, the sketch will not compile because the ARDUINO_ARCH_STM32F1 flag is not set.

                                    @Yveaux and @nagelc : can you confirm you actually used this core? The core named "STM32 Boards (stm32duino.com)" is Roger Clarks core, not the official STM32 core one. Easily confused as the github user name for the official STM32 core is stm32duino.

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

                                    @freynder I have changed computers since then, but I suspect you are right. I found it through the STM32duino site, but it didn't look like your screen shot. I don't recall seeing "series" after STM32F103. I can double check when I get home next week.

                                    1 Reply Last reply
                                    0
                                    • F freynder

                                      @freynder said in Is the 32-bit ATSAML10 the ATMEGA328P killer that we've been waiting for?:

                                      @yveaux I stand corrected. I just tried compiling an example sketch and indeed no errors. Last time I tried I had compilation errors, but that may have been due to other factors then.

                                      I'm revisiting this as I tried to compile a sketch today using the official STM32 core (https://github.com/stm32duino/Arduino_Core_STM32 v1.3)

                                      I realize now I tested with the wrong core as it is a bit confusing in Arduino IDE. Please see the screenshot below which boards menu should be selected (highlighted the selected board).

                                      0_1535733869475_scrshot.png image url)

                                      When I select this core, the sketch will not compile because the ARDUINO_ARCH_STM32F1 flag is not set.

                                      @Yveaux and @nagelc : can you confirm you actually used this core? The core named "STM32 Boards (stm32duino.com)" is Roger Clarks core, not the official STM32 core one. Easily confused as the github user name for the official STM32 core is stm32duino.

                                      YveauxY Offline
                                      YveauxY Offline
                                      Yveaux
                                      Mod
                                      wrote on last edited by Yveaux
                                      #23

                                      @freynder This is the one I used on the pills:

                                      0_1535869090473_3f0acb4b-6c16-4f8b-a264-e57e6816869d-image.png

                                      And the boards I've got installed:

                                      0_1535869195906_8c4f4fa2-e47f-4a11-a493-34168752e8a5-image.png

                                      http://yveaux.blogspot.nl

                                      F 1 Reply Last reply
                                      0
                                      • YveauxY Yveaux

                                        @freynder This is the one I used on the pills:

                                        0_1535869090473_3f0acb4b-6c16-4f8b-a264-e57e6816869d-image.png

                                        And the boards I've got installed:

                                        0_1535869195906_8c4f4fa2-e47f-4a11-a493-34168752e8a5-image.png

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

                                        @yveaux and @scalz

                                        Thanks for confirming. So only Clark's core is supported at the moment.

                                        It would be interesting to support the official STM32 core as they provide low power functions. I will do some experiments.

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

                                          Do any of the STM32's have anything similar to the Nordic nRF52's PPI (Programmable Peripheral Interconnect)? I assumed they would, but I just now went looking for it in the datasheet and didn't find it. Maybe STM32's call it something else? Or do they just not have anything similar? I thought it was a rather cool feature of the nRF52.

                                          H 1 Reply Last reply
                                          0
                                          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.1k

                                          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