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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...