Error building firmware

Hi,

i can not build the shruthi1 firmware as described on http://mutable-instruments.net/shruthi1/firmware. I get an make error: ‘prog_uint8_t’ does not name a type. I am using CrossPack on OSX. Do i need a resource other than the shruthi1 firmware code to successfully build the firmware?

There is a minor typo on http://mutable-instruments.net/shruthi1/firmware > Building the firmware> 3. “git submdodule init” should be “git submodule init”

did you point to the right path in the makefile.mk in the avrlib folder?
did you install python and numpy?

…i’m not a specialist on this … just started a few weeks ago but this is one of the things i had to find out how to do it

AVRLIB_TOOLS_PATH = /usr/local/CrossPack-AVR/bin/
AVRLIB_ETC_PATH = /usr/local/CrossPack-AVR/etc/
Python 2.7.2

PATH and python should be ok. I did not install numpy for now because it is only used for the stringtables / lookuptables / wavetable / simulations and i don’t want to change any of that.

Everything works fine until avr-g++ starts working on display.cc

./avrlib/op.h:538:11: error: ‘prog_uint8_t’ does not name a type
./avrlib/op.h:538:25: error: ISO C++ forbids declaration of ‘table’ with no type
./avrlib/op.h:542:11: error: ‘prog_uint8_t’ does not name a type
./avrlib/op.h:542:25: error: ISO C++ forbids declaration of ‘table’ with no type
In file included from ./avrlib/devices/hd44780_lcd.h:27:0,
from ./shruthi/display.h:24,
from shruthi/display.cc:20:

hmmm i remeber having trouble with crosspack too…
i used the arduino toolchain and that worked for me

AVRLIB_TOOLS_PATH = /Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/
AVRLIB_ETC_PATH = /Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/etc/

Ok. Compiling with the Arduino avr tools works fine. I think there is a problem with the CrossPack arv tools and the typedef’s in pgmspace.h. Thanks shiftr.