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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
11/27/07 15:39
Read: times


 
#147455 - Xlink from IAR with NEC chip
I am asked to work upon a project that invloves 16 bit processor from NEC i.e 784301. I have some problems with it. There is a memory overrun and the linker gives me the error message "Segment CODE is too long for the segment definition"

The processor has been used in the LOCATION 0 mode with the following settings of the .xcl file: -

-c78400 -!CPU type -!
-Z(CODE)INTVEC=004000-00403F -! Fixed segment -!
-Z(CODE)CONST,RCODE,CSTR,CCSTR,CDATA0,CDATA1,CDATA2,CODE,CDATA3, CDATA4=004040-00F6FF
-Z(DATA)IDATA0,UDATA0=00FE00-00FE7F -! Fixed segments -!
-Z(DATA)WRKSEG,IDATA1,UDATA1=00FD20-00FDFF -! Fixed segments -!
-Z(DATA)NO_INIT,IDATA2,UDATA2,ECSTR,WCSTR,TEMP,CSTACK+200=00F700-00FD1F
-Z(DATA)IDATA3,UDATA3,IDATA4,UDATA4=080000-087FF7
-Z(BIT)BITVARS=000000
-A cstartup
-C cl784l

I can not use the memory below 4000 since it is reserved for boot loader. The effective code
address that I get is around 47K according to the setting in line no. 3. The memory range between F700 - FFFF is for internal RAM and SFR. The flash in the system is 128K. I want to set the .xcl file in a way that I should be able to use the remainder of the flash.

Thanks in advance


List of 2 messages in thread
TopicAuthorDate
Xlink from IAR with NEC chip            01/01/70 00:00      
   Code in Far memory            01/01/70 00:00      

Back to Subject List