I’ve got two CVPals and I’d like to be able to run them both off my laptop at once. In order to do that I need to give them unique USB device names by changing this line in usb_config.h:
#define USB_CFG_DEVICE_NAME ‘C’, ‘V’, ‘p’, ‘a’, ‘l’
… so that one is called, say, CVgal, and then I need to recompile and re upload the firmware. I couldn’t find any specific instructions on doing this for the CVPal so I’d like to document my progress here for others and maybe get some help along the way. I’m on a Mac, BTW.
First, from the Terminal, I run ‘git clone https://github.com/pichenettes/cvpal’ to make a local copy of the code.
From within the cvpal directory I run: ‘git pull origin master’ and then ‘git submodule init && git submodule update’ to get the required submodules.
On Olivier’s advice I’ve installed an older version of CrossPack (CrossPack-AVR-20100115.dmg) and avrdude. Now I go for a compile:
‘make -f cvpal/makefile’
This creates a ‘cvpal/build’ directory which contains a cvpal.hex - could this be success?! I will have to wait for my ISP programmer to arrive so I can try uploading it. I’ll post an update here.
Thanks, Olivier, for your help & advice.