Hi, i am new to programming for the hc11/12, do you people know of a good tutorial for me to go through so i know how do the basics like read signals from...
HI there, For programming the HC11, I suggest getting the Motorola referance manuals for both the family and the specific Microcontroller you will use. For me...
Hi There, I've been able to get most things working on my F1 controller, however there is something bugging me. Some times the linker has an error undefined...
My suggestion would be to buy a hardware package that has good gnu support (like the IPAC ahem). The IPAC and probably some other boards provide functions to...
NZG
ngustavson@...
Jan 6, 2004 3:17 pm
3662
Hello. I am completely new to embedded systems programming (as well as using GNU), so please forgive my ignorance in these matters. However, I do have...
First, I think you should put this somewhere in the system include files: extern void* memcpy (void* to, const void* from, size_t len); It's standard library...
Hi wdollery, Can you send me "HELLO WORLD" program which you compiled using GCC. I am still trying. along with how to compile,link and running details. Thanx...
Hi U Hit Me, Actually the hello world example worked as advertised in the GEL examples "hello world tutorial". This was unusual as I'm using windows and...
... Almost certainly. It may be a banking thing. When I was playing around with memory.x in gel 1.5 I discovered that if I put the library functions in a...
NZG
ngustavson@...
Jan 7, 2004 3:12 pm
3668
Hi all! I got a question, it's just a little OT, it's about string handling in c. I just can't figure out how it's easy done. How can I truncate a string in...
How about strcpy(buf,&buf[1]); That should overwrite the old string with the old string offset by 1; It would be more efficient to write your own function, but...
NZG
ngustavson@...
Jan 7, 2004 6:42 pm
3671
Actually now that I think about it this might not work as technically strcpy strings aren't supposed to overlap, you may need to copy to a temp buffer or ...
NZG
ngustavson@...
Jan 7, 2004 6:50 pm
3672
P.S. what is this for? In every case I can think of too many implementations where this would be a good idea, but I don't know what your project is. NZG....
NZG
ngustavson@...
Jan 7, 2004 6:56 pm
3673
Thanks wayne, thanks NZG! Both your ideas made me think in the right direction, I now used sprintf(buf,"%s",&buf[1]); but the strncopy might work too, just...
Glad to help. good idea to use sprintf. P.S. Are you sure you really need to modify the string itself? Couldn't you just pass the &buf[1] directly to the...
NZG
ngustavson@...
Jan 7, 2004 8:19 pm
3675
... Wow, sprintf is a monster for such simple job. ... Just don't store the leading zero. -- 42Bastian...
HI Jeffs, Thanks for your reply, I have a couple of questions, I think I understand what you mean about the banking thing but I haven't looked into banking at...
... Typically linking configuration is done with a memory.x file residing within the same directory as your source. If you don't have one I'm guessing it's ...
NZG
ngustavson@...
Jan 8, 2004 3:13 pm
3678
It works best for me to find the right command line for gcc and other tools first. Later I can configure Makefile to send those commands. You say /lib/ is...
ave ... That's libgcc Jeff, the base libraries required for everything, remember when I was moving everything around in memory and the compiler couldn't link...
Nathan Gustavson
ngustavson@...
Jan 8, 2004 5:30 pm
3680
Yes, I realized the __div... functions are not in std libs. That's why we would really want to see the command lines used to generate the problem. Although I...
Hi! ... the compiler generates calls to memcpy when the block to copy is large (ie, reached some size). This function is provided by libgcc which is part of...
Hi Everybody, Thank you all for your replies, It seems that you all had something important to add to my solution. I can now compile the source and there is...
hey there, I'm new in the motorola world and my mission is to program a MC9S12DG128B. This is a 68HC12 kind a like. This µcontroller contains 1K register...
The EMAC IPAC uses a MC9S12DG128B. Many of the driver files in the project are proprietary and pre-compiled(they check for IPAC hardware), but the memory.x,...
NZG
ngustavson@...
Jan 9, 2004 4:40 pm
3686
I have one not tested, derived from DP256 chip. Note the vectors_addr could be changed depending on whether you have a bootloader or not (which comes with...
I'm not sure if anyone got my original request for help, so I'm sending
it again. Any help in this matter would be appreciated. Thanks,
John Steiger...