2025-10-08 10:47 AM
Hi
I am trying to port an example application from MDK to CubeIDE, the CubeIDE does not give me correct compilation result:
1. It completes the compilation when code contains syntax error and it produces binary. This is quite different from past experiences with CubeIDE.
2. The size of the binary is not correct (88 bytes for an LWIP application is imppossible)
3. The CubeMX does not generate startup code startup_stm32f767igtx.s
4. There's a warning: cannot find entry symbol Reset_Handler
5. MDK uses ARM compiler, therefore how to rewrite the following delarations in CubeIDE:
#if !(__ARMCC_VERSION >= 6010050) /* not AC6 compiler */
/* use AC5 compiler */
/* the following 3 declarations are reported syntax error by CubeIDE */
/* internal SRAM */
static __align(64) uint8_t mem1base[MEM1_MAX_SIZE]; /* external SDRAM */
static __align(64) uint8_t mem2base[MEM2_MAX_SIZE] __attribute__((at(0XC01F4000))); /* internal DTCM */
static __align(64) uint8_t mem3base[MEM3_MAX_SIZE] __attribute__((at(0X20000000)));
... ...
Thanks!
Chao
2025-10-08 11:23 AM
Are all *.c files within directories marked as Source Locations?
There is no GCC-equivalent for the "__attribute__((at(0XC01F4000)))" attribute. You can define a new section in the linker and place them in that section.