Arduino M0 help

33 views
Skip to first unread message

Steve

unread,
Oct 31, 2024, 9:09:23 AM10/31/24
to UKHAS

I'm trying to port a HAB application that was originally written for the Arduino M0 to the pi pico

I'd like to get the project working on a Arduino M0 first and then step by step move it to the pico environment (having failed miserably to do it in a single jump). 

The problem is they don't make the Arduino M0 board any more.

First Q: has anyone got an Arduino M0 board that I could buy/beg/borrow/steal

Failing that: I purchased a HW-819 board which looks very similar to the M0 and is “compatible” with the Arduino Zero – The Zero and M0 have the same processor and pinout.

Second Q: is there any way to fool the Arduino programming environment that the board is a M0 ? At the moment the environment recognizes the board as a Zero and programming it as an M0 (or M0 pro) fails.

Steve G8KHW


Virus-free.www.avg.com

Sasha Tim

unread,
Oct 31, 2024, 2:12:20 PM10/31/24
to uk...@googlegroups.com
What's the error/debug log?

--
You received this message because you are subscribed to the Google Groups "UKHAS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ukhas+un...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/ukhas/1ad251c1-0ee6-4152-bcd3-ad70046c5eab%40randomaerospace.com.

Sasha Tim

unread,
Oct 31, 2024, 2:13:01 PM10/31/24
to uk...@googlegroups.com
Have you looked into using PlatformIO instead of Arduino IDE? It's much better (but more complicated) in general, but it still retains Arduino's hardware abstraction layer.

On Thu, Oct 31, 2024 at 9:09 AM Steve <st...@randomaerospace.com> wrote:
--

Sasha Tim

unread,
Oct 31, 2024, 4:07:10 PM10/31/24
to Steve, uk...@googlegroups.com
OK, so it looks like the programmer isn't responding. I would suspect that the Chinese manufacturers didn't burn the required bootloaders into the chip's memory. Fortunately, I think this can be fixed by having a physical programmer attached to the ISP header.

That being said, it could be that I'm entirely misdiagnosing the issue.

On Thu, Oct 31, 2024 at 3:55 PM Steve <st...@randomaerospace.com> wrote:

Thanks,

    The port come up as: COM6 (Arduino Zero (Native USB Port))

The board programs OK as: "Arduino Zero (Native USB Port)" - but fails with the following when programed as "Arduino M0"

avrdude: Version 6.3-20190619
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2014 Joerg Wunsch

         System wide configuration file is "C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.57.0_x86__mdqgnx93n4wtt\hardware\tools\avr/etc/avrdude.conf"

         Using Port                    : COM6
         Using Programmer              : stk500v2
         Overriding Baud Rate          : 57600
avrdude: ser_recv(): programmer is not responding
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: ser_recv(): programmer is not responding
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: ser_recv(): programmer is not responding
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: ser_recv(): programmer is not responding

...

and the same error if programmed as "Arduino M0 Pro (Narive USB Port)"

I'll look into PlatformIO - as I'm really not a fan of Arduino

    Steve G8KHW


On 31/10/2024 18:12, Sasha Tim wrote:
What's the error/debug log?

On Thu, Oct 31, 2024 at 9:09 AM Steve <st...@randomaerospace.com> wrote:

I'm trying to port a HAB application that was originally written for the Arduino M0 to the pi pico

I'd like to get the project working on a Arduino M0 first and then step by step move it to the pico environment (having failed miserably to do it in a single jump). 

The problem is they don't make the Arduino M0 board any more.

First Q: has anyone got an Arduino M0 board that I could buy/beg/borrow/steal


Failing that: I purchased a HW-819 board which looks very similar to the M0 and is “compatible” with the Arduino Zero – The Zero and M0 have the same processor and pinout.


Second Q: is there any way to fool the Arduino programming environment that the board is a M0 ? At the moment the environment recognizes the board as a Zero and programming it as an M0 (or M0 pro) fails.

Steve G8KHW


Virus-free.www.avg.com
--
You received this message because you are subscribed to the Google Groups "UKHAS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ukhas+un...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/ukhas/1ad251c1-0ee6-4152-bcd3-ad70046c5eab%40randomaerospace.com.
--
You received this message because you are subscribed to the Google Groups "UKHAS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ukhas+un...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages