AnsweredAssumed Answered

How output a swc and nwc dyn files?

Question asked by walkercc on Dec 20, 2016
Latest reply on Jan 16, 2017 by walkercc

I'm use CCES can output a SWC dxe file, and then i use elf2dyn tool to convert dxe file to dyn file succesfully.

But when i change setting to NWC ,  I get the error message.

 

[Error li1130] "example.ldf":79 Input section of incompatible type detected in t
he output section 'ss4sh_code_a'
For more details, see 'linker_log.xml' in the output directory.

 

the linker_log.xml show 

following input section(s) type is incompatible:
libc.dlb[memset.doj](seg_pmco)
libcc.dlb[memcpy.doj](seg_pmco)
libc.dlb[memset.doj](seg_pmco)

 

I found visualdsp have name like "libc_nwc.dlb", but CCES just only one format lic.dlb file.

 

I tried many times, but it can't work , so I open sigmastudio for sharc 2.2.0 folder, and by ADI demo, 

use make file to do this work, 

 

makefile content:

include config.mk

C_SOURCES = A489OffchipDelay.c

LDF = example.ldf

VISA = ENABLE

MODULE = A489OffchipDelay

ENTRY_POINTS = -e _BPROCESS_A489OffchipDelay

 

config.mk content:

 

ifndef $(PROC)
PROC = ADSP21364
endif


ifndef $(VISA)
VISA = DISABLE
endif

 

ifeq ($(PROC),ADSP21364)
ifeq ($(VISA),ENABLE)
PROC = ADSP21469
PROCESSOR = ADSP-21469
VISA_FLAG = -swc
EXT = _swc
else
PROC = ADSP21364
PROCESSOR = ADSP-21364
EXT = _nwc
endif
else
PROC = ADSP21469
PROCESSOR = ADSP-21469
ifeq ($(VISA),ENABLE)
VISA_FLAG = -swc
EXT = _swc
else
VISA_FLAG = -nwc
EXT = _nwc
endif
endif

 

why VISA = ENABLE this define not work.? how define it can works. I use stupid way to change VISA define.

ifndef $(VISA)
VISA = ENABLE
endif

And it can output normal, but when i use VISA=DISABLE, it can only produce 21364 NWC .dxe. 

When i define PROC=ADSP21489, but it shwo error message .

[Error li1130] "example.ldf":79 Input section of incompatible type detected in t
he output section 'ss4sh_code_a'
For more details, see 'linker_log.xml' in the output directory.

Outcomes