analogdevicesinc / VSCode-Maxim

VSCode project folders for the Analog Devices MSDK
https://github.com/Analog-Devices-MSDK/msdk
Other
24 stars 5 forks source link

how to add asm file in makefile #13

Closed xinshuwei closed 2 years ago

xinshuwei commented 2 years ago

Visual Studio Code version

C/C++ Extension version 1.11.4

Target microcontroller and evaluation platform MAX78000EVKIT

Describe the bug how to add asm file(.s asm file) in gcc project (edit makefile ?)

Jake-Carter commented 2 years ago

Use the SRCS variable just like C files, but you must use a capital .S file extension.

If you need to add any assembly flags to the build you can use the PROJ_AFLAGS variable, which is currently undocumented.

See Build Configuration for more details, and let me know if there's anything I can help clarify. I'll get some documentation added on the asm files - no one has needed it yet.

xinshuwei commented 2 years ago

Thanks replay image I have add .s file ,but have a lots of error

can you help me,thanks

xinshuwei commented 2 years ago

image asm code

Jake-Carter commented 2 years ago

The highlighted instructions are not valid ARM assembly. See the ARM Assembly official User Guide.

For example, pcm is not a valid ARM register. It looks like this code is ported from a different architecture?

xinshuwei commented 2 years ago

Thank you, i got it