AnsweredAssumed Answered

Why ROM_LIB haven't linked or burned into .s19 file?

Question asked by 昊 吴 on Jul 26, 2016
Latest reply on Aug 1, 2016 by ZhangJennie

Hi

     I'm  working with bootloader, because of runtime library instead(eg. switch case, byte shift finally translate into _CASE_CHECKED_CODE, _BSHL...). I must separate APP and bootloader with rom library(normal library can't allocate address). Now, i create a bootloader rom library and link with app code, but there is no data in .s19 file..., help! Help! HELP!!!

 

snippet from project.map file:

*********************************************************************************************

SECTION-ALLOCATION SECTION

Section Name             Size  Type     From       To       Segment

---------------------------------------------------------------------------------------------

.init                                   49     R     0xC000     0xC030   ROM_C000

.startData                        10     R     0xC031     0xC03A   ROM_C000

.text                                  24     R     0xC03B     0xC052   ROM_C000

.copy                                2     R     0xC053     0xC054   ROM_C000

.stack                              256   R/W     0x3800     0x38FF   RAM

...

Summary of section sizes per section type:

READ_ONLY (R):          57 (dec:       87)

READ_WRITE (R/W):   100 (dec:      256)

NO_INIT (N/I):                 DE (dec:      222)

*********************************************************************************************

VECTOR-ALLOCATION SECTION

    Address     InitValue   InitFunction

---------------------------------------------------------------------------------------------

     0xFFFE        0xC029   _Startup

*********************************************************************************************

OBJECT-ALLOCATION SECTION

     Name               Module                 Addr   hSize   dSize     Ref    Section   RLIB

---------------------------------------------------------------------------------------------          

MODULE:                 -- rom.lib --

- PROCEDURES:

     UpdateEvent_AppPFlash           F577     46B    1131       1                 @

     MakeCrc_Tbl                                 FA73      45      69       1                 @

     CalcCrc_u16_Val                         FAB8      32      50       0                 @

- VARIABLES:

 

 

Thanks and regards

Outcomes