Skip to content

armcc:Why do I get an error when compiling nrl_push in the nrlthump.c file using the armcc compiler. #5974

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Wendy-Cao opened this issue Apr 26, 2020 · 2 comments

Comments

@Wendy-Cao
Copy link

Wendy-Cao commented Apr 26, 2020

Why do I get an error when compiling nrl_push in the nrlthump.c file using the armcc compiler.
the error is as follows:
line 43: Error: #549: variable "R0" is used before its value is set
"str r4,[r0,#12] \n"
line 43: Error: #549: variable "R4" is used before its value is set
"str r4,[r0,#12] \n"

How do I need to solve this problem.

@Wendy-Cao Wendy-Cao changed the title armcc:Why do I get an error when compiling nrl_push in the nrljump.c file using the armcc compiler. armcc:Why do I get an error when compiling nrl_push in the nrlthump.c file using the armcc compiler. Apr 26, 2020
@dpgeorge
Copy link
Member

It's most likely because of an old compiler version, or that armcc doesn't work well with the attributes and asm statement in that file. Try using arm-none-eabi-gcc.

@Wendy-Cao
Copy link
Author

This is because the version of armcc compiler I used is too old.The attribute is supported on Arm compiler 6 which is armclang compiler.The arm-none-eabi-gcc is ok.thank you very mach.

tannewt added a commit to tannewt/circuitpython that referenced this issue Feb 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants