Question: ; Load Constant Definitions #include core _ cm 4 _ constants.s ; Load STM 3 2 L 4 7 6 xx Constants #include
; Load Constant Definitions
#include "corecmconstants.s
; Load STMLxx Constants
#include stmlxxconstants.s
; Green LED PA
LEDPIN EQU
AREA main, CODE, READONLY
EXPORT main ; make main visible to linker
ENTRY
main PROC
; Enable the clock to GPIO Port A
LDR rRCCBASE
LDR rr #RCCAHBENROFFSET
ORR r r # RCCAHBENRGPIOAENPos ; Enable GPIO Port A clock
STR rr #RCCAHBENROFFSET
; MODE: : Input mode, : General purpose output mode
; : Alternate function mode, : Analog mode reset state
LDR rGPIOABASE
LDR rr #GPIOMODEROFFSET
BIC r r # LEDPIN ; Clear mode bits for PA
ORR r r # LEDPIN ; Set mode bits to output for PA
STR rr #GPIOMODEROFFSET
; Set pin PA output data register to high to turn on the LED
LDR rr #GPIOODROFFSET
ORR r r # LEDPIN ; Set bit for PA
STR rr #GPIOODROFFSET
stop B stop ; dead loop & program hangs here
ENDP
ALIGN
AREA myData, DATA, READWRITE
ALIGN
array DCD
END why does it say invalid line start at the include lines
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
