2006-03-08 06:34 AM
2006-03-07 09:25 AM
Hi, I have a Metrowerks C project for an ST72F321R9 processor. I am using a EMU3 Probe thru a ST Microconnect emulator to debug code on the board.
I am having trouble getting the ST Visual Develop program running. I am not compiling my code inside Visual Develop and simply want to import my binary (S19 file?) and the symbols file (map file?) into Visual Develop and kick off debugging. I know I am connected to the target properly as I can adjust specific port registers via Visual Develop and cause a LED to toggle states. I have Setup my S19 file in the Project->Settings, debug tab under the ''Executable for debug session'' and have set the ''Debug working folder'' to that path. When I click Ok from the settings dialog it attempts to load my S19 file (which I think it does successfully??) and then it says it has an error opening up my .map file (''error: ''y:/hhmt.map'':can't read symbols: file format not recognized) Why am I getting that error? My first thought is that ''y:/hhmt.map'' is not a valid file/path; the correct path and file should be ''y:\hhmt.map'' (note the slash direction difference) But I can't figure out how to change that. How can I simply load my map file, binary file (and whatever else I need) so that I can debug my code without having to compile the whole project via Visual Develop? Please help! Thanks!2006-03-07 08:35 PM
Its been a while since i used metrorerks but don't you use the dwarf output to debug not the s19 ?
This would normally be project.abs Regards sjo2006-03-08 01:27 AM
Yes, I think that's correct. Using the 'dwarf output' (where is that documented anyway?) Seems to get the debug function going a little further (such as I get to the MCU dialog)
I STILL NEED HELP THOUGH! What am I doing wrong? I have some rather simple code: inside Main() initialize some ports, and after initializing simply flash an LED. (This is the same LED that I can turn on by modifing the peripheral registers thru the debugger) For starters the code doesn't do anything when I hit the Debug->Run option after starting the debugger. In fact, if I stop the debugger, place a break point on one of the first lines within Main(); Run never stops or I get an error: ''Error: non existent memoy at address 0x006f'' urgh. What am I doing wrong? Thanks in advance2006-03-08 06:34 AM
As I said in the other post and this one, I guess I had two problems:
1) I was using the .s19 and should have been using the .abs 2) I didn't have the Visual Develop project in the same folder as my .abs file. Fixing those two things and all was well.