Sysprogs forums › Forums › VisualGDB › How to use armclang.exe instead of armasm.exe
Tagged: Keil Clang Assembler
- This topic has 9 replies, 2 voices, and was last updated 3 years, 5 months ago by support.
-
AuthorPosts
-
January 20, 2021 at 06:40 #29803DanielFuchsParticipant
Hi,
we are using KEIL MDK 5.33 PRO, VisualGDB 5.5R4 (build 3920) and Visual Studio 2019 Pro at the moment.
For testing i’ve build an project via the “Embedded Project Wizard” for a STM32H743XIH6 and copied our existing files. Our startup-code is in a assembler file with gnu syntax and so i would like to use armclang.exe for it.
Our toolchain is “Keil ARMClang (Stand-alone) Version 6.15”.
How can i tell VisualGDB to use armclang.exe instead of the legacy armasm.exe?
Kind regards
Daniel
- This topic was modified 3 years, 10 months ago by DanielFuchs.
Attachments:
You must be logged in to view attached files.January 21, 2021 at 20:17 #29814supportKeymasterHi,
No problem, please try this build: VisualGDB-5.5.104.3944.msi
You can now configure VisualGDB to treat assembly files as C files (i.e. pass them to armclang.exe and not remove C/C++-specific flags) by adding the following element inside a relevant PropertyGroup in your .vcxproj file:
<TreatAssemblyFilesAsCFiles>true</TreatAssemblyFilesAsCFiles>
January 22, 2021 at 01:02 #29815DanielFuchsParticipantHi,
that’s a nice solution. The complete code compiles 🙂
Now i have to test the different debug probes we have.Thank you for your quick help!
Kind regards
DanielJanuary 22, 2021 at 08:27 #29817supportKeymasterHi,
Good to know it works. If you encounter any other issues, feel free to start another thread.
May 27, 2021 at 02:59 #30567DanielFuchsParticipantHi,
I’ve updated to version 5.5R5 (build 4124) because the window popped up and i didn’t think about it.
Now it isn’t compiling anymore.
Was the feature removed or did the parameters change?I think at first i have to downgrade to the version mentioned above.
Kind regards
Daniel- This reply was modified 3 years, 6 months ago by DanielFuchs.
May 27, 2021 at 07:59 #30575supportKeymasterHi,
The newer builds usually include all the fixes from the older builds (unless they have been removed due to problems with other functionality), hence it should work.
The problems are likely caused by something else. Please feel free to share the details on the errors you get (and also renew your support here as it has recently expired) and we will help you get it working.
June 15, 2021 at 07:27 #30699DanielFuchsParticipantHi,
we’ve renewed my support 🙂
I get the error from armasm.exe:
Failed to compile startup.s. armasm.exe exited with code 8
But i still want to use armclang and have the following line in my .vcxproj file
<TreatAssemblyFilesAsCFiles>true</TreatAssemblyFilesAsCFiles>
Kind regards
DanielJune 15, 2021 at 12:09 #30701supportKeymasterThanks for renewing your support. The option should be available in VisualGDB 5.5R5. If it doesn’t work, please try the latest development build here: VisualGDB-5.6.1.4153.msi
June 16, 2021 at 00:13 #30708DanielFuchsParticipantHi,
as i mentioned before i’ve VisualGDB version 5.5R5 (build 4124).
I will try the development build.
Edit:
Now i have version 5.6(Beta 1, build 4153) and it compiles the assembler files with armclang again.
(Visual Studio Professional 2019 Version 16.10.1)Kind regards
Daniel- This reply was modified 3 years, 5 months ago by DanielFuchs.
June 16, 2021 at 07:39 #30715supportKeymasterGood to know it works. If you encounter further issues, feel free to get back to us.
-
AuthorPosts
- You must be logged in to reply to this topic.