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
How to watch the *pointer = array[10] in the debug WATCH windows
0
Keil
105
views
2
replies
Latest
5 days ago
by
Fovery
Answered
Send data through USB as a virtual COM
0
155
views
2
replies
Latest
5 days ago
by
javierrobledo
Not Answered
1us delay in low power mode
0
63
views
0
replies
Started
6 days ago
by
Murat plc
Suggested Answer
keil uVision mdk arm5.33 not showing the entire screen
0
301
views
4
replies
Latest
6 days ago
by
R.Kopsch
Suggested Answer
Undefined symbol Driver_USARTn (referred from usbd_user_cdc_acm_9.o)
0
617
views
5
replies
Latest
6 days ago
by
Andy Neil
<
>
View all questions in Keil forum