Altera_Forum
Honored Contributor
13 years agoSystem Console & master_write_32 — can't do this while target is running?
I had a simple controller written in Verilog that was configuring Altera's TSE MAC. Up to this point, it was fairly simple. However, what I wanted to do next is to set a lot of Marvel PHY's settings as well as keep monitoring both PHY and MAC for statistics and errors, etc. Doing that in HW seems like an overkill, so I have decided to incorporate a Nios CPU. But before going ahead and implementing the component in software, I wanted to quickly prototype the idea using System Console. Anyhow, here is my QSys base system:
http://i.stack.imgur.com/Su6lY.png The MAC instance is called tse_mac and the idea is to configure it by reading/writing to control_port through CPU's data_master. After getting the system up and running, I've connected to it using System Console. I assume it generally works because it is able to get master service path:% get_service_paths master
{/devices/EP2AGX260@1#7-1/(link)/JTAG/(70:34 v3# 0)/nios2_0}
It also opens fine. However, it fails right away when trying to write 32-bit value: % get_service_paths master
{/devices/EP2AGX260@1#7-1/(link)/JTAG/(70:34 v3# 0)/nios2_0}
% open_service master "/devices/EP2AGX260@1#7-1/(link)/JTAG/(70:34 v3# 0)/nios2_0"
% master_write_32 "/devices/EP2AGX260@1#7-1/(link)/JTAG/(70:34 v3# 0)/nios2_0" 0x400 0x00000000;
error: com.altera.systemconsole.internal.plugin.jtag.oci.Nios2DebugException: Can't do this while target is running
while executing
"master_write_32 {/devices/EP2AGX260@1#7-1/(link)/JTAG/(70:34 v3# 0)/nios2_0} {0x400} {0x00000000}"
while executing
"master_write_32 "/devices/EP2AGX260@1#7-1/(link)/JTAG/(70:34 v3# 0)/nios2_0" 0x400 0x00000000"
%
I have never used System Console before and could not find anything related on the Internet or in the manual. So the question is — what wrongdoing am I committing? Any help solving the problem is appreciated. (I've also posted this question on SO, here (http://stackoverflow.com/questions/11601699/system-console-over-jtag-fails-to-execute-master-write-32-cant-do-this-while)). Thank you!