Electronics > Microcontrollers

How to fix Stack Usage Warnings


I'm using IAR Workbench to program STM32. My application uses USB. I'm getting the following warning when compiling:

Warning[Ls016]: [stack usage analysis] the program contains at least one indirect call. Example: from "USB_Exc". A complete list of such functions is in the map file.   

When I go to the map file, I can see the list of functions that perform unknown indirect calls.

Are these warnings serious? Would they cause issues if I ignore them?

It looks like a warning from a static code analyzer complaining that it can't analyze code with indirect/pointer calls. This is not a serious warning, there is nothing wrong with the code itself and you can ignore it.

If you write code that code analyzers like, your code would suck for humans to read.


[0] Message Index

There was an error while thanking
Go to full version