I've already got my APrinter firmware running on this. :)
There were some mysterious problems with the ADC, even though I was using the exact same code as on AT91SAM3X8E. After some experimentation I concluded that the hardware must be broke. So I looked into the errata and there it was:
I hacked around it by setting up the ISR to trigger whenever a conversion is complete (as opposed to when the conversion of the last channel is complete). The ADC seems to be working after this. I should note that this erratum only applies to Rev A of the chip, which is what I have on the board, not Rev B.
Quick commands to try it out (Linux, maybe OS X):
To be able to upload, you need to short the erase jumper and remove it, then run the upload command above. When uploading is finished, press the reset button to start the program. You can then connect with Pronterface.
I have not hooked it up to a 3D printer, but I see no reason it wouldn't work.
P.S. @Mallgan.O Please make up a name for your board ;)
There were some mysterious problems with the ADC, even though I was using the exact same code as on AT91SAM3X8E. After some experimentation I concluded that the hardware must be broke. So I looked into the errata and there it was:
Quote
45.2.2.3 ADC: Trigger Launch Only One Conversion
A start command initiates a conversion sequence of one channel, but not of all activated channels as expected.
Problem Fix/Workaround
Send as many start commands as the number of activated channels, or use the free run mode.
I hacked around it by setting up the ISR to trigger whenever a conversion is complete (as opposed to when the conversion of the last channel is complete). The ADC seems to be working after this. I should note that this erratum only applies to Rev A of the chip, which is what I have on the board, not Rev B.
Quick commands to try it out (Linux, maybe OS X):
git clone [github.com] cd aprinter ./build.sh mlab install ./build.sh mlab build ./build.sh mlab upload
To be able to upload, you need to short the erase jumper and remove it, then run the upload command above. When uploading is finished, press the reset button to start the program. You can then connect with Pronterface.
I have not hooked it up to a 3D printer, but I see no reason it wouldn't work.
P.S. @Mallgan.O Please make up a name for your board ;)