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
2012-11-10 11:07
ThunderBlade

Registered: Jan 2002
Posts: 77
Sounds like the perfect thing for cross-devving without an emulator. Cross development like it should be: Typing the code on a PC, running it on real hardware... withOUT the download being a hassle.
2012-11-10 11:17
Frantic

Registered: Mar 2003
Posts: 1648
Good work! Keep it up!

...and please think of users of different platforms (win/osx/linnux) and such when you develop the software involved, if possible. :)
2012-11-10 12:44
logikstate
Account closed

Registered: Jan 2011
Posts: 21
Yeah, this my aim, crossdev to real hardware. Obviously once this works it is also fairly straightforward to port to VICE... But I think deving on real hardware is much cooler than emulation :)

I hope to integrate this with "Vintage Studio", which is a Microsoft Visual Studio extension.

Not 100% sure if this means that I need to write an external debugger or not.

Perhaps it would be better to write an external debugger that is retargetable for Win32/OSX/Linux etc?

I also want to achieve source level debugging too.
2012-11-10 16:11
andym00

Registered: Jun 2009
Posts: 45
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..
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)
 
... 14 posts hidden. Click here to view all posts....
 
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
fugu/Excess
cba
CopAss/Leader
Epyx/TSA
Guests online: 109
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 Musicians
1 Rob Hubbard  (9.7)
2 Mutetus  (9.7)
3 Jeroen Tel  (9.7)
4 Linus  (9.6)
5 Stinsen  (9.6)

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