Could finally write a file to my SD card :]

Written by cafealpha 3 comments
Classified in : Saturn, Programming Tags : saturn, kai, backup, sd card
I could finally write a file to my SD card ... from my Saturn
Well, I just tested by dumping my Saturn's BIOS, and didn't tried further, because I don't want to find and fix other bugs today

data/images/20150716_bios_dump_ok.tb.png
Top : my Saturn BIOS, dumped from my Freewing device 5 years ago
Bottom : BIOS file in my SD card dumped today
Hex Editor says that both files are identical

This fixes a nearly 3 years old bug
At that time, I connected a SD card to my second pad port on my Saturn and could read files successfully. However, file write sometimes failed ... I thought about many possible causes of failures (not enough 3.3V power supply ? Bad luck ? etc etc), but it was a software bug : writing sectors to SD card actually takes longer than reading sectors, and I didn't waited enough for my SD card to finish write.
Changing poll timeout count from 500 clocks to 50000 clocks seems to fix the problem. (Q&D fix, but if it works fine, I won't change it )

So now, as SD card read/write access works on both yabause and real hardware, it is time to to use it in order to develop new features for my Saturn

data/images/20150716_memcart_rev2f.tb.jpg
My SD card cartridge for Saturn (Q&D prototype revision )

Edit : wow, current cartridge firmware build ID (incremented on each make/build) is 4200

Read more Could finally write a file to my SD card :]

Some fun with yabause on my laptop

Written by cafealpha 2 comments
Classified in : PPCenter, Saturn, Programming, Mylife Tags : saturn, vmem, kai, backup
Today, I made fixes to :
 - yabause (debug version for personal use), because UBC doesn't works well on it.
 - SatLink, because mkdir function returns -1 when folder already exist
 - PseudoSaturn, various features additions, fixes, as usual
 - BackupManager, in order to display some debug informations.
 - Vmem module, various fixes, especially one that took me a couple of hours to understand

data/images/20150630_bug_fix.gif
Me when debugging my Saturn projects
(Video grabbed from 9gag.com)


But at least, virtual memory cart is ready for debugging now
data/images/20150630_vmem_test.tb.png
Debug session with yabause and SatLink
NiGHTs Xmas header data (bottom of screenshot) was copied
from internal memory to laptop HDD


So, everything don't work right now, but UBC related things and log message output are nearly OK, so that debugging this vmem project will be (maybe ?) comfortable from now :]

... I'm tired No more debugging for today ^^

Read more Some fun with yabause on my laptop

Iso/Cue "loader" works on real hardware :]

Written by cafealpha no comments
(For more informations, you can also read this old article.)

I finally had time to use my Saturn, and I could verify that iso/cue "loader" works on real hardware !
Of course it works well when reading from RomFs, and it works also well when reading file from SD card

data/images/20150626_iso_loader.tb.jpg
My test environment ... sorry for the mess
(Micro SD card is located on top-left of the cartridge)

I lost some time to understand why data transfer from SD card was slower than expected, but finally understand why : some debug/whatever delay routine was called when accessing cartridge registers ...
Just putting some #if 0 around this delay code solved the "problem" ^^;

Read more Iso/Cue "loader" works on real hardware :]

Old project release : JWPds

Written by cafealpha no comments
Classified in : PPCenter, etc, Programming, Mylife Tags : bigN, homebrew, japanese
Last day, I was digging in my HDD, and found an unreleased project !

Project name was JWPds, and about Japanese words/kanjis translation tool running on Nintendo DS.
data/images/20150609_jwpds_radic.tb.jpg
Looking for the meaning of 絵 kanji on my DS :
bottom screen allows kanji input and
kanji meaning is displayed on top screen.


data/images/20150610_jpwce_radic.tb.png
Looking for the meaning of 絵 kanji on my PC with JWPce.
(JWPce is not my project, it is just for comparison with JWPds)

Project is unfinished, because developing things on DS took more time than expected, and also because I learned enough Japanese, hence didn't needed to develop/use this application any more

Stable binaries and latest (not stable) sources are available, so please have fun with them

For more informations, download links, screenshots, etc, please have a look in the project page .

If you have any message, etc to send to me, don't hesitate to post a comment to this article

PS for DS fans lost here, and wanting leave a comment : comments require a Turing test asking for my favorite game console, and it's not DS
Please have a look in my blog in order to solve this test (If you are an human, it won't be difficult ).

PPS to Saturn fans here : don't worry, I don't plan to shift to DS homebrew development !
The console I like to debug on is and will always be Saturn

Read more Old project release : JWPds

Toying with my good old Nintendo DS lite ...

Written by cafealpha 4 comments
Classified in : etc, Programming, Mylife Tags : bigN, homebrew, cartridge
From yesterday, I suddenly wanted to turn my DS into a MP3 player, so that I can listen my favorite music while I drive my car
Of course, there are other options in order to listen music in my car :
 - GPS navigation unit can read MP3 from SD card, but don't support SDHC ... and my wife (sharing the same GPS unit) doesn't like my music
 - My android smartphone can read mp3 but ... I don't like android, and the more I put mp3 in my phone, the longer it takes to boot ...
 - My gp2x wiz can read mp3, but takes a while to boot, and the ergonomics of its music player is not so good.

So I want to purchase a DsTwo cartridge for my DS, but it's out of stock everywhere. Is there somebody ready to sell his DsTwo cartridge to me ?
In advance, thank you

And no, I don't want other cheap cartridge, because I like the way to put a CPU into a DS cartridge, and publicly provide SDK in order to use it

Read more Toying with my good old Nintendo DS lite ...

Rss feed of the category