cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with ST7 visual debug when using 'MACRO' asm directive

laurent239955
Associate II
Posted on April 01, 2004 at 08:37

Problem with ST7 visual debug when using 'MACRO' asm directive

4 REPLIES 4
laurent239955
Associate II
Posted on March 26, 2004 at 08:07

I'm developping with a indart-stx v2.0.4 on st7lite2 and ST7vd 2.5.4.

The program is asm only and use MACRO directives.

In debug session, the tools is not able to manage the MACRO : there is a mismatch between the code executed and the source lines ==> So it's impossible to do a step and following where the program goes in the source window.

Any solution ?
support5
Associate
Posted on March 26, 2004 at 11:41

I attached the SofTec Microsystems example for the inDART-STX/LITE2 Eval. Board. I made a macro that puts the ADC value on the ports data register connected to the leds. The STEP INTO instruction makes one only step on the macro call. If you use the Step Into ASM command the steps on the macro will be three (as many as the asm instructions contained in the macro definition). Hope this will help you.

Regards,

________________

Attachments :

LITE2.zip : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HzzC&d=%2Fa%2F0X0000000bVB%2F7oR2g9GLEAgWcA.3tPZ_aCuxXgVP91Ck2rqV2R4kGWs&asPdf=false
shreya
Associate II
Posted on March 29, 2004 at 11:22

Could you attach your code here?

laurent239955
Associate II
Posted on April 01, 2004 at 08:37

You will find a light version of my program.

Thanks to ST support, I've resolved my problem by using the asm directive ''BYTES'' on the top of the program.

If you put in comments this keyword and go back to debug with the disassembly window, you will see the bad results !!!!

If someone can explain me why, I will improve my culture !!

Thanks to all,

Laurent

________________

Attachments :

travail_Adc.zip : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006I08I&d=%2Fa%2F0X0000000bV9%2FE4mxAp8EjjgUHh7eDsO01AOr3Fn6yZOCPJgJ6PLc3xE&asPdf=false