Anyone got a minimal makefile for building images for a minimus?
Ben Dooks, http://www.fluff.org/ben/ bjdooks@googlemail.com
Anyone got a minimal makefile for building images for a minimus?
Ben Dooks, http://www.fluff.org/ben/ bjdooks@googlemail.com
I use the one that comes with LUFA.On 20 December 2012 16:57, Ben Dooks bjdooks@googlemail.com wrote:
Anyone got a minimal makefile for building images for a minimus?
–
Ben Dooks, http://www.fluff.org/ben/ bjdooks@googlemail.com–
You received this message because you are subscribed to the Google Groups
"HAC:Manchester" group.
To post to this group, send an email to hacman@googlegroups.com.
To unsubscribe from this group, send email to
hacman+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/hacman?hl=en-GB.
I just wanted something simple. Got it working.
Is a 500kHz toggled output reasonable for a minimus 32k?On 20 December 2012 17:05, Bob Clough parag0n@ivixor.net wrote:
I use the one that comes with LUFA.
On 20 December 2012 16:57, Ben Dooks bjdooks@googlemail.com wrote:
Anyone got a minimal makefile for building images for a minimus?
–
Ben Dooks, http://www.fluff.org/ben/ bjdooks@googlemail.com–
You received this message because you are subscribed to the Google Groups
"HAC:Manchester" group.
To post to this group, send an email to hacman@googlegroups.com.
To unsubscribe from this group, send email to
hacman+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/hacman?hl=en-GB.–
You received this message because you are subscribed to the Google Groups
"HAC:Manchester" group.
To post to this group, send an email to hacman@googlegroups.com.
To unsubscribe from this group, send email to
hacman+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/hacman?hl=en-GB.
Ben Dooks, http://www.fluff.org/ben/ bjdooks@googlemail.com
I have attached the one I modified for virtualserial demo.
Barry Carter
| http://www.RobotFUZZ.com/ - Electronics and robotics store
| http://www.headFUZZ.co.uk/ - Robotics Projects
| http://www.OpenServo.org/ - Full featured servo upgradeOn Thu, Dec 20, 2012 at 5:05 PM, Bob Clough parag0n@ivixor.net wrote:
I use the one that comes with LUFA.
On 20 December 2012 16:57, Ben Dooks bjdooks@googlemail.com wrote:
Anyone got a minimal makefile for building images for a minimus?
–
Ben Dooks, http://www.fluff.org/ben/ bjdooks@googlemail.com–
You received this message because you are subscribed to the Google Groups
“HAC:Manchester” group.
To post to this group, send an email to hacman@googlegroups.com.
To unsubscribe from this group, send email to
hacman+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/hacman?hl=en-GB.–
You received this message because you are subscribed to the Google Groups “HAC:Manchester” group.
To post to this group, send an email to hacman@googlegroups.com.
To unsubscribe from this group, send email to hacman+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/hacman?hl=en-GB.
makefile (1.16 KB)
I just wanted something simple. Got it working.
There’s also my master makefile at
http://sourceforge.net/p/abavr/lib/ci/2e827cb326bb550e809437c7080ce493bc6c6ba9/tree/Makefile.master
Then I use this for a little USB serial demo program I wrote, and which
I keep meaning to put on SF as well:
MCU = atmega32u2
F_CPU = 16000000L
PROGRAMMER = dfu
INC_DIRS =
…/lib
…/lib/LUFA
LIB_DIRS =
…/lib/utils
…/lib/Task
…/lib/USBSerial
…/lib/LUFA/Drivers/USB/Core
…/lib/LUFA/Drivers/USB/Core/AVR8
…/lib/LUFA/Drivers/USB/Class/Device
EXTRA_FLAGS = -DBAUD_TOL=3
-DF_USB=$(F_CPU) -DUSE_LUFA_CONFIG_HEADER -DARCH=ARCH_AVR8
MONITOR_PORT = /dev/ttyACM0
MONITOR_BAUD = 115200
include …/lib/Makefile.master
Is a 500kHz toggled output reasonable for a minimus 32k?
Doing what? In a tight loop? The maximum possible bit-bang rate is
8MHz, so no, I don’t think it is. By default the Minimus fuses are set
to give a clock prescaler to 8, that looks like what is happening. Oh,
and the watchdog timer is also enabled by default.
See
http://sourceforge.net/p/abavr/lib/ci/2e827cb326bb550e809437c7080ce493bc6c6ba9/tree/utils/platform.c
for code to set them both up properly.
If you need versions of millis() and micros() for the Minimus, see
http://sourceforge.net/p/abavr/lib/ci/2e827cb326bb550e809437c7080ce493bc6c6ba9/tree/utils/clock.c
If you want to use the USART for printf() debugging while you fiddle
with the USB stuff, see
http://sourceforge.net/p/abavr/lib/ci/2e827cb326bb550e809437c7080ce493bc6c6ba9/tree/utils/serial.c
I also have some code to do USB CDC serial IO as well, so you can
printf(), scanf() etc over the USB port -
http://sourceforge.net/p/abavr/lib/ci/2e827cb326bb550e809437c7080ce493bc6c6ba9/tree/USBSerial/
Alan Burlison