2021-04-22 01:35 PM
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 :
What Is The Problem :expressionless_face: ?
2021-04-22 02:26 PM
>>What Is The Problem?
GNU/GAS has an entirely different syntax?
Why make fails, hard to know.
2021-04-23 12:10 AM
So what should I do ? any reference about this differences and how to change them to work ? any example ?
2021-04-23 01:07 AM
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 )