Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
03/24/09 21:11
Read: times


 
#163822 - About Locate Function in C code
Responding to: ???'s previous message
In order to reach this goal, I planed to write a code iapUpdate and then
relocate it to somewhere else. However, when I tried to relocate it by
BL51, it just said "Can't find segment iapUpdate".

For those functions in assembly, We used the format as follows to define
the segment that we could locate by BL51:
in assembly code
; segments in this library
?PR?iap_read_manufacturer_id?RX2IAPLIB SEGMENT CODE
?PR?iap_read_device_id?RX2IAPLIB SEGMENT CODE

BL51
?PR?iap_read_manufacturer_id?RX2IAPLIB(0x4000),
?PR?iap_read_device_id?RX2IAPLIB(0x4100),

How could we do the same thing while we have a function called iapUpdate in C
part? Thanks.

List of 12 messages in thread
TopicAuthorDate
IAP on NXP P89V51RC2            01/01/70 00:00      
   Is the code located above 0x2000?            01/01/70 00:00      
      It didn't start from 0x2000h            01/01/70 00:00      
         This is the Linker's job            01/01/70 00:00      
            Linker works. But Erase and Program could work only half way            01/01/70 00:00      
               Boot loader            01/01/70 00:00      
               sawing the branch you are sitting on...            01/01/70 00:00      
                  Parts of a live application can be replaced with care            01/01/70 00:00      
                  Update Prgram using IAP            01/01/70 00:00      
                     Back to boot loader concept again            01/01/70 00:00      
                        About Locate Function in C code            01/01/70 00:00      
                           It worked finally            01/01/70 00:00      

Back to Subject List