Arm Community
Site
Search
User
Site
Search
User
Groups
Arm Research
DesignStart
Education Hub
Graphics and Gaming
High Performance Computing
Innovation
Multimedia
Open Source Software and Platforms
Physical
Processors
Security
System
Software Tools
TrustZone for Armv8-M
中文社区
Blog
Announcements
Artificial Intelligence
Automotive
Healthcare
HPC
Infrastructure
Innovation
Internet of Things
Machine Learning
Mobile
Smart Homes
Wearables
Forums
All developer forums
IP Product forums
Tool & Software forums
Support
Open a support case
Documentation
Downloads
Training
Arm Approved program
Arm Design Reviews
Community Help
More
Cancel
Developer Community
Tools and Software
Software Tools
Jump...
Cancel
Software Tools
Keil forum
LPC845 - ARM Compiler V6 - Declaring and using constants in LP845_startup.s assembly code
Tools, Software and IDEs blog
Forums
Videos & Files
Help
Jump...
Cancel
New
State
Not Answered
Replies
0 replies
Subscribers
4 subscribers
Views
210 views
Users
0 members are here
Related
LPC845 - ARM Compiler V6 - Declaring and using constants in LP845_startup.s assembly code
Offline
SudeshS108
4 months ago
I am looking for an example with the Arm V6 compiler, for reading and writing
GPREG0 register of the PMU on the L
PC845.s?
Specifically, how do you do something like a #define in the assembly code with the ARM V6 compiler?
For the V5 compiler, I can do something like this:
DL_SIG_ADDR EQU 0x40020004 ; GPREG0 address is
0x40020004
And then use it in the assembly code like so, where I load the GPREG0 address into R1 and then I can read the contents of this register:
LDR R1, =DL_SIG_ADDR
LDR
R2
, [R
1
]
But for the V6 compiler, if I use the "EQU" instruction, I get a compiler error as follows:
Build started: Project: osr_boot_lpc845_brk
*** Using Compiler 'V6.14', folder: 'C:\Keil_v5\ARM\ARMCLANG\Bin'
Build target 'osr_app_lpc845_brk release'
startup/startup_LPC845.s(94): error: unexpected token in argument list
DL_SIG_ADDR EQU 0x40020004
^
assembling startup_LPC845.s...
"release\osr_boot_lpc845_brk.out" - 1 Error(s), 0 Warning(s).
Target not created.
Build Time Elapsed: 00:00:00
More questions in this forum
By title
By date
By reply count
By view count
By most asked
By votes
By quality
Descending
Ascending
All recent questions
Unread questions
Questions you've participated in
Questions you've asked
Unanswered questions
Answered questions
Questions with suggested answers
Questions with no replies
Not Answered
Output hex file size increased while compiling the same code in 5.33 from 4.54
0
172
views
4
replies
Latest
4 days ago
by
Palcoder
Not Answered
getting static local variable address with fromelf
0
62
views
0
replies
Started
5 days ago
by
eustaquio
Suggested Answer
BLDC motor intermittent start-up
0
111
views
1
reply
Latest
5 days ago
by
Andy Neil
Answered
S32K1 startup codes for V6.15 and V5.06 update 7
0
Arm Compiler 6
Arm Compiler
Arm Compiler 5
129
views
1
reply
Latest
5 days ago
by
ChenTang
Not Answered
internal command error
0
216
views
7
replies
Latest
5 days ago
by
Andy Neil
<
>
View all questions in Keil forum