ΣSigmaStudio Ask AI Русский Log in

ADSP-215XX initialization code

Processors & DSP gshekerov@luxoft.com Nov 25, 2019 00:00 2 replies Original on forum ↗
Subscribe
gshekerov@luxoft.com Question
Nov 25, 2019 00:00

Any how to build the 215xx_init_Core1 ?

I've added

#define CONFIG_DMC0 Micron_2Gb_DDR2_MT47H128M16
#define CONFIG_DMC1 DMC_NONE
#define CONFIG_CORE_CLOCK_SPEED 450000000u
//#error CONFIG_ macro definitions required

to src/configure.h

Then it can not find <sys\adi_stack.h>. If I force to use the ARM\arm-none-eabi\arm-none-eabi\include\adi\sys\adi_stack.h (which I can guess is not the right one)

than

[Error li1021] The following symbols referenced in processor 'SC5XX_CORE1' could not be resolved:
'__lib_prog_term [___lib_prog_term]' referenced from 'libc.dlb[xexit.doj]'

Linker finished with 1 error
cc3089: fatal error: Link failed (code:1)
make: *** [215xx_init_Core1.dxe] Error 1

Is there any clean instructions how to build inti code for 21573?

Thanks in advance

Goran

StuartS Reply
Nov 25, 2019 00:00

The overloaded_stacks.c source should be excluded from the 215xx_init_Core1 SHARC projects build as it's only needed for the Core0 ARM versions. I'm not sure why it is being built even though it does display as being excluded. I found that if you right click on overload_stacks.c, select properties then clear and re-select "Exclude resource from build" that the problem goes away. Could you try this?

Regards,
Stuart.

gshekerov@luxoft.com Reply
Nov 26, 2019 00:00

Thanks Stuart,

The same should be done for main.c and disable_mmu.S and it works

Best Regards

Goran