Tagged: Keil Clang Assembler
January 20, 2021 at 06:40 #29803
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?
- This topic was modified 6 months, 1 week ago by DanielFuchs.
Attachments:You must be logged in to view attached files.January 21, 2021 at 20:17 #29814
No problem, please try this build: VisualGDB-126.96.36.19944.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:C++1<TreatAssemblyFilesAsCFiles>true</TreatAssemblyFilesAsCFiles>January 22, 2021 at 01:02 #29815
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!
DanielJanuary 22, 2021 at 08:27 #29817
Good to know it works. If you encounter any other issues, feel free to start another thread.May 27, 2021 at 02:59 #30567
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.
May 27, 2021 at 07:59 #30575
- This reply was modified 2 months ago by DanielFuchs.
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 #30699
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
DanielJune 15, 2021 at 12:09 #30701
Thanks 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-188.8.131.5253.msiJune 16, 2021 at 00:13 #30708
as i mentioned before i’ve VisualGDB version 5.5R5 (build 4124).
I will try the development build.
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)
June 16, 2021 at 07:39 #30715
- This reply was modified 1 month, 1 week ago by DanielFuchs.
Good to know it works. If you encounter further issues, feel free to get back to us.
You must be logged in to reply to this topic.