Logo

[Q&A][M467] Fail to assemble startup_m460.s with M460BSP on Keil MDK v5.28 and Earlier Versions

, 2024年8月30日|
0
1049
0
When working with the M460 BSP v3.00.003 and utilizing Keil MDK version 5.28 or earlier, developers may encounter errors when attempting to build assembly code within their projects. This problem arises due to the configuration of the assembler in the project settings.


mdk_01.png (18.39 KiB)



The Problem: Fail to assemble startup_m460.s in Keil MDK v5.28 and Earlier
The startup_m460.s has updated in M460 BSP v3.00.003. The issue is particularly evident when attempting to build a sample code project that is configured to automatically select the appropriate assembler version. Starting from Keil MDK v5.29, there is an "Auto Select" option available for the assembler, which seamlessly chooses the correct version for the task at hand. However, this option is not available in Keil MDK v5.28 and earlier versions, leading to compatibility issues during the build process.

The sample code project in question has this "Auto Select" option enabled by default. Unfortunately, when using Keil MDK v5.28 or any earlier version, the lack of this functionality results in the assembler failing to process the code correctly, causing the build to fail.

The Solution: Manually Enabling ArmClang V6
To resolve this issue in Keil MDK v5.28 and earlier, developers need to manually adjust the assembler settings. Specifically, you must enable the option to "Assemble by using ArmClang V6." By doing so, the assembler will use the correct version, and the build process will proceed without errors.


mdk_02.png (24.23 KiB)



mdk_03.png (24.27 KiB)


This manual adjustment effectively bypasses the limitation present in earlier versions of Keil MDK, ensuring that the assembly code is correctly compiled. It’s a simple yet crucial step for maintaining compatibility and avoiding build errors in environments that do not support the auto-select functionality introduced in MDK v5.29.


mdk_04.png (19.2 KiB)


By following this approach, developers can continue to work with the M467 series BSP in older versions of Keil MDK while avoiding the build issues that would otherwise arise from incompatible assembler settings.