fromGoogleCode / vector06cc

Automatically exported from code.google.com/p/vector06cc
Other
0 stars 0 forks source link

RAM access via JTAG may interfere with CPU #2

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Currently when SRAM is accessed by JTAG, CPU may receive completely wrong
data thus crashing the program. Bus hold should be used to suspend the CPU
during JTAG access.

Original issue reported on code.google.com by svof...@gmail.com on 17 Dec 2007 at 8:39

GoogleCodeExporter commented 9 years ago
USB API is evil.

So far I could make it set HOLD signal upon iRxD_Ready, this way it manages to 
get
HLDA before actual RAM request needs completion. There's no flow control of any 
sort
so it's hard to interfere.. It works now, transparently, but it's far from 
being elegant.

Probably, it is possible to improve on it. In CMD_Decode, if oHOLD is set upon
RxD_Ready, iHLDA sets in time. The only problem, it seems, is that there are
different sorts of commands coming from Control Panel and they seem to lock this
simplistic circuit. 

Original comment by svof...@gmail.com on 19 Dec 2007 at 1:38

GoogleCodeExporter commented 9 years ago
Setting hold upon iRxD_Ready chronically doesn't work.. Having really no desire 
to
struggle with mostly a PC-side software issue (poorly written "Control Panel" 
demo),
this should pass for a fix.

 * Read/write of SRAM via USB API Control Panel works flawlessly.
 * Just for a case, manual bus hold switch added: SW7

Original comment by svof...@gmail.com on 19 Dec 2007 at 8:18