Programming the FV-1 EEPROM with your code
Last updated
Last updated
Maybe you've already figured out how to do this, but there are two main ways to get from SpinCAD Designer to the EEPROM connected to your FV-1.
The first method I'll describe is to use the Spin Development Board with the Spin IDE. When choosing this route, you will go through the intermediate stage of Spin ASM. This approach may be useful if you are having to optimize programs to make them fit or otherwise modifying them in ways the SpinCAD can't do.
The first step will be to go through all 8 patches and choose "Save Patch As" to give each patch a unique name. This is used to create a .spcd file which can be read by SpinCAD Designer, and also later to name a .spn file which can be read by the IDE.
Next, choose "Save Bank As" just to make sure you've got the group of patch saved.
Next, "File->Export Bank to Spin Project"
Choose a folder for your Spin Projects and ASM files to be saved.
Now, open the Spin IDE and click on the "Project Folders" icon.
Set all folders to the folder you just saved your project to.
Click on the Project icon to open the Spin ASM Project Dialog.
Click on "Open" and load the Spin project file you saved from SpinCAD Designer.
Confirm that there is a file name for each of the 8 patches. Select the desired options. To program the EEPROM in a Spin Development Board, all you need is to choose "Write EEPROM".
Make sure your Spin Development Board shows "Online".
Click on "Build". You'll see some flashing while the programs are assembled and the EEPROM is built.
Unplug the Spin Development Board's USB. Now you can move the EEPROM to your board.
Export to HEX
The second way assumes that you have some other way to program the EEPROM - whether separately or in circuit using I2C.
Choose "File->Export Bank to Hex":
and save the HEX file to a location where you can use it with whatever you are using to program the EEPROM.