This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Using 'exec("g")' command in a FUNC

Hello

I've been able to successfully use the 'g' debug command on its own in an 'ini' file using µVision's simulator (ver 5.13). Using this function I've been able to move from breakpoint to breakpoint. These breakpoints are set using the following example:

exec("bs write \\GPIO_test.c\\test_Position == 1");

However, when I try to put the 'g' command in a FUNC using 'exec("g")' as follows:

FUNC void B6_test (void)
{
        exec("g");
        .
        .
        .
}

it will not re-start the program. Therefore I am not moving from breakpoint to breakpoint as required.

I have written this FUNC in both: 1) the original simulator '.ini' file; and also 2) a file that has been included with this simulator file.
In both cases, the FUNC has been called from within the 'ini' file.

Can anyone advise me on whether 'exec("g")' can be used in a FUNC, please? If this is not possible are there alternative ways of restarting the programme from a breakpoint from within a FUNC.

I am using the DARMSTM.DLL dialog with the -pSTM32F103C8 parameter.

Thanks

Ron