cancel
Showing results for 
Search instead for 
Did you mean: 

assembly file works in keil but not working in stm32cubeide !

M N
Associate II

I have an assembly file which contains something like :

		AREA |.text|, CODE, READONLY, ALIGN=2
		THUMB 
		EXTERN currentPt
		EXPORT SysTick_Handler
		EXPORT osSchedulerLaunch
.
.
.
;some code here 
.
.
 
ALIGN
END

which compile and work in keil . but when I put this file in stm32cubeide it will go to 31% for compiling and then will stop :

0693W00000AMI5rQAH.jpgWhat Is The Problem :expressionless_face: ?

3 REPLIES 3

>>What Is The Problem?

GNU/GAS has an entirely different syntax?

Why make fails, hard to know.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
M N
Associate II

So what should I do ? any reference about this differences and how to change them to work ? any example ?

M N
Associate II

find out by adding these:

.syntax unified
.cpu cortex-m7
.fpu softvfp
.thumb

and changing function to something like this :

.section .text.osSchedulerLaunch
  .weak osSchedulerLaunch
.type osSchedulerLaunch, %function

it will compile if I remove "Systick_Handler" part of my assembly file the systick part is :

SysTick_Handler:         
    CPSID   I
.
.
.
.
    CPSIE   I
    BX      LR

what should I put before this function to get to work . ( when I add function attribute like osSchedulerLaunch it will hang on compiling again )