Author |
Message |
emiz
Joined: May 16, 2018 Posts: 20 Location: germany
Audio files: 1
|
Posted: Wed Sep 05, 2018 7:07 pm Post subject:
Compile code for AVR Atmega48. Dredrum I need help. Subject description: Dredrum builders here? |
|
|
Hi
i bought a unoffical dredrum pcb from ebay..
the assembly was no problem.
but now i don´t know how to compile the code. the buran electrix site is down
i emailed the owner and he said he couldnt give me support because its an unofficial pcb not from his production.
on the github there is only a archive with 3 files dredrum.c 8bitsinetable.h and a make file.
could anybody tell me how to get a hex file from this archive. |
|
Back to top
|
|
|
Grumble
Joined: Nov 23, 2015 Posts: 1294 Location: Netherlands
Audio files: 30
|
Posted: Wed Sep 05, 2018 11:15 pm Post subject:
|
|
|
It would help a lot if you provide a link to the github you mention so one could have a look at the schematics and code.
With the little info you give there is nothing I can do for you. _________________ my synth |
|
Back to top
|
|
|
emiz
Joined: May 16, 2018 Posts: 20 Location: germany
Audio files: 1
|
Posted: Thu Sep 06, 2018 6:18 am Post subject:
|
|
|
Grumble wrote: | It would help a lot if you provide a link to the github you mention so one could have a look at the schematics and code.
With the little info you give there is nothing I can do for you. |
https://github.com/buranelectrix/dredrum
theres a avrisp 6 pole socket on the pcb |
|
Back to top
|
|
|
Grumble
Joined: Nov 23, 2015 Posts: 1294 Location: Netherlands
Audio files: 30
|
Posted: Thu Sep 06, 2018 1:43 pm Post subject:
|
|
|
first you need a program which is free to download, called Atmel Studio.
download it HERE
then start a new project and use the code from the github, compile and upload to your board.
for uploading you can use a tool like the avrisp or use an arduino to flash, but you have to google the howto.
btw I’m not a dredrum builder, just an atmel enthousiast... _________________ my synth |
|
Back to top
|
|
|
emiz
Joined: May 16, 2018 Posts: 20 Location: germany
Audio files: 1
|
Posted: Thu Sep 06, 2018 8:52 pm Post subject:
|
|
|
Grumble wrote:
first you need a program which is free to download, called Atmel Studio.
download it HERE
then start a new project and use the code from the github, compile and upload to your board.
for uploading you can use a tool like the avrisp or use an arduino to flash, but you have to google the howto.
btw I’m not a dredrum builder, just an atmel enthousiast...
thanks for the info. my internet pc is still running on windows xp, atmel studio 7 is not supportet by winxp, so i downloaded atmel studio 6.2.
now i can´t find the "compile" function i tried "save as" but i found nothing to save or convert the project as .hex file.
can you tell me which format do you use to upload the code to avr?
i got a "deek-robot usb-tinyisp" stick. Last edited by emiz on Thu Sep 06, 2018 8:59 pm; edited 1 time in total |
|
Back to top
|
|
|
Grumble
Joined: Nov 23, 2015 Posts: 1294 Location: Netherlands
Audio files: 30
|
Posted: Fri Sep 07, 2018 1:53 am Post subject:
|
|
|
Before compiling you have to do three things:
First change the line where it says:
#include "./8bit_q_sine.h" into: #include "8bit_q_sine.h" and copy 8bit_q_sine.h to the map where main.c is.
in the file 8bit_q_sine.h you have to change:
PROGMEM prog_char q_sine_table[] = { to PROGMEM const char q_sine_table[] = {
this is because prog_char is not used anymore.
There are two ways to compile and transfer the data, since I only have studio 7 I will upload some screenshots from this version, but I think they are quite similar.
Ok, once you have your project ready you can either click on Build >> Build Dredrum
Now the code is compiled, now click on the icon with the flash:
and a menu is opened:
Where you can set your processor, isp clock frequency etc.
If you read your device signature right you may proceed to clicking on Memories:
Just click on Program and that is it.
Another way of compiling and flashing is to click on the play button:
Description: |
|
Filesize: |
9.31 KB |
Viewed: |
8747 Time(s) |
|
Description: |
|
Filesize: |
12.5 KB |
Viewed: |
8747 Time(s) |
|
Description: |
|
Filesize: |
65.53 KB |
Viewed: |
313 Time(s) |
This image has been reduced to fit the page. Click on it to enlarge. |
|
Description: |
This is the hex file from Dredrum_Gate |
|
Download |
Filename: |
Dredrum.hex |
Filesize: |
7 KB |
Downloaded: |
428 Time(s) |
Description: |
This is the hex file for Dredrum_trig |
|
Download |
Filename: |
Dredrum.hex |
Filesize: |
6.88 KB |
Downloaded: |
396 Time(s) |
_________________ my synth |
|
Back to top
|
|
|
emiz
Joined: May 16, 2018 Posts: 20 Location: germany
Audio files: 1
|
Posted: Fri Sep 07, 2018 10:47 am Post subject:
|
|
|
Grumble wrote: | Before compiling you have to do three things:
First change the line where it says:
#include "./8bit_q_sine.h" into: #include "8bit_q_sine.h" and copy 8bit_q_sine.h to the map where main.c is.
in the file 8bit_q_sine.h you have to change:
PROGMEM prog_char q_sine_table[] = { to PROGMEM const char q_sine_table[] = {
this is because prog_char is not used anymore.
There are two ways to compile and transfer the data, since I only have studio 7 I will upload some screenshots from this version, but I think they are quite similar.
Ok, once you have your project ready you can either click on Build >> Build Dredrum
Now the code is compiled, now click on the icon with the flash:
and a menu is opened:
Where you can set your processor, isp clock frequency etc.
If you read your device signature right you may proceed to clicking on Memories:
Just click on Program and that is it.
Another way of compiling and flashing is to click on the play button:
|
Thank you so much
This is really helpfull
I´ll try it tonight with Atmel Studio 6.2, if it doesn´t work i have to download Atmel Studio 7 to my music pc who´s usually not online.
Thanks a lot |
|
Back to top
|
|
|
Grumble
Joined: Nov 23, 2015 Posts: 1294 Location: Netherlands
Audio files: 30
|
Posted: Fri Sep 07, 2018 2:05 pm Post subject:
|
|
|
you could try to use one of the hex files I provided _________________ my synth |
|
Back to top
|
|
|
emiz
Joined: May 16, 2018 Posts: 20 Location: germany
Audio files: 1
|
|
Back to top
|
|
|
Grumble
Joined: Nov 23, 2015 Posts: 1294 Location: Netherlands
Audio files: 30
|
|
Back to top
|
|
|
emiz
Joined: May 16, 2018 Posts: 20 Location: germany
Audio files: 1
|
Posted: Sun Sep 09, 2018 2:07 am Post subject:
|
|
|
Grumble wrote: | I have compiled it using the settings for an atmega48 (without the p)
But I don't know the meaning of your fuse settings:
So I can't tell really, could you make a screenshot of the fuse for the clock generation?
You should choose something like "external full swing crystal" and uncheck the fuse for low.ckdiv8, but make sure you leave high.spien CHECKED!!
HERE you could look at the calculation for the fuse settings. |
yeahah it finally works. thanks for your help .
used the fuse calcutor tried some values for full swing oscillator and unchecked clock divide by 8 and disabled internal oscillator output.
HUGE THANKS
|
|
Back to top
|
|
|
Grumble
Joined: Nov 23, 2015 Posts: 1294 Location: Netherlands
Audio files: 30
|
Posted: Sun Sep 09, 2018 2:28 pm Post subject:
|
|
|
your’e wellcome _________________ my synth |
|
Back to top
|
|
|
|