Could finally write a file to my SD card :]
								
									
										Written by cafealpha									
									
										3 comments
									
								
							
							
								
									
										Classified in : Saturn, Programming									
									
								
							
						
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


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

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

