Issues due to optimization level
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-06-26 2:00 PM
Hello All,
I hope your doing good. I am working on a project based on STM32L476RG using Keil v5. I have used assert in my code. It works correctly for the compiler optimization L2 and L3. But when I change to Level 1 or 0, i get
'G3\G3.axf: Error: L6218E: Undefined symbol __aeabi_assert (referred from st_spi.o).'
Anybody with any leads on this. Thank you all for your time.
Muthaiah Murugappan
#optimization #hal-spi #stm32l476- Labels:
-
STM32Cube MCU Packages
-
STM32L4 series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-06-26 2:15 PM
See this link:
http://www.keil.com/support/man/docs/armlib/armlib_chr1358938924063.htm
Apparently with the Keil compiler the assert() macro behaves differently depending on the optimization level. The real question is why the linker isn't finding the __atabi_assert() function that is supposed to be in a library somewhere.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-06-26 2:48 PM
Hello Bob,
Thanks for getting back to me. The link you sent describes a better picture for my issue. Thanks for the information.
Even I'm not able to figure out, why the compiler doesn't find out the library function.
Thanks
Muthaiah Murugappan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-06-26 5:21 PM
>>Even I'm not able to figure out, why the compiler doesn't find out the library function.
Keil has support contact numbers for such issues.
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-06-27 8:11 AM
Hey Clive, thanks for responding, I will get in touch with keil support and post an update here.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-06-27 10:49 AM
Are there portions of the project that aren't getting rebuilt properly, or pulled in as libraries?
Have you tried Rebuild-All?
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-06-27 12:54 PM
Yes Clive, I have tried rebuilding all and I guess there isn't portions, not getting rebuilt properly.
