[EDIT]
Well actually, there is not much thing to do to compile with latest avr-g++, I do not know why I spent the whole morning on it ?! Reparsing the forum and the github commits does not give much clue that it has been done already. As I suspected in my original post, I definitively missed something, sorry for the noise.
Anyway it seems that the sequence of instructions in the README.md file is sufficient:
git clone https://github.com/pichenettes/ambika
cd ambika
# in avrlib/makefile.mk edit avr-gcc path
git submodule update --init --recursive
make -f controller/makefile bin
make -f controller/makefile size
________________________________
/ ____ _ _ __ ____ __ \
| | ___|| || | / /_|___ \ / /_ |
| |___ \| || |_| '_ \ __) | '_ \ |
| ___) |__ _| (_) / __/| (_) | |
| |____/ |_| \___/_____|\___/ |
\ /
---------------------------------
\
\ \_\_ _/_/
\ \__/
(oo)\_______
(__)\ )\/\
||----w |
|| ||
Original post:
Hi,
following the work done by @machfour on avril for Midipal, I tested his modified avril with the Ambika firmware. I succeeded in compiling it with avr-g++ 9.1 (fresh from brew), and it seems to be working. I did very basic tests though, and @machfour did warn about potential remaining problems.
The nice thing about it is the size of the resulting binary:
Program: 52524 bytes (80.1% Full)
(.text + .data + .bootloader)
Data: 3796 bytes (92.7% Full)
(.data + .bss + .noinit)
text data bss dec hex filename
52474 50 3746 56270 dbce build/ambika_controller/ambika_controller.elf
This is smaller than with avr-gcc 4.x (by more than 9kb). And itās including the BCR-2000 DataRequest feature. Plenty of remaining space to cram more stuff, then⦠Still, since this outcome is somewhat surprising, I may have missed or overlooked something (?)
I need to clean up the sources before making them available on github. Meanwhile, if someone wants to test it, I attached the firmware to this messageā¦
cheers,
stƩphane
PS: I changed the name āparameterā for āmorphā in the osc section, as I was always confused with āparameterā when seeing it (after all, a lot of things are parameters in sound synthesis, I was always thinking about something more āmetaā though itās often related to the osc waveform with the Ambika)
AmBiCR.bin.zip (34.2 KB)