Watch Variables - M.I.A
Up to HEW
Hello All,
I cannot add a watch variable in Hew - I used to be able to, but after an upgrade of of HEW - this useful feature dissappeared.
When I'm debugging a target the "Instant Watch" option is not availible from the right mouse button context menu.
When I'm debugging a target there is nothing under the "View" menu that mentions Watch Variables.
When I'm debugging a target and I hover my mouser over a variable name - the value of the variable appears as a floating tool tip - but only sometimes and whether it appears or not is very intermitent.
I'm using HEW ( Version 4.04.01.001 ) and an M30290FC. I'm debugging the target using an E8a.
As far as I know the compiler options for my target have not changed.
I have been using the auto upgrade feature regularly... so I should be up to date.
Anyone, have any idea on how to fix this?
Cheers,
Rob Lancaster
Hi Rob,
I experienced similar things with HEW. In my case the buttons next/previous error/warning in the output window did not work any more.
It often helps if you delete the HEW2.INI file in the HEW directory. This will reset all your settings (confirmation dialogs, tab width, editor settings, ...) and restores HEW functions.
I'd suggest two things:
- Make sure the Build options for Debugging still include the "debug" output option (should show a -g command line option...)
- Try creating a new session for the E8A emulator. Use the New Session wizard in the File menu. Connect and download a debug build to see if you get your windows back.
BTW, the output window issue is fixable with this:
http://www.renesasrulz.com/Members/ckgrier/excfdt-fcl-fixes-hew-output-window-buttons
Previously Robert Lancaster wrote:
Hello All,
I cannot add a watch variable in Hew - I used to be able to, but after an upgrade of of HEW - this useful feature dissappeared.
When I'm debugging a target the "Instant Watch" option is not availible from the right mouse button context menu.
When I'm debugging a target there is nothing under the "View" menu that mentions Watch Variables.
When I'm debugging a target and I hover my mouser over a variable name - the value of the variable appears as a floating tool tip - but only sometimes and whether it appears or not is very intermitent.
I'm using HEW ( Version 4.04.01.001 ) and an M30290FC. I'm debugging the target using an E8a.
As far as I know the compiler options for my target have not changed.
I have been using the auto upgrade feature regularly... so I should be up to date.
Anyone, have any idea on how to fix this?
Cheers,
Rob Lancaster
I've got the same situation. If you are still looking for an answer, Go to 'Debug -> Debug Settings', 'Target' tab, and make sure the 'Default debug format' is set to 'Elf/Dwarf2' in the drop-down. That opened up watch and stack trace for me.
If you use Elf/Dwarf2 as debug format this means you use the IAR compiler.
It is no good solution to switch to Elf/Dwarf2. This Elf/Dwarf2 setting is designed to support SH and H8 processor, NOT M16C.
The Elf/Dwarf debug format generated by IAR is a little bit different to this Elf/Dwarf2. As far as I know IAR includes some elements of Dwarf3 in their output, and this is not supported in this Elf/Dwarf2 format. Thus it may happen that the contents of some (local?) variables is not displayed, or not displayed correctly because the debugger got the wrong address for this variable.
If you develop software for M16C using IAR compiler the debug format should be IEEE-695.
Sorry I should have said that I'm using an H8S processor, and I should not have been so specific. This was the basic problem with my setup though, after upgrading to 4.04.01.001 the default debug setting had changed to 'S-Record', and watch, local variables, stack trace were not available. So I guess that is my suggestion, check the default debug setting and make sure it hasn't changed from what you normally use...

