Hi,
I've tried with CW for HC12 v5.1 which is probably the version you're using.
The local variables are using stack.
I've tried to find a way to extract the information your request via map file and decoder tool without success.
The information is delivered for the global variables only.
Now the information is provided in the Inspector component.
You must launch the debugger to have access to this feature.
Under Component + Open ... select Inspect.
A new component will appear: Inspect.
Under Symbol Table you could check for each module, function the variables associated and other information.
This is the right way to check it.

Have a great day,
Pascal Irrle
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------