Treatment report (2014/12/22) : MRI

Written by cafealpha no comments
Today was a MRI day !
MRI taken so far (4 or 5 times) were took with contrast medium (liquid sent via intravenous in order to see clearly veins), but this time was the first time without contrast medium !
It was a little strange that catheter were not used this time, and it was so "easy mode" that I half felt asleep during MRI exposure session  ^^;

One anecdote about this day is that when I entered in MRI room in order to put off clothes and wait for my turn, atmosphere in the room was a little strained, and 3 bodyguard shaped guys were waiting with MRI technical staff.
Maybe theses guys are maintenance staff ? But they definitely didn't looked like : they only stare at the window and monitors showing the MRI patient just before me.
When it was my turn, I understood why atmosphere was a little strained : bodyguard shaped guys took handcuffs and put them to the MRI patient just before me : he was a prisoner, and today was something like his "quarter-liberty day" outside the prison !
It was the first time I saw a prisoner for real (not on the TV, internet, whatever) in Japan.

Additional CT is scheduled for next month, so see you later for my next adventures


PS : I'm looking for a laptop better than the one I'm using now. Is there somebody to help me ?
My requirements are as follow :
 - No need brand new laptop, used laptop is OK
 - Screen resolution >= 1366 x 768
 - DDR3 SO-DIMM memory slots x 2
 - RAM address area >= 8GB
 - Battery for offline use >= 2 hours
 - CPU >= Core 2 Duo
 - Japanese or US qwerty keyboard
 - No need of OS, HDD and RAM, I already have theses parts here.
 - No more than USD 150
 - Easy to purchase in Shikoku area (Japan).
I looked in Hard Off ... only found a SNK 95 Saturn cartridge and very old or very expensive laptops.
I looked in PC Depot ... only found a good Sony laptop very cheap ... with broken LCD. And of course, nothing about LCD damage indicated near price tag
Any other idea where to search ?

I plan to use this laptop for Saturn development stuff

Here is a picture of the laptop I'm currently using :
data/images/20141222_laptop.tb.jpg
Old stuff from 2007, with 2GB RAM (no more addressable space ... what a pity), and a 512GB SSD.

Read more Treatment report (2014/12/22) : MRI

Just moved !

Written by cafealpha 4 comments
Classified in : etc, Saturn, Mylife Tags : mylife
During the last weeks, I was busy in preparing stuff in order to move to a new apartment.
And now, I am busy in ordering stuff in this new apartment ^^;

data/images/20141129_gaston.tb.jpg
(Image of me preparing cardboard few hours before mover truck arrives)

During the next weeks/months, I don't plan to do some new Saturn stuff. Instead, I plan to do things related to my new apartment, like emptying cardboards, ordering rooms, selling old/unused things, etc.
By the way, I plan to sell old Saturn games from my collection, including PAL Panzer Dragoon Saga, Shining Force III Scenario 1, so please let me know (= add a comment to this article, or send me a message) if you want to purchase something :)
In the case things are sold directly from this homepage, it will be cheaper than in the case I sell them via ebay ;)

PS : I didn't set up internet connection in my new apartment, so I may not be able to answer mail/messages/whatever during the next couple of weeks.

PPS : happy birthday Saturn ! It turned 20 years old on last month ♪

Read more Just moved !

New USB dev cart - currently debugging

Written by cafealpha 4 comments
Classified in : Saturn, Mylife Tags : saturn, usb dev cart, IC, firmware, debug
Few weeks ago, I had some free time (only one day however) to populate new USB dev carts
data/images/20140829_usb_dev_cart.tb.jpg
USB dev carts during different populating states
"This isn't even my final form"

I could populate 3 boards ... third one is not on the picture, while a couple of capacitors is missing on second one, but this is a matter of 5 minutes to solder.
After that, time was missing, and what's more problematic, ICs were missing too >_<

I soldered my last flash chips (on the right side of the cart), as well as my last USB chips and connectors (top left side of the cart) ... and my last 100nF decoupling capacitor (everywhere near all ICs) too ... it's a shame about the capacitors because they cost absolutely nothing and they are required everywhere in the cart.

So what's the plan from now ? I'm currently improving USB dev cart firmware, and plan to sell the completed cartridge on the bottom right corner of the picture when firmware will be ready for release.
From that money, I will buy a new stock of ICs to populate other PCBs
Why not buying ICs now ? Simply because I don't have enough budget for that, and also because buying ICs in few quantities is too much expensive : IC price decrease with quantity, and shipping fees are free when more than of USD100 of ICs are purchased.


So let's come the interesting part : firmware, which means software !
Last month I had enough about PCB design with Kicad, so that was good to get back with my Saturn and USB connect it to my laptop

data/images/20140829_dev_env.tb.jpg
My Saturn development environment : no expensive vintage development kit,
only a modchipped Saturn, USB dev cart and 7 years old laptop are enough.

So of course I lost a lot of time with stupid software troubles.
Here is a list of the troubles. I hope that writing them here will prevent me from repeating the same mistakes in the future.

 1) Data alignment problem : one structure is 1 byte packed, and some long word was put a non 4 multiple offset in this structure. It is usually easy to spot, but ...
 - It doesn't cause problem under yabause (? not verified, please tell me if I'm wrong), so this problem was unnoticed until I test it under real hardware.
 - It happened during program initialization, before USB transfer would allow me to easily find why my Saturn freezes.
 - I was sleepy at this time

 2) Adding byte size to unsigned long* pointer ... it resulted in pointer set 4 times farther than expected ... really stupid bug
Oh, and in the same fashion, a similar bug in Action Replay flasher utility prevented from writing more than half of flash memory size ... it's good that I could fix this bug before anybody notice it

 3) Saturn freezes when reading flash vendor/device IDs.
As usual, when Saturn freezes, it is during program startup, when USB can't be used for debug ^^;
This problem was the most interesting one : some parts of the firmware runs directly from Flash ROM, and it seems that reading flash vendor/device IDs makes whole flash returning theses IDs, resulting in invalid instruction from CPU ... this is just a guess, correct me if I'm wrong.
This problem was corrected in a very Q&D way : return 0xBFBF/0xB7B7 in FlashGetVendorID/FlashGetDeviceID functions
I have a better idea to fix this, but it requires to modify cartridge flasher utility ... I made enough flasher utility stuff recently (I'm enough in fixing compatibility issues with Action Replay old flash chips !), so I will fix this later.

Read more New USB dev cart - currently debugging

Saturn cartridge firmware flash utility : small update #2

Written by cafealpha 12 comments
Classified in : Saturn Tags : saturn, cartridge, memory, backup, restore, utility
I made some fixes to my flasher utility.
 - Added support for SST29LE010 flash chip
 - Added memory verify after flashing
 - Fixed erase/write operations AM29F010 flash chip
 - On startup, inform user that 3D pad and multitap pad are not supported

Thanks to beta testers on ASSEMbler forums, this new version has high chances to work on your Saturn cartridge
However, if you experience any problem, please let me know by leaving a comment to this article.

Some screenshots :
data/images/20140829_bfbf_0808.tb.jpg
BFBF/0808 flash chip, not recognized on previous version.
This version does now detect it as a 29LE010 device from SST.
Picture provided by dgist71.

data/images/20140901_flash_ok.tb.jpg
Write to AM29F010 chip was incorrect in previous version.
As displayed in this screenshot, this is fixed now.
Picture provided by XeCuTioNR.

You can download this utility here : flasher_20140902.7zflasher_arp_20150326.7zhttp://ppcenter.webou.net/pskai/
Disclaimer : You will loose your cartridge backup data after reflash. And, I'm not responsible in the case I brick your cartridge and/or damage your Saturn.

Read more Saturn cartridge firmware flash utility : small update #2

Saturn cartridge firmware flash utility : small update

Written by cafealpha 17 comments
Classified in : Saturn Tags : saturn, cartridge, memory, backup, restore, utility
Memory Card Plus restore utility I made few days ago is now obsolete : I added a menu to select the firmware to flash.
Firmware list includes Action Replay Plus/Pro (various versions), latest Pseudo Saturn, Memory Card Plus, USB dev cart.
data/images/20140821_flasher_fwlist.png
Firmware selection menu

As you can see, I added some colors in text display too

The utility doesn't read data from the CDROM, so that it can be uploaded to Saturn via commlinks port (Action Replay) or USB port (USB dev cart).
All the firmwares don't fit as-is in Saturn HRAM (1MB), so I compressed them by using LZF compression, so that everything could fit in a single ~800 KB binary file

Here are some pictures of utility running on real hardware :
data/images/20140821_flasher.tb.jpg
Firmware selection menu from early beta version.
Picture provided by r1cola.

data/images/20140824_flasher_video.png
(click to open video)
Flasher in action : from firmware selection to end of flash operation.
Video provided by zorlon.

You can download this utility here : flasher_20140824.7zflasher_20140902.7zflasher_arp_20150326.7zhttp://ppcenter.webou.net/pskai/
Disclaimer : You will loose your cartridge backup data after reflash. And, I'm not responsible in the case I brick your cartridge and/or damage your Saturn.

Read more Saturn cartridge firmware flash utility : small update

Rss feed of the articles