This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Compile error for core_cm3.c

I'm currently trialing the Keil uVision compiler V5 with the ST demo board MCBSTM32 (uses an STM32F103R8).

The Keil IDE indicates that a set of the inline assembler definitions are incorrect.

__ASM uint32_t __get_PSP(void)

__ASM void __set_PSP(uint32_t topOfProcStack)

__ASM uint32_t __get_MSP(void)

__ASM void __set_MSP(uint32_t mainStackPointer)

__ASM uint32_t __REV16(uint16_t value)

__ASM int32_t __REVSH(int16_t value)

Hovering the cursor over the error gives the message error: expected '(' after 'asm'


On my colleagues Windows 8 PC and my XP login this appears to produce no actual compile error.

Under my Windows 8 PC the file will not compile correctly due to the compiler being unable to write the '.o' file to the output folder.

Commenting out these definitions allows my version to compile.

Any idea why these definitions are being marked as incorrect? Is there some macro definition missing?

Why does it only cause a problem on my PC (or why doesn't it cause a problem on the others).

0