Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Thread

Absolute Vs. Relocatable object code and listings

Absolute Vs. Relocatable object code and listings

2006-05-20 by bobtransformer

Whatever happened to absolute code listings ? Are they a thing of the
past now ?

I notice that IAR EWARM and Freescale (Code Warrior/Code Terrorist)
generate relocatable object

output and relocatable listings with modules, functions, etc. all
starting at address 00000.

The simulators and emulators certainly show absolute code locations.

How do they (linkers) locate the executable at "upload time" ?

boB

PS... And why is it that my posts don't always show up on yahoo groups ?
Is this a moderated group ?





[Non-text portions of this message have been removed]

Re: Absolute Vs. Relocatable object code and listings

2006-05-20 by jayasooriah

--- In lpc2000@yahoogroups.com, "bobtransformer" <bgudgel@...> wrote:

> Whatever happened to absolute code listings ? Are they a thing of the
> past now ?

The compiler generates relocatable object modules.  Thus the listing
it generates only shows relative addresses.

Most simulators and emulators depend on debug symbols in the
relocatble object modules which are invariably generated by the
compiler itself.

> The simulators and emulators certainly show absolute code locations.

You can disassemble the output of the linker to produce a listing with
absolute addresses.

> How do they (linkers) locate the executable at "upload time" ?

Linker combines relocatable objects to produce the final image at link
time.  This final image is loaded by the simulator/emulator

Re: [lpc2000] Absolute Vs. Relocatable object code and listings

2006-05-20 by Tom Walsh

bobtransformer wrote:

>Whatever happened to absolute code listings ? Are they a thing of the
>past now ?
>  
>
Not sure what you are running, but I get absolute org'ed listings with 
gcc.  Turn on the following options and you will get an .lss file that 
is a complete listing of your entire project:

CFLAGS += -Wa,-adhlns=$(<:.c=.lst)

>boB
>
>PS... And why is it that my posts don't always show up on yahoo groups ?
>Is this a moderated group ?
>
>  
>
Naw, apparently just a crippled list server.  So, don't feel that you 
are being singled out, it will discard anyones mail with impunity.  
Sending or receiving, it will sometimes even drop / lock your entire 
account...

TomW

-- 
Tom Walsh - WN3L - Embedded Systems Consultant
http://openhardware.net, http://cyberiansoftware.com
"Windows? No thanks, I have work to do..."
----------------------------------------------------

Help with virtual com port with gnu

2006-05-20 by Erick Damasceno

Hi people,

I'm new in this forum and i would like to know if anyone here have succed porting the keil virtual com port code for the gnu. I saw a post from bertrik saying that he made this happen, but i want de codes to understand everything. If anyone can help, thanks

Erick
                                                 Microcontrollers                                       Microprocessor                                       Intel microprocessors                                                                 
      
---------------------------------
   YAHOO! GROUPS LINKS 
 
    
    Visit your group "lpc2000" on the web.
    
    To unsubscribe from this group, send an email to:
 lpc2000-unsubscribe@yahoogroups.com
    
    Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 
 
    
---------------------------------
 
 
     

		
---------------------------------
 Abra sua conta no Yahoo! Mail - 1GB de espaço, alertas de e-mail no celular e anti-spam realmente eficaz. 

[Non-text portions of this message have been removed]

Re: Absolute Vs. Relocatable object code and listings

2006-05-20 by bobtransformer

--- In lpc2000@yahoogroups.com, Tom Walsh <tom@...> wrote:
>
> bobtransformer wrote:
> 
> >Whatever happened to absolute code listings ? Are they a thing of 
>>the past now ?
> >  
> Not sure what you are running, but I get absolute org'ed listings 
>with gcc.  

The ARM one is IAR 4.31A.  Got the same sort of output from Code 
Terrorist (for freescale non ARM uPs) which I was very happy to have
just un-installed from my PC, and then ridding my registry of the 
hundred plus settings CW leaves behind even after it is uninstalled.

I would just think that all good linkers these days would have the 
option of outputting complete org'd absolute located listings like
the AVR compiler I used to use (CVAVR) as well as older compilers.

Thanks for the insight  and the GCC insight as well.  Maybe I can
take the assembly output from and run it through the GCC assembler
if I need to.

BTW, I've just started this project using the LPC2103 and LPC2144
and am having a lot of fun so far.  It is working so far but
there is much to learn.

>>PS... And why is it that my posts don't always show up on yahoo 
>>groups ?
> Naw, apparently just a crippled list server.  So, don't feel that 
>you  are being singled out, it will discard anyones mail with 
>impunity.  Sending or receiving, it will sometimes even drop / lock 
>your entire  account...

Good. I feel much better about this then.  

Thanks again Tom and Jaysa.
boB


Turn on the following options and you will get an .lss file that 
> is a complete listing of your entire project:
> 
> CFLAGS += -Wa,-adhlns=$(<:.c=.lst)
> 
> >boB
> >
> >PS... And why is it that my posts don't always show up on yahoo 
groups ?
> >Is this a moderated group ?
> >
> >  
> >
> Naw, apparently just a crippled list server.  So, don't feel that 
you 
> are being singled out, it will discard anyones mail with impunity.  
> Sending or receiving, it will sometimes even drop / lock your 
entire 
Show quoted textHide quoted text
> account...
> 
> TomW
> 
> -- 
> Tom Walsh - WN3L - Embedded Systems Consultant
> http://openhardware.net, http://cyberiansoftware.com
> "Windows? No thanks, I have work to do..."
> ----------------------------------------------------
>

Re: [lpc2000] Help with virtual com port with gnu

2006-05-20 by Bertrik Sikken

Erick Damasceno wrote:
> I'm new in this forum and i would like to know if anyone here have
> succed porting the keil virtual com port code for the gnu. I saw a
> post from bertrik saying that he made this happen, but i want de
> codes to understand everything. If anyone can help, thanks

A list of the required changes is in this message:
http://groups.yahoo.com/group/lpc2000/message/12327

Examples:
* struct packing (usb.h)
typedef struct _USB_SETUP_PACKET {
needs to be changed into
typedef struct __attribute__ ((packed)) _USB_SETUP_PACKET {
(the other structures should receive similar changes)
* interrupt attribute
Interrupt service routine should be declared as follows (usbhw.h)
extern void  USB_ISR        (void) __attribute__ ((interrupt));
* porting functions that us __packed on left-hand-side (usbhw.c)
in USB_ReadEP, use the following in the for-loop
	dw = RX_DATA;
	*pData++ = dw >> 0;
	*pData++ = dw >> 8;
	*pData++ = dw >> 16;
	*pData++ = dw >> 24;
in USB_WriteEP, use the following in the for-loop
	TX_DATA = (pData[3] << 24) | (pData[2] << 16) | (pData[1] << 8) | pData[0];
	pData += 4;

Regards,
Bertrik

Re: [lpc2000] Help with virtual com port with gnu

2006-05-22 by Erick Damasceno

Bertrik,

Thanks a lot for all information that ou give to me. But i need another: When i try to compile the code, i receive a error in usbcore.c saying "invalid lvalue assignment" on the lines followed:

            (BYTE *)pD += (((USB_CONFIGURATION_DESCRIPTOR *)pD)->wTotalLength);

      (BYTE *)pD += pD->bLength;

In addition, several warnings are related on:

const void (* USB_P_EP[16]) (DWORD event) = {
  P_EP(0),
  P_EP(1),
  P_EP(2),
  P_EP(3),
  P_EP(4),
  P_EP(5),
  P_EP(6),
  P_EP(7),
  P_EP(8),
  P_EP(9),
  P_EP(10),
  P_EP(11),
  P_EP(12),
  P_EP(13),
  P_EP(14),
  P_EP(15),
};

 This warnings say "initialization from incompatible type". Can you help with this????

Sorry, because i'm newbie in arm, and i need to port this archive because my notebook don't have rs232 neither parallel port, so i really need this usb working.

Thanks,

Erick

Bertrik Sikken <bertrik@sikken.nl> escreveu:    Erick Damasceno wrote:
 > I'm new in this forum and i would like to know if anyone here have
 > succed porting the keil virtual com port code for the gnu. I saw a
 > post from bertrik saying that he made this happen, but i want de
 > codes to understand everything. If anyone can help, thanks
 
 A list of the required changes is in this message:
 http://groups.yahoo.com/group/lpc2000/message/12327
 
 Examples:
 * struct packing (usb.h)
 typedef struct _USB_SETUP_PACKET {
 needs to be changed into
 typedef struct __attribute__ ((packed)) _USB_SETUP_PACKET {
 (the other structures should receive similar changes)
 * interrupt attribute
 Interrupt service routine should be declared as follows (usbhw.h)
 extern void  USB_ISR        (void) __attribute__ ((interrupt));
 * porting functions that us __packed on left-hand-side (usbhw.c)
 in USB_ReadEP, use the following in the for-loop
       dw = RX_DATA;
       *pData++ = dw >> 0;
       *pData++ = dw >> 8;
       *pData++ = dw >> 16;
       *pData++ = dw >> 24;
 in USB_WriteEP, use the following in the for-loop
       TX_DATA = (pData[3] << 24) | (pData[2] << 16) | (pData[1] << 8) | pData[0];
       pData += 4;
 
 Regards,
 Bertrik
            

        SPONSORED LINKS   
                                                    Microcontrollers                                       Microprocessor                                       Intel microprocessors                                                                 
      
---------------------------------
   YAHOO! GROUPS LINKS 
 
    
    Visit your group "lpc2000" on the web.
    
    To unsubscribe from this group, send an email to:
 lpc2000-unsubscribe@...m
    
    Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 
 
    
---------------------------------
 
 
     

		
---------------------------------
 Abra sua conta no Yahoo! Mail - 1GB de espaço, alertas de e-mail no celular e anti-spam realmente eficaz. 

[Non-text portions of this message have been removed]

Re: [lpc2000] Help with virtual com port with gnu

2006-05-22 by Erick Damasceno

Bertrik,

If you have a msn user, tell me your account, and we can resolve my problem, if this dont "piece you off". 

Thanks again

Erick

		
---------------------------------
 Abra sua conta no Yahoo! Mail - 1GB de espaço, alertas de e-mail no celular e anti-spam realmente eficaz. 

[Non-text portions of this message have been removed]

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.