Oct 02, 2021
10:21 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Oct 02, 2021
10:21 AM
Hi Team,
I am working on TC397 for my current project. I need to use tricore-ld for generating elf file.
The same source code, when I compile using tricore-g++, the structure is placed at 4 Bytes aligned address.
If I use tricore-ld, the alignment is not proper and it is placing the structure at an odd address, which is resulting into a CPU trap and application crash.
I have tried the option of ALIGN(4) in the linker script, but no luck.
Could you please provide a way of achieving proper alignment of data in dsram using tricore-ld.
Regards,
Srikanth Vemula.
I am working on TC397 for my current project. I need to use tricore-ld for generating elf file.
The same source code, when I compile using tricore-g++, the structure is placed at 4 Bytes aligned address.
If I use tricore-ld, the alignment is not proper and it is placing the structure at an odd address, which is resulting into a CPU trap and application crash.
I have tried the option of ALIGN(4) in the linker script, but no luck.
Could you please provide a way of achieving proper alignment of data in dsram using tricore-ld.
Regards,
Srikanth Vemula.
- Tags:
- auric tc3xx
- IFX
0 Replies