Mechaduino servo - group-build?

FYI this is the EDU model of the segger. It’s a more affordable genuine unit for non commercial use. Still not cheap at $US60.

http://www.mouser.com/ProductDetail/Segger-Microcontroller/J-Link-EDU/

The fake $US15 jlink units from China are usually rendered unusable by the driver (although there are ways around this).

2 Likes

I think we should buy one of these for the space. There are enough of us programming chips that it’s handy to have.

Could you please re-upload this pdf -top.pdf, -bottom.pdf? Site reports it’s missing… ((

Mechaduino-bottom.pdf (120.1 KB)
Mechaduino-top.pdf (661.4 KB)

1 Like

I got this message on both files: Oops! That page doesn’t exist or is private.
Can u help me to obtain It?

Sorry, the server gophers are currently updating all the links… let me see if i can put it online elsewhere for the moment!

you can put it to my email :slight_smile: undef@inbox.ru. Thanks in advance!

Mechaduino-bottom.pdf (120.1 KB)
Mechaduino-top.pdf (661.4 KB)

thank u very much

Just wanted to document the process to burn a boot loader to a Mechaduino using a Black Magic Probe from 1Bitsy.

"The bmp is a JTAG and SWD Adapter used for programming and debugging ARM Cortex MCUs. Its the best friend of any ARM microcontroller developer.

Black Magic Probe gets rid of intermediate programs like OpenOCD or STLink server. This makes the operation faster and more reliable. You just open your GNU Debugger (GDB) and select the virtual com port offered by BMPM2 as your extended remote target."

My assumptions are that you have already installed the bmp and set up your arm-none-eabi-gdb toolchain. The ARM Toolchain setup is outside the scope of this post but there is lots of info available online.

Here is a handy youtube video tutorial on Setting up the BMP if you need some help with that.

Essentially you are connecting the bmp to your computer via with USB micro cable and then connecting the bmp to the Mechaduino with a 10pin .05 pitch ribbon cable. On the Mechaduino note that the orientation of pin one (the red side) points to the top of the board away from the USB micro connector. There are some male connectors at VHS if you need to solder these to your board. See the following pic.

You do not need to power your Mechaduino as the bmp supplies the voltage.

So once your connections are made you should grab a copy of the samd21_sam_ba.hex boot loader from github and drop this in some directory.

Next up is to fire up your debugger and pass it the name of the boot loader hex file.
You will be typing the line after ‘==============’

==============================================
MJs-Air-Ride:~/Documents/VHS/MechaduinoStuff/bootloader$ arm-none-eabi-gdb samd21_sam_ba.hex

GNU gdb (GNU Tools for ARM Embedded Processors) 7.10.1.20160616-cvs
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type “show copying”
and “show warranty” for details.
This GDB was configured as “–host=x86_64-apple-darwin10 --target=arm-none-eabi”.
Type “show configuration” for configuration details.
For bug reporting instructions, please see:
http://www.gnu.org/software/gdb/bugs/.
Find the GDB manual and other documentation resources online at:
http://www.gnu.org/software/gdb/documentation/.
For help, type “help”.
Type “apropos word” to search for commands related to “word”…
Reading symbols from samd21_sam_ba.hex…(no debugging symbols found)…done.

==============================================
(gdb) target extended-remote /dev/cu.usbmodem7BAD8791 (You will need to determine your port id)

Remote debugging using /dev/cu.usbmodem7BAD8791

==============================================
(gdb) monitor tpwr enable (allow the BMP to supply voltage to your board)

==============================================
(gdb) monitor swdp_scan (look for swp targets)

Target voltage: 3.3V
Available Targets:
No. Att Driver
1 Atmel SAMD21G18A (rev D)

==============================================
(gdb) attach 1 (attach to the first target)

Attaching to program: /Users/majicj/Documents/VHS/MechaduinoStuff/bootloader/samd21_sam_ba.hex, Remote target
0x00005294 in ?? ()

==============================================
(gdb) monitor erase_mass (erase everything - don’t have to do this if you don’t want to)

Erase successful!

==============================================
(gdb) load (burn the hex file to the flash)

Loading section .sec1, size 0x1968 lma 0x0
Start address 0x614, load size 6504
Transfer rate: 18 KB/sec, 929 bytes/write.

==============================================
(gdb) compare-sections (compare the flash to your file. These should match if everything went well)

Section .sec1, range 0x0 – 0x1968: matched.

That’s it you have now burned a boot loader. You should be able to program your Mechaduino using your Arduino IDE as you normally would.

There is a ton of more stuff that you can do with the debugger but that a topic for another post.

Mark

3 Likes

Hi All,

I am putting together 10 Mechaduino V2’s (including uploading bootloader for Arduino IDE) and I will probably have 5 or six left over. Who would be interested in buying these? I will only be covering costs and buyer pays shipping from Denmark. First come first serve.

Let me know.

Dylan

Thank you, how much does each cost? I would love 6 (six).

Hi @Rebel_without_Clause,

I am busy putting a cost together. Where do you live and what shipping option would you like?

Thanks,

Dylan

Shipping to one location would be the cheapest, so whoever is the buying the largest lot can ship it to their place.
Are you getting the boards manufactured or assembling them by buying PCBs and components?
My choice is this version:

Thanks,
RK

@Rebel_without_Clause,

I am assembling them by buying PCB’s and components, I already have the PCB’s. This is exactly what you’ll end up with, including magnet.

I have calculated the cost to be $38.5 per board plus shipping.

Thanks,

Dylan

Edit: Sorry, I wrote $36 per board, but forgot to add some taxes on this side.

At least six, will count the stepper motors I have and order couple of more (if you can spare).
Thanks,
RK

Okay, let me know how many you need and we’ll go from there. I have not put in the DigiKey order yet and PCB’s take a week to arrive, so we can make more if you need more/if there is more demand. Would not like to go over 20 though as I am hand assembling them.

I will take six for now.
Thanks,
RK

Okay, then that is the quota taken up then (unless someone is desperate). I’ll PM you with further details. Thanks!

I will pick up from you when you are at VHS (say open house or similar).
Best,
RK