XMC4800 linker warning

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
User7921
Level 3
Level 3
I just received my first XMC4800 Relax Kits but I can't create a working project.

The debugger stopps immediately in the unhandled interrupt handler before anything in startup is processed.

Even with a plain project without any apps.

See my post http://www.infineonforums.com/threads/3563-Default-Handler-disrupting-FreeRTOS-program?p=10483&viewf...

Could it be caused by this linker warning?
e:/davev4/dave-4.1.4/eclipse/arm-gcc-49/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/bin/ld.exe:../linker_script.ld:135: warning: memory region `SRAM_combined' not declared


The linker file looks very different at this section, compared to the 4500 linker file.

Can anybody provide a working XMC4800 project for testing purposes?

Any help is appreciated.

Michael
0 Likes
7 Replies
chismo
Employee
Employee
First like received
Hello Michael,

There are example codes available for XMC4800 on the webpage for the Relax kit:
http://www.infineon.com/cms/en/product/evaluation-boards/KIT_XMC48_RELAX_ECAT_V1/productType.html?pr...

Can you check if these work for you?

Regards,
Min Wei
0 Likes
User7921
Level 3
Level 3
Hello Min Wei,

thank you for the feedback, I'll test these.

I solved my problem temporally by adding a region "SRAM_combined" manually to the project's memory settings, but I'm not sure about the perfect size...;)
It's the first time you guys defined a "combined" region in the linker file.

Michael
0 Likes
User7921
Level 3
Level 3
Hello Min Wei,

same problem with the LED blinky project.
Can't run or debug and same warning when linking.

I'm using DAVE 4.1.4

Michael
0 Likes
chismo
Employee
Employee
First like received
Hello Michael,

You are right, the problem is with the linker script missing the SRAM_combined declaration.
To fix this, can you add the line highlighted in red, bold to the linker script file?

Meanwhile I will request the relevant team to fix this in the DAVE4 tool.


MEMORY
{
FLASH_1_cached(RX) : ORIGIN = 0x08000000, LENGTH = 0x200000
FLASH_1_uncached(RX) : ORIGIN = 0x0C000000, LENGTH = 0x200000
PSRAM_1(!RX) : ORIGIN = 0x1FFE8000, LENGTH = 0x18000
DSRAM_1_system(!RX) : ORIGIN = 0x20000000, LENGTH = 0x20000
DSRAM_2_comm(!RX) : ORIGIN = 0x20020000, LENGTH = 0x20000
SRAM_combined(!RX) : ORIGIN = 0x1FFE8000, LENGTH = 0x58000
}



Have a Merry X'mas and Happy New Year!

Thanks, and Kind Regards,
Min Wei
0 Likes
Not applicable
chrismo: This still isn't fixed, and Dave keeps on removing this from my linker-script. I haven't found a way to reproduce it reliably. It seems to be related to activating a project, but I'm not sure. Is there any ETA for a fix?
0 Likes
chismo
Employee
Employee
First like received
Hello,

My understanding is that this has been fixed.

May I know what is the linker script version that you see? Also which DAVE version are you using?
Mine is v1.2 2016-03-08 and DAVE4.2.4 respectively.

Regards,
Min Wei
0 Likes
Not applicable
Hey,

this happened to linker-scriptd that came with the webserver- and the opc-ua-server-demo for the XMC4700/4800.
The linker script is v1.1 2015-09-03
And I'm using Dave 4.2.4.
But why is Dave messing with my nicely working linker script? Also Dave just removes that specific line.

Thanks for the quick answer, by the way.
0 Likes