Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Minimus progress
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Alan Burlison  
View profile  
 More options Sep 29 2012, 7:09 pm
From: Alan Burlison <alan.burli...@gmail.com>
Date: Sun, 30 Sep 2012 00:09:15 +0100
Local: Sat, Sep 29 2012 7:09 pm
Subject: Minimus progress

I've got avr-libc stdio working with the Minimus, so if you have a
FTDI board you can wire it up to PORTD2 & PORTD3 and use it for
printf-style debugging:

    start_serial_baud(SERIAL_TEXT);
    char buf[IBUFSZ];
    while (1) {
        fgets(buf, sizeof(buf), stdin);
        printf("you typed %s", buf);
    }

--
Alan Burlison
--

  whoot.png
7K Download

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ben Dooks  
View profile  
 More options Sep 30 2012, 10:06 pm
From: Ben Dooks <bjdo...@googlemail.com>
Date: Mon, 1 Oct 2012 03:06:47 +0100
Local: Sun, Sep 30 2012 10:06 pm
Subject: Re: [HACMan] Minimus progress

How much code space does it use?

On Sep 30, 2012 12:09 AM, "Alan Burlison" <alan.burli...@gmail.com> wrote:

I've got avr-libc stdio working with the Minimus, so if you have a
FTDI board you can wire it up to PORTD2 & PORTD3 and use it for
printf-style debugging:

    start_serial_baud(SERIAL_TEXT);
    char buf[IBUFSZ];
    while (1) {
        fgets(buf, sizeof(buf), stdin);
        printf("you typed %s", buf);
    }

--
Alan Burlison
--

--
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 must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alan Burlison  
View profile  
 More options Oct 1 2012, 5:22 am
From: Alan Burlison <alan.burli...@gmail.com>
Date: Mon, 01 Oct 2012 10:22:48 +0100
Local: Mon, Oct 1 2012 5:22 am
Subject: Re: [HACMan] Minimus progress
On 01/10/2012 03:06, Ben Dooks wrote:

> How much code space does it use?

About 4k of flash and 240 bytes of sram.  Most of the code space is
taken up with the printf implementation from avr-libc, you can cut that
back if you just use puts/gets etc.  Most of the sram is the 160 bytes
used to hold the input and output line buffers, you can tune that back
as well.

If you are getting short of space there are a load of #defines you can
use to crank back the space the LUFA library uses by reducing menory
requirements and not compiling unneeded code (e.g. host-mode bits), see
http://www.fourwalledcubicle.com/files/LUFA/Doc/120730/html/_page__to...

Also, when I looked at the link Kimball sent out I noticed the USB
descriptors were being allocated in sram, I think you can move them into
flash using the PROGMEM attribute and setting the USE_FLASH_DESCRIPTORS
#define, I think I've seen that in some of the LUFA demos.

--
Alan Burlison
--


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alan Burlison  
View profile  
 More options Oct 3 2012, 12:03 pm
From: Alan Burlison <alan.burli...@gmail.com>
Date: Wed, 03 Oct 2012 17:03:33 +0100
Local: Wed, Oct 3 2012 12:03 pm
Subject: Re: [HACMan] Minimus progress
On 01/10/2012 03:06, Ben Dooks wrote:

> How much code space does it use?

I've restructured the code and I have some more accurate numbers on just
the serial part.  It uses 1060 bytes of flash and 210 bytes of sram.
the sram requirement can be reduced by using smaller IO buffers, the 210
includes 162 bytes of IO buffers (2 x 80+1 char buffers), that can be
adjusted down drastically if required.

I've put the code on SourceForge, https://sourceforge.net/p/abavr/lib
under the utils subdirectory.

--
Alan Burlison
--


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »