Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
You are not logged in - nap
CSDb User Forums


Forums > C64 Coding > USB Freezer/Downloader
2012-11-10 09:20
logikstate
Account closed

Registered: Jan 2011
Posts: 21
USB Freezer/Downloader

Posting this to gauge interest.

Here is a hacked Action Replay ROM running inside an Easy Flash 3 cartridge. I've modified the cartridge CPLD core to allow freezing via USB. I can 'freeze' the machine via USB at any point, download new code, 'unfreeze' and then run.

I've modified Tom-Cat's ef3usb tools to achieve this, no point re-inventing the wheel :)

Next I hope to be able to modify the CPLD core further by adding true hardware breakpoints. The CPLD would 'freeze' when a read/write at a certain address is reached, allowing USB comms, further memory/register modification would then be possible over USB, as well as 'unfreeze' to resume.

Here's a video of me running a few random one-file demos...

http://www.youtube.com/watch?v=00kYghjobfU
 
... 14 posts hidden. Click here to view all posts....
 
2012-11-10 16:14
logikstate
Account closed

Registered: Jan 2011
Posts: 21
Quote: Would be heaven to develop entirely on real machines once again, but with the power of a decent IDE and a fast build/test cycle..
I think I need to go read up on how the VS debugger can be extended and modified for such things.. :)
But so cool you got this working on an EF3..


Glad you like it :)

Yes, it would be really nice to extend the integrated VS debugger... Ive downloaded the SDK and had a quick glance over the sample code but didnt notice anything that looked like a debugger extension.

It makes sense to build upon Vintage Studio, as that has already done the work on the editor and build side of things.

Probably needs a modified assembler to output line number&file per C64 memory address too.
2012-11-10 16:29
Mace

Registered: May 2002
Posts: 1799
This actually makes me consider buying an EF3 :-)
2012-11-10 16:30
chatGPZ

Registered: Dec 2001
Posts: 11386
ca65 produces all the debug info needed to do this kind of stuff :)
2012-11-10 16:58
logikstate
Account closed

Registered: Jan 2011
Posts: 21
Quote: ca65 produces all the debug info needed to do this kind of stuff :)

Cool, I shall have to check that out :)
2012-11-10 20:58
Skoe
Account closed

Registered: Jan 2008
Posts: 34
Ah, nice idea :)

Erm. Are you the one who wrote a mail to me a few months ago which I missed to respond to?
2012-11-10 21:15
FATFrost
Account closed

Registered: Sep 2003
Posts: 211
as in Scott Pilgrim 'That's that one guy!' ;0)
2012-11-10 21:16
logikstate
Account closed

Registered: Jan 2011
Posts: 21
Quote: Ah, nice idea :)

Erm. Are you the one who wrote a mail to me a few months ago which I missed to respond to?


Yes indeed.. that was me :)

As you didn't reply I took it upon myself to experiment... I have no background in electronics or VHDL... After a few false starts I figured out the logic needed to do the freeze as I imagined it to be possible. So this can be considered a 'proof of concept'

As far as VHDL HW breakpoints (or I guess Action Replay freezepoints) This is something that is a little beyond my knowledge at the moment... I had to remove the SS5 logic in order to make this fit, even though it was just a few changes.

Any help or advice on this would be appreciated :)
2012-11-10 21:22
Skoe
Account closed

Registered: Jan 2008
Posts: 34
Arrgh! I actually had something to write to you. As I was quite busy (and lazy...) I deferred the response. And a while later I didn't find the mail again and couldn't remember the sender. Shame on me!

Could you resend it please? :)

Because last year I started something you could be interested in. And I'm interested in your ideas.
2012-11-10 21:37
logikstate
Account closed

Registered: Jan 2011
Posts: 21
Quote: Arrgh! I actually had something to write to you. As I was quite busy (and lazy...) I deferred the response. And a while later I didn't find the mail again and couldn't remember the sender. Shame on me!

Could you resend it please? :)

Because last year I started something you could be interested in. And I'm interested in your ideas.


I've resent the original email and also PM'd you my personal email address, thanks!
2012-11-14 15:25
logikstate
Account closed

Registered: Jan 2011
Posts: 21
Gah! Have made some progress with HW breakpoints but there isn't enough space on the CPLD... Some rethinking is needed...
Previous - 1 | 2 | 3 - Next
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Advanced
Users Online
Linus/MSL
rikib80
rexbeng
grip
cba
void256
tlr
Epyx/TSA
Microshark/Damage(HUN)
Guests online: 119
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Mojo  (9.7)
4 Coma Light 13  (9.6)
5 Edge of Disgrace  (9.6)
6 What Is The Matrix 2  (9.6)
7 The Demo Coder  (9.6)
8 Uncensored  (9.6)
9 Comaland 100%  (9.6)
10 Wonderland XIV  (9.6)
Top onefile Demos
1 No Listen  (9.6)
2 Layers  (9.6)
3 Cubic Dream  (9.6)
4 Party Elk 2  (9.6)
5 Copper Booze  (9.6)
6 Dawnfall V1.1  (9.5)
7 Rainbow Connection  (9.5)
8 Onscreen 5k  (9.5)
9 Morph  (9.5)
10 Libertongo  (9.5)
Top Groups
1 Performers  (9.3)
2 Booze Design  (9.3)
3 Oxyron  (9.3)
4 Triad  (9.3)
5 Censor Design  (9.3)
Top Fullscreen Graphicians
1 Joe  (9.7)
2 Sulevi  (9.6)
3 The Sarge  (9.6)
4 Veto  (9.6)
5 Facet  (9.6)

Home - Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.041 sec.