cancel
Showing results for 
Search instead for 
Did you mean: 

GPIO registers data storing using C spy

A Maq
Senior
Posted on April 07, 2018 at 07:49

I have to store STM32F767ZI registers values at one line of my application code without halting my program at that line.

As,I am currently trying to use C-Spy for that by using which so far I have managed to store on text file register values but each time code halts at that point as I am doing it using code breakpoint.

Can you please share the solution to store GPIO register values on a file without stopping code execution (May be using C spy).

Following are the setup details:

IDE:                  IAR EMBEDDED Workbench

Debug driver:  ST-link 

Debug tool:     C-spy 

Storing reg data :     Text file or any 

Dev Tool   :     Nucleo F767zi board 

Example data Which I have generated using breakpoints:

GPIOA_MODER : A8000001

#c-spy #gpio #nucleo-stm32f7 #swo-debugging
1 ACCEPTED SOLUTION

Accepted Solutions
A Maq
Senior
Posted on July 06, 2018 at 11:31

I have managed to resolve the issue by putting in an expression the C-Spy Macro.

0690X0000060LgZQAU.png

That will make macro execute during run time to pick register values or any other macro .

View solution in original post

3 REPLIES 3
Joerg Wagner
Senior III
Posted on April 07, 2018 at 13:30

Why don't you copy the content of this register in an array at this place?

Like:

uint32_t recording[100];

int recidx=0;

...

recording[recidx++] = *((uint32_t *)(0x4002 0000));

A Maq
Senior
Posted on April 07, 2018 at 23:43

I have 3 registers to pick values. And need to copy register values to a file. Have registered C-spy macro for that.therefore, arrays may not be suitable.

A Maq
Senior
Posted on July 06, 2018 at 11:31

I have managed to resolve the issue by putting in an expression the C-Spy Macro.

0690X0000060LgZQAU.png

That will make macro execute during run time to pick register values or any other macro .