cancel
Showing results for 
Search instead for 
Did you mean: 

Help for porting from MDK to CubeIDE

Chao
Senior

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.

Chao_0-1759943091532.png

2. The size of the binary is not correct (88 bytes for an LWIP application is imppossible)

Chao_1-1759943354135.png

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

1 REPLY 1
TDK
Super User

Are all *.c files within directories marked as Source Locations?

TDK_0-1759947730245.png

 

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.

If you feel a post has answered your question, please click "Accept as Solution".