cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
acidka
Visitor
Visitor
1,922 Views
Registered: ‎08-01-2017

Memory window bug?

Jump to solution

Hello.

 

I am trying to debug some code with writing to adress with offsets and when I tryed to make this I have a little problem with window Memory in debug. The problem is that when I am trying to write to adress (doesn't matter directly writing adress or by variable) it makes like all bigger than 2 bytes cleared, and max number I see is 0x7F, if I try to write smaller it writes correctly.

 

I wanna know if it's only display window "Memory" error or is there any problems and I don't understand my mistake, because when I trying to make it be asm() it does same.

 

I also tryed this in 2016.4 and in 2017.2 sdk versions.

 

Memory window

0 Kudos
Reply
1 Solution

Accepted Solutions
ericv
Scholar
Scholar
3,265 Views
Registered: ‎04-13-2015

Address 0xF8001000 is the base address of the TTC0 timer peripheral.

At that address, it's the register Clock_Control_1, which is 7 bits (lower ones), all other bits are always read as 0.

That's why no value greater than 0x7F can be read back.

 

Regards

.

 

View solution in original post

0 Kudos
Reply
5 Replies
hbucher
Scholar
Scholar
1,908 Views
Registered: ‎03-22-2016

@acidka

I ran the same test and it seems okay to me.

Is this a Zynq 32 bit standalone app?

Where is 0xf8001000 located in your linker? 

Perhaps it is not free memory but it's on top of another peripheral?

vitorian.com --- We do this for fun. Always give kudos. Accept as solution if your question was answered.
I will not answer to personal messages - use the forums instead.
mem.PNG
0 Kudos
Reply
ericv
Scholar
Scholar
3,266 Views
Registered: ‎04-13-2015

Address 0xF8001000 is the base address of the TTC0 timer peripheral.

At that address, it's the register Clock_Control_1, which is 7 bits (lower ones), all other bits are always read as 0.

That's why no value greater than 0x7F can be read back.

 

Regards

.

 

View solution in original post

0 Kudos
Reply
hbucher
Scholar
Scholar
1,871 Views
Registered: ‎03-22-2016

@acidka @ericv

Ok so there you have it. Not a bug of the memory window. Just that the registers will not take a full 32 bit number.

vitorian.com --- We do this for fun. Always give kudos. Accept as solution if your question was answered.
I will not answer to personal messages - use the forums instead.
0 Kudos
Reply
acidka
Visitor
Visitor
1,831 Views
Registered: ‎08-01-2017

Hello!

 

Seems like ur correct (and I am trying to write to TTC0, ur correct), so why they read like last 7? And it is at all options, so it is no difference between memory window or get value by variable. It seems strange that as mask (XTTCPS_CLK_CNTRL_PS_VAL_MASK) 1E, which is less than 7D and dont get us to change all bits and what that bits are? 

0 Kudos
Reply
acidka
Visitor
Visitor
1,830 Views
Registered: ‎08-01-2017

mask I said is when we trying to change RC at timer

0 Kudos
Reply