2025-06-18 2:19 AM - last edited on 2025-06-18 5:06 AM by Andrew Neil
Edited to clarify that this is specifically STM32F4 (originally just said "Fx").
I've a library .a file compiled using STM32CubeIDE for STM32F4 series.
Is the .a file be compatible to Custom ARM Cortex M4 to use in IAR Embedded Work bench?
Solved! Go to Solution.
2025-06-18 5:16 AM
Yes, if it doesn't include anything STM32F4-specific, it should work on other Cortex-M4 processors. Something like a DSP library would be compatible.
2025-06-18 3:11 AM
There's two independent questions there:
If you have the source, surely rebuilding from source would be the safest option?
2025-06-18 3:34 AM
Fx can be Cortex-M0 or Cortex-M4.
"Custom ARM Cortex M4" could have other HW features implemented than STM32.
Also check the floating point options which are used on either side.
hth
KnarfB
2025-06-18 3:47 AM
@KnarfB wrote:Fx can be Cortex-M0 or Cortex-M4.
Also M3, M33, M7, M55:
@dwarakanath so did you mean F4 ?
2025-06-18 4:28 AM
Hi @Andrew Neil
Yes. F4 here in my case.
Also the .a file doesn't have any peripheral related inclusions. Its purely some algo part.
No float support in either the cores.
2025-06-18 5:04 AM
@dwarakanath wrote:Yes. F4 here in my case.
OK - I'll edit the title to clarify.
@dwarakanath wrote:Also the .a file doesn't have any peripheral related inclusions. Its purely some algo part.
But there are still optional features & configuration options in the core itself.
You'd have to make sure they all match.
2025-06-18 5:16 AM
Yes, if it doesn't include anything STM32F4-specific, it should work on other Cortex-M4 processors. Something like a DSP library would be compatible.
2025-06-18 5:27 AM
Let me check and update