Announce Thread: Magpie Modular - uBraids - Braids in 8 HP.

From circuitbending to homebrew stompboxes & synths, keep the DIY spirit alive!
Post Reply
User avatar
pld
Super Deluxe Wiggler
Posts: 1282
Joined: Thu Mar 05, 2015 5:15 am
Location: Germany
Contact:

Post by pld »

diablojoy wrote: the 8 MHz crystal is for the STM32
the 16mhz resonator is for the atmega328
Ok, that's probably the detail I missed by not actually building one: I scanned for '16MHz' in the BOM, but "16MHz resonator" != "16MHz quarz" and IIRC needs different fuses.
User avatar
gimber
Wiggling with Experience
Posts: 465
Joined: Wed May 27, 2015 11:46 am
Location: Angeles National Forest
Contact:

Post by gimber »

For those who used the FTDI Friend and Vagrant Environment to flash the firmware, did the programmer need to be defined, as mentioned in this link?

If so, are the commands available anywhere to specify an FTDI Friend instead of AVR/JTAG etc?

Do any traces need to be modified on the FTDI Friend for this to work?
User avatar
Southfork
Veteran Wiggler
Posts: 673
Joined: Mon Oct 06, 2014 12:55 pm

Post by Southfork »

gimber wrote:For those who used the FTDI Friend and Vagrant Environment to flash the firmware, did the programmer need to be defined, as mentioned in this link?

If so, are the commands available anywhere to specify an FTDI Friend instead of AVR/JTAG etc?

Do any traces need to be modified on the FTDI Friend for this to work?
Not for me at least, the tool chain looks for usb serial. Just do the upload serial command in vagrant. Most importantly don't forget to solder the 3v jumper on the ftdi friend.
User avatar
diablojoy
Super Deluxe Wiggler
Posts: 1624
Joined: Fri Jan 22, 2010 9:03 pm
Location: kiewa valley victorian alpine shire

Post by diablojoy »

Well physical build is done it didn't go perfectly oh yeah that STM is a bitch to do had to do a repair to pin 9 VDDA and luckily pin 10 WKUP isn't used the rest was easy enough, but we shall see. now for programming :lol:
the bit I actually dreaded most from the start. :bang:
It probably wont happen today but if it does it definitely wont go smoothly.
User avatar
$XxxxX$
Common Wiggler
Posts: 59
Joined: Thu Jun 23, 2016 3:43 am
Location: Basement/Warehouse

Post by $XxxxX$ »

phidelity wrote:
the next one I'm tackling is Frames.
Yesh! :sb:

double in a cart.
Last edited by $XxxxX$ on Sat Oct 01, 2016 7:10 am, edited 1 time in total.
"An error doesn't become a mistake until you refuse to correct it."
User avatar
gimber
Wiggling with Experience
Posts: 465
Joined: Wed May 27, 2015 11:46 am
Location: Angeles National Forest
Contact:

Post by gimber »

Southfork wrote: Not for me at least, the tool chain looks for usb serial. Just do the upload serial command in vagrant. Most importantly don't forget to solder the 3v jumper on the ftdi friend.
Thanks! That gets my FTDI talking to the module.

Now it gets though "Write 256 bytes at 0x8000000" to somewhere around "Write 256 bytes at 0x800E000" then gives these errors (it stops at a different point every time):
Traceback (most recent call last):
File "stmlib/programming/serial/stm32loader.py", line 428, in <module>
cmd.writeMemory(conf['address'], data)
File "stmlib/programming/serial/stm32loader.py", line 307, in writeMemory
self.cmdWriteMemory(addr, data[offs:offs+256])
File "stmlib/programming/serial/stm32loader.py", line 188, in cmdWriteMemory
self._wait_for_ack("0x31 programming failed")
File "stmlib/programming/serial/stm32loader.py", line 69, in _wait_for_ack
raise CmdException("No response to %s" % info)
__main__.CmdException: No response to 0x31 programming failed
make: *** [upload_combo_serial] Error 1
Tried on a mac (updated drivers per earlier in this thread) and windows, each the same. Anyone else run into this?
User avatar
ArguZ
Veteran Wiggler
Posts: 692
Joined: Sat Jun 06, 2015 7:03 am
Location: Copenhagen
Contact:

Post by ArguZ »

Any news on the display problem ?
I seen a video of someone flicking through the different modes and it acted much faster than mine.
I could not extract any useful information from him though,.
I wish the whole flashing process of the AVR would be a bit more documented.
By the way :
http://www.st.com/content/st_com/en/pro ... stm32.html
Nice GUI tool if you do not want to waste your life on command line stuff.
User avatar
gimber
Wiggling with Experience
Posts: 465
Joined: Wed May 27, 2015 11:46 am
Location: Angeles National Forest
Contact:

Post by gimber »

ArguZ wrote: By the way :
http://www.st.com/content/st_com/en/pro ... stm32.html
Nice GUI tool if you do not want to waste your life on command line stuff.
That worked, first try - thank you!
I now have audio, but seem to be having the same screen issue as qual: example sketches work, but the microbraids sketch throws a noise pattern onto the screen for a second then goes black.

I'm using the Sparkfun Pocket AVR programmer.
In Arduino I have set:
Board: Arduino Pro or Pro Mini
Processor: ATmega328 (5v, 16mhz)
Programmer: USBtinyISP
User avatar
phidelity
Common Wiggler
Posts: 131
Joined: Mon Sep 01, 2014 1:12 pm

Post by phidelity »

atte wrote:phidelity could you update the mouser BOM with the apparently missing parts as commented by qual, maybe check if other things are missing, and drop a line here afterwards?
Sorry, I've been pulled in a million directions at once in my life. I've been following this thread and updating the BOM as I see things that were incorrect.
User avatar
phidelity
Common Wiggler
Posts: 131
Joined: Mon Sep 01, 2014 1:12 pm

Post by phidelity »

Eric the Red wrote:Where did you get those shiny aluminum knobs for these?
I stole that from a Noise Engineering module. I have plans to source these and have my own version made - when my life calms down a little, but of course you need to make sizable purchase in the thousands.
User avatar
phidelity
Common Wiggler
Posts: 131
Joined: Mon Sep 01, 2014 1:12 pm

Post by phidelity »

greeensmaaan wrote:You are absolutely right... Not exactly sure how this qualifies as "Share Alike" :despair:
Sorry, I am a total github newb and I thought I had uploaded the proper files and unfortunately I didnt merge the branches. This should be corrected now.
User avatar
phidelity
Common Wiggler
Posts: 131
Joined: Mon Sep 01, 2014 1:12 pm

Post by phidelity »

ZZ Ardoz wrote:I'm running El Capitan and was having an issue with my FTDI Friend (that sounds so sad) timing out in the middle of a load, but cured this by updating the drivers at Prolific - here's the link

http://www.prolific.com.tw/US/ShowProduct.aspx?p_id=229&pcid=41

Hope that helps
I've had this issue when using the programmer through a USB hub, If you are using that definitely go straight from a port.
User avatar
phidelity
Common Wiggler
Posts: 131
Joined: Mon Sep 01, 2014 1:12 pm

Post by phidelity »

ArguZ wrote:Hi guys,

i just finished my first one and it is at 99% i think.
CV in and sound is all good, i uploaded my inverted encoder driver via aufio in, that is also good.
I flashed the 328 via Arduino IDE and i have a display but some parts of the letters seem to be unstable...fluctuating.
Solder error or firmware problem ?
The OLED also is kinda slow , from a personal point of view, not sure if that means anything.
-
Yeah the refresh rate is off on some of the ones I have built as well. Im in the middle of trouble shooting this and Should hopefully have a fix soon after I A/B it with working modules.
User avatar
phidelity
Common Wiggler
Posts: 131
Joined: Mon Sep 01, 2014 1:12 pm

Post by phidelity »

gimber wrote:
Southfork wrote: Not for me at least, the tool chain looks for usb serial. Just do the upload serial command in vagrant. Most importantly don't forget to solder the 3v jumper on the ftdi friend.
Thanks! That gets my FTDI talking to the module.

Now it gets though "Write 256 bytes at 0x8000000" to somewhere around "Write 256 bytes at 0x800E000" then gives these errors (it stops at a different point every time):
I had this problem when I was trying to flash over a USB hub. Plugging the programmer directly into a port on the computer solved this for me.
User avatar
phidelity
Common Wiggler
Posts: 131
Joined: Mon Sep 01, 2014 1:12 pm

Atmega Timing Woes

Post by phidelity »

Hi Guys,
Sorry to be absent in this thread. I think the main culprit can be partially blamed on the horrible documentation. I will be rewriting this with better instructions. Ive solved the display problem on my end with these steps.

Basically it was forgetting to burn the Bootloader before uploading the code. So here are the updated instructions for flashing from the Arduino app

1) Install your 3 arduino libraries
2) Install the library for your programmer of choice
3) Select Arduino / Geniuno Uno in board
4) Select your programmer
5) Burn Bootloader - (via Tools/Burn Bootloader) I Got an error about the fuse usage being deprecated - we will fix this but for now it seems to work
6) Upload via programmer

and Voila! Your screen should be updating at a much faster speed, if you have crazy lines or glitches then check downstream for bad joints.

I will be looking at the footprint issue and trying to find a proper chip or redoing the board in a future revision.
Last edited by phidelity on Mon Oct 03, 2016 6:48 am, edited 1 time in total.
User avatar
ArguZ
Veteran Wiggler
Posts: 692
Joined: Sat Jun 06, 2015 7:03 am
Location: Copenhagen
Contact:

Post by ArguZ »

phidelity wrote:
ArguZ wrote:Hi guys,

i just finished my first one and it is at 99% i think.
CV in and sound is all good, i uploaded my inverted encoder driver via aufio in, that is also good.
I flashed the 328 via Arduino IDE and i have a display but some parts of the letters seem to be unstable...fluctuating.
Solder error or firmware problem ?
The OLED also is kinda slow , from a personal point of view, not sure if that means anything.
-
Yeah the refresh rate is off on some of the ones I have built as well. Im in the middle of trouble shooting this and Should hopefully have a fix soon after I A/B it with working modules.
Hey, so you can confirm that this sounds like a software problem at this point ?
User avatar
Southfork
Veteran Wiggler
Posts: 673
Joined: Mon Oct 06, 2014 12:55 pm

Post by Southfork »

gimber wrote:
Southfork wrote: Not for me at least, the tool chain looks for usb serial. Just do the upload serial command in vagrant. Most importantly don't forget to solder the 3v jumper on the ftdi friend.
Thanks! That gets my FTDI talking to the module.

Now it gets though "Write 256 bytes at 0x8000000" to somewhere around "Write 256 bytes at 0x800E000" then gives these errors (it stops at a different point every time):
Traceback (most recent call last):
File "stmlib/programming/serial/stm32loader.py", line 428, in <module>
cmd.writeMemory(conf['address'], data)
File "stmlib/programming/serial/stm32loader.py", line 307, in writeMemory
self.cmdWriteMemory(addr, data[offs:offs+256])
File "stmlib/programming/serial/stm32loader.py", line 188, in cmdWriteMemory
self._wait_for_ack("0x31 programming failed")
File "stmlib/programming/serial/stm32loader.py", line 69, in _wait_for_ack
raise CmdException("No response to %s" % info)
__main__.CmdException: No response to 0x31 programming failed
make: *** [upload_combo_serial] Error 1
Tried on a mac (updated drivers per earlier in this thread) and windows, each the same. Anyone else run into this?
As I mentioned earlier for me the new drivers didn't solve the connection problem with ftdi and mcu. I've tried everything and think it is a fault with drivers under el Capistan. Still using brute force method and keep trying upload and eventually it's successful, not ideal but I'm only using ftdi on ubraids, the rest of the mutable builds I use jtag :(
User avatar
phidelity
Common Wiggler
Posts: 131
Joined: Mon Sep 01, 2014 1:12 pm

Post by phidelity »

ArguZ wrote:
phidelity wrote:
ArguZ wrote:Hi guys,

i just finished my first one and it is at 99% i think.
CV in and sound is all good, i uploaded my inverted encoder driver via aufio in, that is also good.
I flashed the 328 via Arduino IDE and i have a display but some parts of the letters seem to be unstable...fluctuating.
Solder error or firmware problem ?
The OLED also is kinda slow , from a personal point of view, not sure if that means anything.
-
Yeah the refresh rate is off on some of the ones I have built as well. Im in the middle of trouble shooting this and Should hopefully have a fix soon after I A/B it with working modules.
Hey, so you can confirm that this sounds like a software problem at this point ?
No, but what I can confirm is that if you don't burn your bootloader it will exhibit the slow refresh rate everyone is experiencing. I posted some instructions a few posts up and will be updating the build guide.
User avatar
phidelity
Common Wiggler
Posts: 131
Joined: Mon Sep 01, 2014 1:12 pm

Post by phidelity »

Southfork wrote:
gimber wrote:
Southfork wrote: Not for me at least, the tool chain looks for usb serial. Just do the upload serial command in vagrant. Most importantly don't forget to solder the 3v jumper on the ftdi friend.
Thanks! That gets my FTDI talking to the module.

Now it gets though "Write 256 bytes at 0x8000000" to somewhere around "Write 256 bytes at 0x800E000" then gives these errors (it stops at a different point every time):
Traceback (most recent call last):
File "stmlib/programming/serial/stm32loader.py", line 428, in <module>
cmd.writeMemory(conf['address'], data)
File "stmlib/programming/serial/stm32loader.py", line 307, in writeMemory
self.cmdWriteMemory(addr, data[offs:offs+256])
File "stmlib/programming/serial/stm32loader.py", line 188, in cmdWriteMemory
self._wait_for_ack("0x31 programming failed")
File "stmlib/programming/serial/stm32loader.py", line 69, in _wait_for_ack
raise CmdException("No response to %s" % info)
__main__.CmdException: No response to 0x31 programming failed
make: *** [upload_combo_serial] Error 1
Tried on a mac (updated drivers per earlier in this thread) and windows, each the same. Anyone else run into this?
As I mentioned earlier for me the new drivers didn't solve the connection problem with ftdi and mcu. I've tried everything and think it is a fault with drivers under el Capistan. Still using brute force method and keep trying upload and eventually it's successful, not ideal but I'm only using ftdi on ubraids, the rest of the mutable builds I use jtag :(
Can you confirm that you are NOT using a USB hub and programming directly from a port on the computer? I spent a while with the exact same issue and realize it stemmed from a USB hub.
User avatar
diablojoy
Super Deluxe Wiggler
Posts: 1624
Joined: Fri Jan 22, 2010 9:03 pm
Location: kiewa valley victorian alpine shire

Post by diablojoy »

Hi phidelity
can you list the correct fuse settings and clock setting for the atmega328
please
It probably wont happen today but if it does it definitely wont go smoothly.
User avatar
Southfork
Veteran Wiggler
Posts: 673
Joined: Mon Oct 06, 2014 12:55 pm

Post by Southfork »

phidelity wrote:
Southfork wrote:
gimber wrote:
Southfork wrote: Not for me at least, the tool chain looks for usb serial. Just do the upload serial command in vagrant. Most importantly don't forget to solder the 3v jumper on the ftdi friend.
Thanks! That gets my FTDI talking to the module.

Now it gets though "Write 256 bytes at 0x8000000" to somewhere around "Write 256 bytes at 0x800E000" then gives these errors (it stops at a different point every time):
Traceback (most recent call last):
File "stmlib/programming/serial/stm32loader.py", line 428, in <module>
cmd.writeMemory(conf['address'], data)
File "stmlib/programming/serial/stm32loader.py", line 307, in writeMemory
self.cmdWriteMemory(addr, data[offs:offs+256])
File "stmlib/programming/serial/stm32loader.py", line 188, in cmdWriteMemory
self._wait_for_ack("0x31 programming failed")
File "stmlib/programming/serial/stm32loader.py", line 69, in _wait_for_ack
raise CmdException("No response to %s" % info)
__main__.CmdException: No response to 0x31 programming failed
make: *** [upload_combo_serial] Error 1
Tried on a mac (updated drivers per earlier in this thread) and windows, each the same. Anyone else run into this?
As I mentioned earlier for me the new drivers didn't solve the connection problem with ftdi and mcu. I've tried everything and think it is a fault with drivers under el Capistan. Still using brute force method and keep trying upload and eventually it's successful, not ideal but I'm only using ftdi on ubraids, the rest of the mutable builds I use jtag :(
Can you confirm that you are NOT using a USB hub and programming directly from a port on the computer? I spent a while with the exact same issue and realize it stemmed from a USB hub.
Yes straight from the USB port (no hub), I've had this issue with using ftdi on all mutable builds on my Mac :(
User avatar
phidelity
Common Wiggler
Posts: 131
Joined: Mon Sep 01, 2014 1:12 pm

Post by phidelity »

diablojoy wrote:Hi phidelity
can you list the correct fuse settings and clock setting for the atmega328
please
I am not currently changing anything in the clock or fuse settings in order to flash the atmega. It *should* work right out of the box with the supplied instructions and the arduino app.
User avatar
ArguZ
Veteran Wiggler
Posts: 692
Joined: Sat Jun 06, 2015 7:03 am
Location: Copenhagen
Contact:

Post by ArguZ »

YYYESS !!

Now they work , crisp and stable

Let me post Kris's correct step by step guide

1) Install your 3 arduino libraries
2) Install the library for your programmer of choice
3) Select Arduino / Geniuno Uno in board
4) Select your programmer
5) Burn Bootloader - I Got an error about the fuse usage being deprecated - we will fix this but for now it seems to work
6) Upload via programmer

Without step 5 you end up having a sloppy one.
User avatar
greeensmaaan
Learning to Wiggle
Posts: 33
Joined: Wed Jan 30, 2013 2:41 pm
Location: LA

Post by greeensmaaan »

phidelity wrote:
greeensmaaan wrote:You are absolutely right... Not exactly sure how this qualifies as "Share Alike" :despair:
Sorry, I am a total github newb and I thought I had uploaded the proper files and unfortunately I didnt merge the branches. This should be corrected now.
No need to be sorry! I am sorry for coming off confrontational about the whole thing, I was just remembering the whole THC situation and was a bit skeptical... Glad to see you have gotten everything sorted and I am looking forward to building a few! :guinness:
User avatar
ZZ Ardoz
Veteran Wiggler
Posts: 515
Joined: Wed Sep 02, 2015 4:12 pm
Location: Los Angeles

Post by ZZ Ardoz »

ArguZ wrote:YYYESS !!

Now they work , crisp and stable

Let me post Kris's correct step by step guide

1) Install your 3 arduino libraries
2) Install the library for your programmer of choice
3) Select Arduino / Geniuno Uno in board
4) Select your programmer
5) Burn Bootloader - I Got an error about the fuse usage being deprecated - we will fix this but for now it seems to work
6) Upload via programmer

Without step 5 you end up having a sloppy one.
Hoorah!!!!! So snappy now - thanks a tone for this!
Post Reply

Return to “Music Tech DIY”