STM32CubeIDE compiler multiplication bug
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-04-08 12:15 PM
Using:
- Latest STM32CubeIDE
- Nucleo-64 G071 (Cortex-M0+)
- GNU Tools for STM32 (9-2020-q2-update) (default)
There seems to be a problem multiplying long numbers. Here's what a multiplication of two 32 bit ints looks like.
And this is what a multiplication of a 64 bit with a 32 bit int looks like. It works, but in addition to writing the result it also writes a bunch of junk in the memory addresses preceding the variables.
`bl 0x80004e8 <__muldi3>` seems to be the culprit here.
Solved! Go to Solution.
Labels:
- Labels:
-
STM32CubeIDE
-
STM32G0 Series
This discussion is locked. Please start a new topic to ask your question.
1 ACCEPTED SOLUTION
Accepted Solutions
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-04-08 12:24 PM
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-04-08 12:24 PM
It's normal. What you see changing is the stack.
JW
