library compiled for stm32F4 series compatible for custom Cortex M4?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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.
- Labels:
-
STM32CubeIDE
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-06-18 3:11 AM
There's two independent questions there:
- Is the .a library compatible with this "Custom ARM Cortex M4" ?
I guess if the Custom part has the exact same options as in the STM32Fx, it should work.
- Can IAR use a GCC .a library created by CubeIDE ?
You would have to ask IAR that one:
https://www.iar.com/support
If you have the source, surely rebuilding from source would be the safest option?
A complex system designed from scratch never works and cannot be patched up to make it work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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 ?
A complex system designed from scratch never works and cannot be patched up to make it work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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.
A complex system designed from scratch never works and cannot be patched up to make it work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-06-18 5:27 AM
Let me check and update
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-06-19 4:08 AM
It didn't work. some stack related linking error popped up. I think this is compiler dependent.
Thanks folks for the encouraging support.
