Search the web
Sign In
New User? Sign Up
gnu-m68hc11 · GNU 68HC11/HC12
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Messages 9382 - 9411 of 9418   Newest  |  < Newer  |  Older >  |  Oldest
Messages: Show Message Summaries   (Group by Topic) Sort by Date v  
#9411 From: Sebastien Kramm <sebastien.kramm@...>
Date: Wed Nov 25, 2009 9:49 am
Subject: Re: rebuilding and using the gel library [1 Attachment]
seb_kramm
Offline Offline
Send Email Send Email
 
said jello a écrit :
> Here a short version (text only) of the steps needed to rebuild and use
> the gel library under windows.
> I will have a full tutorial with screenshots and more explanations in
> the very near future.
> If anybody is having issues following these instructions, just let me know.

Thank you very much for sharing this work with us, I have no time no try it at
present, but I surely will need it in the future.
Let us know any update to this. How about uploading it to the "files" section of
the
group ?

#9410 From: said jello <sjellouli@...>
Date: Tue Nov 24, 2009 3:43 pm
Subject: Inline Assembly Question
sjellouli
Offline Offline
Send Email Send Email
 
Hi all,
I was wondering if this question was ever asked before, and if yes, where can I find the thread and answer:
How can I access a variable (local or global) when I am doing inline assembly?
I used ICCV7 from imagecraft before, and the syntax is straight forward:
for example:
void foo() {
    unsigned char myVar;
    asm("staa %myVar");
}
The contents of accumulator A will be saved into local variable myVar.
How can I do something similar when using gcc?

Thanks.


#9409 From: said jello <sjellouli@...>
Date: Tue Nov 24, 2009 12:07 pm
Subject: Re: rebuilding and using the gel library
sjellouli
Offline Offline
Send Email Send Email
 
Hi,
Can you please send me the other stdio files that are needed by printf and sprintf?
I will modify them to adapt them for the hcs12 MCU I am using.
Thanks a LOT!!!

--- On Tue, 11/24/09, Mike McCarty <Mike.McCarty@...> wrote:

From: Mike McCarty <Mike.McCarty@...>
Subject: Re: rebuilding and using the gel library
To: gnu-m68hc11@yahoogroups.com
Date: Tuesday, November 24, 2009, 2:45 AM

 

said jello wrote:

[...]

> I will stick with it because I generates code less than 3 K whereas gel generates over 13 K.
> That is close to an 80% reduction in size.
> Thanks for trying to help.

I went and pulled an old map, and using my SMALL C compiler, and
the assembly I wrote for stdio, the total package for printf()
comes to 916 bytes, if I did the computation right. That includes
the full formatter and its dependencies, printf() itself, fputc(),
and implementations of stdin, stderr, and stdout tied to the SCI port.
It does "hang and wait" style I/O, not interrupt driven, and is
not multithread safe, as it uses a single "put back" character for
stdin, and has no mutual exclusion on access to the SCI; it just
reads the status port.

Whether my SMALL C back end does a better or worse job of generating
code than does the gnu compiler, I don't know. However, I suspect it
can't be much better, and possibly much worse. You'd have to port the
stdio package to work with the assembler gnu uses, or get someone else
to do that. I'm not familiar with that assembler.

Also, if you are using the '12, there might be some differences in how
the SCI works. I'm not familiar with the '12, but my code definitely
works with the '11.

If you don't need stdin, stdout, stderr, rawin, and rawout (the files
supported by my stdio package), but just need sprintf() then it could be
cut back by the size of the stdio package I did. That's 76 bytes
(including the "put back" character).

Mike
--
p="p=%c%s%c; main(){printf( p,34,p,34) ;}";main( ){printf( p,34,p,34) ;}
Oppose globalization and One World Governments like the UN.
This message made from 100% recycled bits.
You have found the bank of Larn.
I speak only for myself, and I am unanimous in that!



#9408 From: Mike McCarty <Mike.McCarty@...>
Date: Tue Nov 24, 2009 8:45 am
Subject: Re: rebuilding and using the gel library
Mike.McCarty@...
Send Email Send Email
 
said jello wrote:

[...]

> I will stick with it because I generates code less than 3 K whereas gel
generates over 13 K.
> That is close to an 80% reduction in size.
> Thanks for trying to help.

I went and pulled an old map, and using my SMALL C compiler, and
the assembly I wrote for stdio, the total package for printf()
comes to 916 bytes, if I did the computation right. That includes
the full formatter and its dependencies, printf() itself, fputc(),
and implementations of stdin, stderr, and stdout tied to the SCI port.
It does "hang and wait" style I/O, not interrupt driven, and is
not multithread safe, as it uses a single "put back" character for
stdin, and has no mutual exclusion on access to the SCI; it just
reads the status port.

Whether my SMALL C back end does a better or worse job of generating
code than does the gnu compiler, I don't know. However, I suspect it
can't be much better, and possibly much worse. You'd have to port the
stdio package to work with the assembler gnu uses, or get someone else
to do that. I'm not familiar with that assembler.

Also, if you are using the '12, there might be some differences in how
the SCI works. I'm not familiar with the '12, but my code definitely
works with the '11.

If you don't need stdin, stdout, stderr, rawin, and rawout (the files
supported by my stdio package), but just need sprintf() then it could be
cut back by the size of the stdio package I did. That's 76 bytes
(including the "put back" character).

Mike
--
p="p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);}
Oppose globalization and One World Governments like the UN.
This message made from 100% recycled bits.
You have found the bank of Larn.
I speak only for myself, and I am unanimous in that!

#9407 From: Mike McCarty <Mike.McCarty@...>
Date: Tue Nov 24, 2009 8:07 am
Subject: Re: rebuilding and using the gel library
Mike.McCarty@...
Send Email Send Email
 
said jello wrote:
> Hi Mike,
> I haven't had any luck with your implementation of printf and friends.
> It seems that the main prpoblem is that it relies on the files
> stdioh, which means it won't compile without the gel library.

Well, it depends on having fputc(), if that's what you mean.
I can send you my implementation of stdout, stderr, stdin, and
fputc() if you like. They are all tied to the SCI port.

> I included the gel, and compiled your code, it came up to over 13 K,
> which is absolutely identical to what one would get with gel in the
> first place.

It's probably mostly in the other parts, then.

> I have found an extremely small and efficient implementation of
> printf and friends that relies on nothing else but stdarg.h.
> I will stick with it because I generates code less than 3 K whereas gel
generates over 13 K.
> That is close to an 80% reduction in size.
> Thanks for trying to help.
> Saeed

Mike
--
p="p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);}
Oppose globalization and One World Governments like the UN.
This message made from 100% recycled bits.
You have found the bank of Larn.
I speak only for myself, and I am unanimous in that!

#9406 From: said jello <sjellouli@...>
Date: Tue Nov 24, 2009 1:34 am
Subject: Re: rebuilding and using the gel library
sjellouli
Offline Offline
Send Email Send Email
 
Hi Mike,
I haven't had any luck with your implementation of printf and friends.
It seems that the main prpoblem is that it relies on the files stdioh, which means it won't compile without the gel library.
I included the gel, and compiled your code, it came up to over 13 K, which is absolutely identical to what one would get with gel in the first place.
I have found an extremely small and efficient implementation of printf and friends that relies on nothing else but stdarg.h.
I will stick with it because I generates code less than 3 K whereas gel generates over 13 K.
That is close to an 80% reduction in size.
Thanks for trying to help.
Saeed

--- On Mon, 11/23/09, Mike McCarty <Mike.McCarty@...> wrote:

From: Mike McCarty <Mike.McCarty@...>
Subject: Re: rebuilding and using the gel library
To: gnu-m68hc11@yahoogroups.com
Date: Monday, November 23, 2009, 10:00 AM

 

said jello wrote:
> Hi Mike,
> How do I include attachments then?

On list, you don't. If you are a member of the Yahoo!Group,
then there is a way to "upload" files into a files area,
which other members can see. I am not a member of any Yahoo!Group,
so I can neither upload nor view/download such files, so I
can't help you with that.

In this case, you could include the text in the body of your
message.

> Thanks for your help with printf, I REALLY appreciate your kindness and help.

You are welcome. I edited up the other one I sent you so it
compiles and runs with ANSI compilers, along with a make file
to build and do a rudimentary test of each format it supports.

> I found a printf that works fine and is very small, I will share with you if you are interested.

Sure!
> Have a GREAT week.

Mike
--
p="p=%c%s%c; main(){printf( p,34,p,34) ;}";main( ){printf( p,34,p,34) ;}
Oppose globalization and One World Governments like the UN.
This message made from 100% recycled bits.
You have found the bank of Larn.
I speak only for myself, and I am unanimous in that!



#9405 From: said jello <sjellouli@...>
Date: Mon Nov 23, 2009 4:27 pm
Subject: Re: rebuilding and using the gel library
sjellouli
Offline Offline
Send Email Send Email
 
Thanks a MILLION.
It's guys like you that make this group so useful to all of us.
Have a GREAT GREAT GREAT day!!!!!!!

--- On Mon, 11/23/09, Mike McCarty <Mike.McCarty@...> wrote:

From: Mike McCarty <Mike.McCarty@...>
Subject: Re: rebuilding and using the gel library
To: gnu-m68hc11@yahoogroups.com
Date: Monday, November 23, 2009, 10:00 AM

 

said jello wrote:
> Hi Mike,
> How do I include attachments then?

On list, you don't. If you are a member of the Yahoo!Group,
then there is a way to "upload" files into a files area,
which other members can see. I am not a member of any Yahoo!Group,
so I can neither upload nor view/download such files, so I
can't help you with that.

In this case, you could include the text in the body of your
message.

> Thanks for your help with printf, I REALLY appreciate your kindness and help.

You are welcome. I edited up the other one I sent you so it
compiles and runs with ANSI compilers, along with a make file
to build and do a rudimentary test of each format it supports.

> I found a printf that works fine and is very small, I will share with you if you are interested.

Sure!
> Have a GREAT week.

Mike
--
p="p=%c%s%c; main(){printf( p,34,p,34) ;}";main( ){printf( p,34,p,34) ;}
Oppose globalization and One World Governments like the UN.
This message made from 100% recycled bits.
You have found the bank of Larn.
I speak only for myself, and I am unanimous in that!



#9404 From: Mike McCarty <Mike.McCarty@...>
Date: Mon Nov 23, 2009 4:00 pm
Subject: Re: rebuilding and using the gel library
Mike.McCarty@...
Send Email Send Email
 
said jello wrote:
> Hi Mike,
> How do I include attachments then?

On list, you don't. If you are a member of the Yahoo!Group,
then there is a way to "upload" files into a files area,
which other members can see. I am not a member of any Yahoo!Group,
so I can neither upload nor view/download such files, so I
can't help you with that.

In this case, you could include the text in the body of your
message.

> Thanks for your help with printf, I REALLY appreciate your kindness and help.

You are welcome. I edited up the other one I sent you so it
compiles and runs with ANSI compilers, along with a make file
to build and do a rudimentary test of each format it supports.

> I found a printf that works fine and is very small, I will share with you if
you are interested.

Sure!
> Have a GREAT week.

Mike
--
p="p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);}
Oppose globalization and One World Governments like the UN.
This message made from 100% recycled bits.
You have found the bank of Larn.
I speak only for myself, and I am unanimous in that!

#9403 From: said jello <sjellouli@...>
Date: Mon Nov 23, 2009 1:55 pm
Subject: Re: Flash Programming
sjellouli
Offline Offline
Send Email Send Email
 
Hi Mike,
Exactly.
Most of the programs I used so far used a very simple memory.x that places the code in the RAM section of the HC12.
What I want now is a procedure, and potentially extra files, for writing a program that would be burned onto the flash so that a reset or power on would start the program.
Thanks again.
Saeed

--- On Mon, 11/23/09, Mike McCarty <Mike.McCarty@...> wrote:

From: Mike McCarty <Mike.McCarty@...>
Subject: Re: Flash Programming
To: gnu-m68hc11@yahoogroups.com
Date: Monday, November 23, 2009, 2:12 AM

 

said wrote:
> I have been away from 68hx MCUs for several years, but I am coming
> back, I used to program the HC11, I have made the transition to the
> HC12 now, but I have one little issue:

Welcome back!

> How do I program flash? I didn't mean to say "what tools" are needed to program flash.
> What I meant to say is: How does one set up a project to program the flash memory?

Are you asking "how to I set up the gnu-m68hc11 toolset" in order to
write a program which eventually gets stored in FLASH?

Mike
--
p="p=%c%s%c; main(){printf( p,34,p,34) ;}";main( ){printf( p,34,p,34) ;}
Oppose globalization and One World Governments like the UN.
This message made from 100% recycled bits.
You have found the bank of Larn.
I speak only for myself, and I am unanimous in that!



#9402 From: said jello <sjellouli@...>
Date: Mon Nov 23, 2009 1:53 pm
Subject: Re: rebuilding and using the gel library
sjellouli
Offline Offline
Send Email Send Email
 
Hi Mike,
How do I include attachments then?
Thanks for your help with printf, I REALLY appreciate your kindness and help.
I found a printf that works fine and is very small, I will share with you if you are interested.
Have a GREAT week.

--- On Mon, 11/23/09, Mike McCarty <Mike.McCarty@...> wrote:

From: Mike McCarty <Mike.McCarty@...>
Subject: Re: rebuilding and using the gel library
To: gnu-m68hc11@yahoogroups.com
Date: Monday, November 23, 2009, 2:08 AM

 

said jello wrote:
> Here a short version (text only) of the steps needed to rebuild and use the gel library under windows.
> I will have a full tutorial with screenshots and more explanations in the very near future.
> If anybody is having issues following these instructions, just let me know.

Attachments get stripped.

Mike
--
p="p=%c%s%c; main(){printf( p,34,p,34) ;}";main( ){printf( p,34,p,34) ;}
Oppose globalization and One World Governments like the UN.
This message made from 100% recycled bits.
You have found the bank of Larn.
I speak only for myself, and I am unanimous in that!



#9401 From: Mike McCarty <Mike.McCarty@...>
Date: Mon Nov 23, 2009 8:12 am
Subject: Re: Flash Programming
Mike.McCarty@...
Send Email Send Email
 
said wrote:
> I have been away from 68hx MCUs for several years, but I am coming
> back, I used to program the HC11, I have made the transition to the
> HC12 now, but I have one little issue:

Welcome back!

> How do I program flash? I didn't mean to say "what tools" are needed to
program flash.
> What I meant to say is: How does one set up a project to program the flash
memory?

Are you asking "how to I set up the gnu-m68hc11 toolset" in order to
write a program which eventually gets stored in FLASH?

Mike
--
p="p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);}
Oppose globalization and One World Governments like the UN.
This message made from 100% recycled bits.
You have found the bank of Larn.
I speak only for myself, and I am unanimous in that!

#9400 From: Mike McCarty <Mike.McCarty@...>
Date: Mon Nov 23, 2009 8:08 am
Subject: Re: rebuilding and using the gel library [1 Attachment]
Mike.McCarty@...
Send Email Send Email
 
said jello wrote:
> Here a short version (text only) of the steps needed to rebuild and use the
gel library under windows.
> I will have a full tutorial with screenshots and more explanations in the very
near future.
> If anybody is having issues following these instructions, just let me know.

Attachments get stripped.

Mike
--
p="p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);}
Oppose globalization and One World Governments like the UN.
This message made from 100% recycled bits.
You have found the bank of Larn.
I speak only for myself, and I am unanimous in that!

#9399 From: "said" <sjellouli@...>
Date: Sun Nov 22, 2009 9:56 pm
Subject: Flash Programming
sjellouli
Offline Offline
Send Email Send Email
 
I have been away from 68hx MCUs for several years, but I am coming back, I used
to program the HC11, I have made the transition to the HC12 now, but I have one
little issue:
How do I program flash? I didn't mean to say "what tools" are needed to program
flash.
What I meant to say is: How does one set up a project to program the flash
memory?
I have a working program I could modify and adjust to my needs, but I want to go
beyond this: I want to know what I need to do to program flash.
I know I have to set up the interrupts vector table, I think I do know how that
can be done.
The reason I am asking this is because so far I worked with projects that
generated .s19 hex files, but I have noticed that flash programs are .s29
I did some online research, but there's very little information on how to use
the gcc compiler for flash programming.
Can someone give me information on what's needed to generate flash programs?
Thanks

#9398 From: "leovasconcelosalves" <leovasconcelosalves@...>
Date: Sun Nov 22, 2009 12:42 pm
Subject: Newbie: GCC and P&E Micro BDM
leovasconcel...
Offline Offline
Send Email Send Email
 
Hi folks,

    I'm trying to build FreeRTOS "HCS12_GCC_banked Demo" and program the
MCS912DP256 on MC9S12DP256EVB board (http://tr.im/Fuo2). I have success on
building it (on ubuntu linux), but I could not program the microcontroller using
BDM Multilink Cable (http://tr.im/FunV) on Windows. Any tips?

Thanks!

#9397 From: said jello <sjellouli@...>
Date: Sat Nov 21, 2009 5:16 am
Subject: rebuilding and using the gel library
sjellouli
Offline Offline
Send Email Send Email
 
Here a short version (text only) of the steps needed to rebuild and use the gel library under windows.
I will have a full tutorial with screenshots and more explanations in the very near future.
If anybody is having issues following these instructions, just let me know.


1 of 1 File(s)


#9396 From: said jello <sjellouli@...>
Date: Fri Nov 20, 2009 3:08 pm
Subject: printf and friends
sjellouli
Offline Offline
Send Email Send Email
 
Hi all,
If anybody is interested by this, I finally figured out how to use printf and friends and yet end up with very small programs:
I tried the gcc and gel library, the smallest program I would end up that includes printf or its friends was 13K and up.
I tried codewarrior, I ended up with programs slightly better than gcc, small programs that use printf generated over 9K of executable files.
I tried the image craft compile, this one is a ilttle tricky because you can customize printf, the smallest and tiniest printf ended up with a little over 5k, but as soon as you include the full version of printf, then the code size goes up 4 or 5 folds.
I did some online research and found a tiny implementation of printf and friends, it beat the heck out of image craft compiler and other ones as well. My code ended up just a little less than 3 K, which is a record. It's true that it only supports a few data types, but still, for most of embedded applications that don't need flowting point display, this works beautifully.
I also was able to rebuild the gel library in windows XP. It's not an easy thing to do for someone that doesn't have a lot of experience with makefiles and the gcc compiler.
I am writing a full tutorial on what one can do to be able to rebuild the gel.
I struggled a lot in the past finding useable information in the past on how to rebuild the gel library.
Anybody interested in my solutions, just send me an email.



#9395 From: "Daniel O'Connor" <darius@...>
Date: Thu Nov 19, 2009 1:16 am
Subject: Re: sprintf needed
dariusmk2
Offline Offline
Send Email Send Email
 
On Thu, 19 Nov 2009, said jello wrote:
> Hi Mike,
> I just need a version that allows me to insert an integer inside a
> string. I don't need anything fancy that deals with formatting
> floating points or something similar. Just a small version of
> sprintf.
> If you could share your version of sprintf, that would be terrific.
> Thanks a LOT!!
> I appreciate your help.

If you are just turning an integer to a string you can do a simple hand
rolled version (especially if you can make certain assumptions about
sign, base, size, etc)

The smallest general purpose one I have used is in AVR libc, it has
several versions you can choose from at compile time.

13k isn't that bad for a printf really, especially if it has float
support. printf is a very complex beast!

--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
"The nice thing about standards is that there
are so many of them to choose from."
   -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C

#9394 From: Mike McCarty <Mike.McCarty@...>
Date: Thu Nov 19, 2009 12:57 am
Subject: Re: sprintf needed
Mike.McCarty@...
Send Email Send Email
 
said jello wrote:
> Hi Mike,
> I just need a version that allows me to insert an integer inside a string.

I've sent you (under separate cover) one which does this:

/*
** _Printf(int (*Func)(void *),void *FuncArg,const char *Format,va_list
Args)
** Called by fprintf(), printf(), and sprintf().
**
** Format has this syntax
**
**      Format              :: <empty> | Field | Format Field;
**      Field               :: OrdinaryChar | FormatDescriptor;
**      OrdinaryChar        :: [^%];
**      FormatDescriptor    :: '%' '%' | '%' ConversionDescriptor;
**      ConversionDescriptor :: Flags_opt Width_opt Precision_opt Size_opt
**          ConversionSpecifier;
**      Flags_opt           :: <empty> | Flag | Flags_opt Flag;
**      Flag                :: LeftJust | UseSign | UseSpace | AltConv |
Pad0;
**      LeftJust            :: '-';
**      UseSign             :: '+';
**      UseSpace            :: ' ';
**      AltConv             :: '#';
**      Pad0                :: '0';
**      Width_opt           :: <empty> | DecimalString | '*';
**      Precision_opt       :: <empty> | '.' DecimalString | '.' '*';
**      Size_opt            :: <empty> | 'h' | 'l' | 'L';
**      ConversionSpecifier :: CharSpec | StringSpec | DecimalSpec
**                           | BinarySpec | OctalSpec | UnsignedDecSpec
**                           | PointerSpec | HexadecimalSpec | NumberSpec;
**      CharSpec            :: 'c' | 'C';
**      StringSpec          :: 's' | 'S';
**      DecimalSpec         :: 'd' | 'i';
**      BinarySpec          :: 'b';
**      OctalSpec           :: 'o';
**      UnsignedDecimalSpec :: 'u';
**      PointerSpec         :: 'p';
**      HexadecimalSpec     :: 'x' | 'X';
**      NumberSpec          :: 'n';
*/

However, note that while it recognizes 'h', 'l', and 'L', it does
nothing with them. All numbers are expected to be 16 bit integers.

I also included the source for fprintf(), printf(),
sprintf(), vfprintf(), vprintf(), and vsprintf()
along with their helper functions to work with the formatter.

Hmm. It also needs atoi(). The version I have I wrote in assembler
for the MC6HC11, and it isn't compatible with the gnu toolset.
You'll have to come up with an atoi() which is compatible with the
one I wrote.

Mike
--
p="p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);}
Oppose globalization and One World Governments like the UN.
This message made from 100% recycled bits.
You have found the bank of Larn.
I speak only for myself, and I am unanimous in that!

#9393 From: said jello <sjellouli@...>
Date: Thu Nov 19, 2009 12:26 am
Subject: Re: sprintf needed
sjellouli
Offline Offline
Send Email Send Email
 
Hi Mike,
I just need a version that allows me to insert an integer inside a string.
I don't need anything fancy that deals with formatting floating points or something similar.
Just a small version of sprintf.
If you could share your version of sprintf, that would be terrific.
Thanks a LOT!!
I appreciate your help.

--- On Wed, 11/18/09, Mike McCarty <Mike.McCarty@...> wrote:

From: Mike McCarty <Mike.McCarty@...>
Subject: Re: sprintf needed
To: gnu-m68hc11@yahoogroups.com
Date: Wednesday, November 18, 2009, 6:14 PM

 

said jello wrote:
> Hi all,
> Anybody has a small version of sprintf that he/she is willing to share?

I've got one, but it's stripped down. What formats do you need to
support?

Mike
--
p="p=%c%s%c; main(){printf( p,34,p,34) ;}";main( ){printf( p,34,p,34) ;}
Oppose globalization and One World Governments like the UN.
This message made from 100% recycled bits.
You have found the bank of Larn.
I speak only for myself, and I am unanimous in that!



#9392 From: Mike McCarty <Mike.McCarty@...>
Date: Thu Nov 19, 2009 12:14 am
Subject: Re: sprintf needed
Mike.McCarty@...
Send Email Send Email
 
said jello wrote:
> Hi all,
> Anybody has a small version of sprintf that he/she is willing to share?

I've got one, but it's stripped down. What formats do you need to
support?

Mike
--
p="p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);}
Oppose globalization and One World Governments like the UN.
This message made from 100% recycled bits.
You have found the bank of Larn.
I speak only for myself, and I am unanimous in that!

#9391 From: said jello <sjellouli@...>
Date: Wed Nov 18, 2009 11:44 pm
Subject: sprintf needed
sjellouli
Offline Offline
Send Email Send Email
 
Hi all,
Anybody has a small version of sprintf that he/she is willing to share?
I just finished compiling the gel library ( I actually remembered how to do it after all these years), and as you all know, gel has libc included.
But even the smallest program I could come up with that uses sprintf came out with a little over 13 KB, yes, that's 13 KB for a very simple program.
I am using the Dragon12 board, and it doesn't have that much ram, I could use the 256 KB of flash rom that  it came with but I don't want to have to do that during program development.
I would appreciate it guys if anybody in this group has a small footprint sprintf they are willing to share.
Thanks.


#9390 From: said jello <sjellouli@...>
Date: Wed Nov 18, 2009 1:12 pm
Subject: Re: stdio functions
sjellouli
Offline Offline
Send Email Send Email
 
So printf is provided with the compiler?
I was always under the impression that: printf, sprintf... functions were not bundled with the m68hc11-gcc compiler.
I have downloaded and tried to rebuild the gel library. But I got an interesting error message: m68hc11-elf-gcc not found.
I have installed a package that provides the mchc1x gcc compiler, so I assumed that the m68hc11-elf-gcc compiler would be bundled with it.
Where did I go wrong?

--- On Tue, 11/17/09, Daniel O'Connor <darius@...> wrote:

From: Daniel O'Connor <darius@...>
Subject: Re: stdio functions
To: gnu-m68hc11@yahoogroups.com
Date: Tuesday, November 17, 2009, 7:56 PM

On Wed, 18 Nov 2009, said jello wrote:
> Can you guys tell me if the stdio functions are included in the hc1x
> compiler? I need to use sprintf to format a string and send it to an
> LCD. I tried compiling a very simple program using sprintf but I got
> a boat load of errors. I haven't used the hc1x gcc compiler in a very
> long while.
> I know that the gel library probably has those functions: printf,
> sprintf, ..etc, but I have never been very successful in building the
> gel library, let alone use it. If anybody in this group has a small
> version of the standard sprintf, I would appreciate it if you could
> share it with me. Thanks to all.

The compiler doesn't have *printf*, that's a libc thing (hence newlib).

--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
"The nice thing about standards is that there
are so many of them to choose from."
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C


#9389 From: "Daniel O'Connor" <darius@...>
Date: Wed Nov 18, 2009 1:56 am
Subject: Re: stdio functions
dariusmk2
Offline Offline
Send Email Send Email
 
On Wed, 18 Nov 2009, said jello wrote:
> Can you guys tell me if the stdio functions are included in the hc1x
> compiler? I need to use sprintf to format a string and send it to an
> LCD. I tried compiling a very simple program using sprintf but I got
> a boat load of errors. I haven't used the hc1x gcc compiler in a very
> long while.
> I know that the gel library probably has those functions: printf,
> sprintf, ..etc, but I have never been very successful in building the
> gel library, let alone use it. If anybody in this group has a small
> version of the standard sprintf, I would appreciate it if you could
> share it with me. Thanks to all.

The compiler doesn't have *printf*, that's a libc thing (hence newlib).

--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
"The nice thing about standards is that there
are so many of them to choose from."
   -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C

#9388 From: "said" <sjellouli@...>
Date: Wed Nov 18, 2009 1:33 am
Subject: sprintf and similar functions
sjellouli
Offline Offline
Send Email Send Email
 
Can you guys tell me if the stdio functions are included in the hc1x compiler?
I need to use sprintf to format a string and send it to an LCD.
I tried compiling a very simple program using sprintf but I got a boat load of
errors.
I haven't used the hc1x gcc compiler in a very long while.
I know that the gel library probably has those functions: printf, sprintf,
..etc, but I have never been very successful in building the gel library, let
alone use it.
If anybody in this group has a small version of the standard sprintf, I would
appreciate it if you could share it with me.
Thanks to all.

#9387 From: said jello <sjellouli@...>
Date: Wed Nov 18, 2009 1:32 am
Subject: stdio functions
sjellouli
Offline Offline
Send Email Send Email
 
Can you guys tell me if the stdio functions are included in the hc1x compiler?
I need to use sprintf to format a string and send it to an LCD.
I tried compiling a very simple program using sprintf but I got a boat load of errors.
I haven't used the hc1x gcc compiler in a very long while.
I know that the gel library probably has those functions: printf, sprintf, ..etc, but I have never been very successful in building the gel library, let alone use it.
If anybody in this group has a small version of the standard sprintf, I would appreciate it if you could share it with me.
Thanks to all.


#9386 From: "jsmcortina" <jsm@...>
Date: Mon Nov 16, 2009 4:02 pm
Subject: Re: USB Programmer? [2 Attachments]
jsmcortina
Offline Offline
Send Email Send Email
 
I'm not sure why people are suggesting the use of Codewarrior - this is a group
for discussing GCC after all.

I've not used the Softec BDM recently, but I have a little experience of the P&E
BDM.

A friend of mine wrote a kernel module for it and was able to do some things
through gdb. Unfortunately it is quite rough at present and he has not completed
the code.

However, if others would be able to use the code as a starting point, I might
persuade him to release it.

James

#9385 From: Philip Barnes <phil@...>
Date: Mon Nov 16, 2009 1:11 pm
Subject: Re: USB Programmer? [2 Attachments]
trigpointuk
Offline Offline
Send Email Send Email
 
On Mon, 2009-11-16 at 13:23 +0100, Eckhard Gosch wrote:
> Hello,
>
> does it ook like the one in the attached picture ?
>
> Then it is an InDart HCS12 from Softec Micro.
> You can download the Driver at Softecmicros hjomepage.
>
> I althoug added it here.
> When you have installed the driver it should be supported by Codewarrior
>
Thanks Eckhard
It is not that board, but similar.

However I was looking for a solution that does not involve codewarrior,
more a gnu-hc12 solution.

Thanks again
Phil

#9384 From: "Eckhard Gosch" <eckhard@...>
Date: Mon Nov 16, 2009 12:23 pm
Subject: Re: USB Programmer?
egoschde
Offline Offline
Send Email Send Email
 
Hello,

does it ook like the one in the attached picture ?

Then it is an InDart HCS12 from Softec Micro.
You can download the Driver at Softecmicros hjomepage.

I althoug added it here.
When you have installed the driver it should be supported by Codewarrior

Eckhard


----- original Nachricht --------

Betreff: USB Programmer?
Gesendet: Mo, 16. Nov 2009
Von: trigpointuk

 

I am just making a start with a softecmicro HCS12X Starter kit.

It has a USB to BDM interface which I have never come across before, dmesg identifies the interface as:

usb 1-3.3: new high speed USB device using ehci_hcd and address 7
usb 1-3.3: config 1 interface 0 altsetting 0 bulk endpoint 0x81 has invalid maxpacket 64
usb 1-3.3: config 1 interface 0 altsetting 0 bulk endpoint 0x1 has invalid maxpacket 64
usb 1-3.3: New USB device found, idVendor=1649, idProduct=0100
usb 1-3.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
usb 1-3.3: Product: uDART In-Circuit Debugger
usb 1-3.3: Manufacturer: SofTec Microsystems
usb 1-3.3: configuration #1 chosen from 1 choice

Do we have a method of programming this?



--- original Nachricht Ende ----

1 of 1 Photo(s)

1 of 1 File(s)


#9383 From: "trigpointuk" <phil@...>
Date: Mon Nov 16, 2009 11:46 am
Subject: USB Programmer?
trigpointuk
Offline Offline
Send Email Send Email
 
I am just making a start with a softecmicro HCS12X Starter kit.

It has a USB to BDM interface which I have never come across before, dmesg
identifies the interface as:

usb 1-3.3: new high speed USB device using ehci_hcd and address 7
usb 1-3.3: config 1 interface 0 altsetting 0 bulk endpoint 0x81 has invalid
maxpacket 64
usb 1-3.3: config 1 interface 0 altsetting 0 bulk endpoint 0x1 has invalid
maxpacket 64
usb 1-3.3: New USB device found, idVendor=1649, idProduct=0100
usb 1-3.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
usb 1-3.3: Product: uDART In-Circuit Debugger
usb 1-3.3: Manufacturer: SofTec Microsystems
usb 1-3.3: configuration #1 chosen from 1 choice

Do we have a method of programming this?

#9382 From: said jello <sjellouli@...>
Date: Mon Nov 9, 2009 3:14 pm
Subject: Re: (newbee) 9s12c32 PLL not working in run mode. egnu with provided startup code
sjellouli
Offline Offline
Send Email Send Email
 
Why are you using Freescale serial monitor if you are not planning on using codewarrior?
I would recommend using codewarrior that allows you background debugging mode.
We need to take a look at your code before we can help out.
In my opinion, you might be better off using codewarrior and take a look at the sample programs that come with it.
All of them start by setting the PLL properly before doing anything.

--- On Mon, 11/9/09, Rohan <rohan.cowley@...> wrote:

From: Rohan <rohan.cowley@...>
Subject: (newbee) 9s12c32 PLL not working in run mode. egnu with provided startup code
To: gnu-m68hc11@yahoogroups.com
Date: Monday, November 9, 2009, 6:02 AM

 

Hi

Im using a custom development board based around the 9s12c32 micro.

freescales sermon is loaded and i'm trying to use the PLL to keep the eclk at 24mHz in run mode. im using egnu gcc with the custom startup code for the 9s12c32 found in egnu/lib but as soon as i hit reset the eclk reverts to the starndard 1/2 osc freq 4mHz in my case. what am i doing wrong here?



Messages 9382 - 9411 of 9418   Newest  |  < Newer  |  Older >  |  Oldest
Advanced
Add to My Yahoo!      XML What's This?

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help