Jump to content

Problem : bankstick shared between SID and FM box


Recommended Posts

Posted

Hello,

It seems that a FM Box reformat correctly a SID FM bankstick although the contrary is not possible.

The SID freeze (each time at the same pach) and reboot when trying to reformat a 24LC256s formatted by a FM.

Is it something known ?

Is there a way to totally reset a 24C256 ?

Thanks for the answers,

Xavier

Posted

Hi Xavier,

yes, I remember that this was reported by Seppoman (?) some time ago. I still haven't searched for the cause yet, but in general I think that this is a "low priority" issue.

You can clear the BankStick with following C program:


Init()
{
  unsigned int addr;
  for(addr=0; addr<32768; ++addr)
    MIOS_BANKSTICK_Write(addr, 0x00);
}
[/code]

Best Regards, Thorsten.

Posted

Thanks Thorsten,

I had to install the sdcc kit for that but that was interesting...

The main.c skeleton looks great...

The C functions seem to be very documented (like the rest of the project).. I found how to select the bankstick in 10 seconds...

In the init() the function did not exit from the loop (!!!)... I may have uploaded something wrong.

But

void DISPLAY_Init(void) __wparam
{
  unsigned int addr;

  MIOS_LCD_Clear();
  MIOS_LCD_CursorSet(0x00);
  MIOS_LCD_PrintCString("Formating... "); 

  MIOS_BANKSTICK_CtrlSet(0x01);
  for(addr=0; addr<32768; ++addr) {
    MIOS_BANKSTICK_Write(addr, 0x00);
  }

  MIOS_LCD_CursorSet(0x00);
  MIOS_LCD_PrintCString("Finished....");
}

did exactly what i wanted... Now my MidiboxSID have again its 2 * 24C256....  :)

Xavier

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...