Other Parts Discussed in Thread: HALCOGEN
Tool/software: Linux
Hope this is the right place to post.
I want to create a setup for the Hercules RM48L952 MCU DevBoard on Linux(a Debian32Bit-Box) using the GNU-ARM toolchain with newlib (gcc-arm-none-eabi-5_4-2016q3 , from developer.arm.com/.../downloads ) , HALCoGen 04.06.00 (Project-Settings: RM48L952ZWT ; gcc toolchain) and a Lauterbach Power Debug Interface with a JTAG-CORTEX-A/R cable.
When I compile and link (with -Tsys_link.ld) the generated HALCoGen files to an elf-file and load it onto the hardware (with trace32 using data.load.elf), the entry point _c_int00 is correct. However, stepping forward does not even come to the first function _coreInitRegisters_() in _c_int00() (from sys_startup.c). Leading to a not working startup-routine with no access to the main().
So, my question is:
How should the HALCoGen gcc-files for RM48L952ZWT target be compiled and linked to create a working executable? (Independently from the chosen Debugger to load it onto the board.)
Here is a compile/link example of mine:
arm-none-eabi-gcc -v -fno-use-linker-plugin --verbose --specs=nosys.specs -Wl,--print-map -Wl,--cref -mlittle-endian -march=armv7-r -mfloat-abi=hard -mfpu=vfpv3-d16 -o all_test_arm_elf_gcc.elf -Wl,--start-group -T./startup_RM48L952-ZWT/source/sys_link.ld ./sys_main.o ./startup_RM48L952-ZWT/source/*.S -I./startup_RM48L952-ZWT/include ./startup_RM48L952-ZWT/source/*.o -Wl,--end-group
I know this is probably wrong. A correction with the proper compiler options and linking options would be greatly appreciated.
(As stated above, this is just about the HALCoGen files. For starters I only want to make it to the empty main().)
Also, if what I ask is not possible :
How does the setup from the below mentioned question (RM48x + HalcoGen +Code Composer Studio + GCC toolchain) work?
A short, but detailed guide on how to install and generate executable or where to find such a guide would be greatly appreciated.
Thanks in advance.