CartFlasher: Difference between revisions

From F256 Foenix
Jump to navigationJump to search
No edit summary
(Add more information about the flash expansion cartridge)
Line 1: Line 1:
https://discord.com/channels/691915291721990194/1054250056703815680/1228540690691260416
Apart from the 256K RAM expansion cartridge there is also [https://c256foenix.com/product/flashcart256k/?v=5f02f0889301 256K flash expansion cartridge] for the F256 K/Jr. available from Foenix Retro Systems. This cartridge contains extra flash memory which can be used to store software and data in a non volatile fashion. The extra memory is visible at 24 bit address $100000. The MMU (see [[Memory Management]]) can map the 32 8K blocks on the cartridge as blocks $80 to $9F into the 64K base memory.


Link to the project on github: https://github.com/Red-Fool/F256_FlashCart
When booting your Foenix the [[MicroKernel]] looks for a Kernel User Program (see [[File Formats]]) to start in the flash cartridge, in the on-board flash memory and (depending on the position of your [[DIP switches]]) also in the on-board RAM. In a typical system configuration on a system with a flash expansion cartridge the first memory region to be searched is the memory occupied by the flash expansion cartridge. Or in other words if there is a KUP in your flash cartridge the first one found will be started automatically after power on and after each reset. If you want to write data on your flash expansion cartridge then there are two programs which can be used for this purpose


According to [https://discord.com/channels/691915291721990194/1225217740998971413 this info] the flash chip in the cartridge is a [https://www.microchip.com/ Microchip]  
* F256_FlashCart: https://github.com/Red-Fool/F256_FlashCart
Sst39vf040. The data sheet of this chip can be found [https://ww1.microchip.com/downloads/en/DeviceDoc/20005023B.pdf here]. The cartFlasher program is not
* fcart https://github.com/rmsk2/cartflash
understandable without this data sheet as commands which are to be sent to the chip have to be encoded as reads and writes to and from specific addresses
 
in a specific sequence.
Both do run on your Foenix machine. F256_FlashCart always erases the whole flash chip before writing new data to it. fcart allows to incrementally write data to a flash cartridge by only erasing the flash blocks which it is told to overwrite.
 
The 256K flash chip is a SST39LF/VF020 by  [https://www.microchip.com/ Microchip]. Its data sheet can be found [https://ww1.microchip.com/downloads/en/DeviceDoc/20005023B.pdf here]. The data sheet is necessary if one wants to understand what both of the programs linked above actually do. The flash cartridge is also compatible with the K2/JrJr.

Revision as of 09:49, 10 January 2025

Apart from the 256K RAM expansion cartridge there is also 256K flash expansion cartridge for the F256 K/Jr. available from Foenix Retro Systems. This cartridge contains extra flash memory which can be used to store software and data in a non volatile fashion. The extra memory is visible at 24 bit address $100000. The MMU (see Memory Management) can map the 32 8K blocks on the cartridge as blocks $80 to $9F into the 64K base memory.

When booting your Foenix the MicroKernel looks for a Kernel User Program (see File Formats) to start in the flash cartridge, in the on-board flash memory and (depending on the position of your DIP switches) also in the on-board RAM. In a typical system configuration on a system with a flash expansion cartridge the first memory region to be searched is the memory occupied by the flash expansion cartridge. Or in other words if there is a KUP in your flash cartridge the first one found will be started automatically after power on and after each reset. If you want to write data on your flash expansion cartridge then there are two programs which can be used for this purpose

Both do run on your Foenix machine. F256_FlashCart always erases the whole flash chip before writing new data to it. fcart allows to incrementally write data to a flash cartridge by only erasing the flash blocks which it is told to overwrite.

The 256K flash chip is a SST39LF/VF020 by Microchip. Its data sheet can be found here. The data sheet is necessary if one wants to understand what both of the programs linked above actually do. The flash cartridge is also compatible with the K2/JrJr.