Sflash init problem RCM 4300 and Serial flash AT45DB161D

Hi All

I am porting my tcp/ip codes from rcm3700 with serial flash at45db081d to rcm4300 with serial flash at45db161d. The code has been successfully compiled. But end up with a run time error. I debugged the code and find that the sf_init function is returning -1(not detecting any serial flash according to error code).
Inside the SFLASH.LIB file it is wriiten that

"Currently supported devices are:
AT45DB041
AT45DB081
AT45DB642
AR45DB1282 "

but inside sf_initDevice() function

const sf_devtable_entry sf_devtable[] =
{
{0x001C, 2047L, 264, 3, 9}, // AT45DB041B
{0x0024, 4095L, 264, 3, 9}, // AT45DB081B
{0x002C, 4095L, 528, 3, 10}, // AT45DB161D - new RCM5450W 2MB serflash

I am using the default settings for sf in sflib file such as

#define SF_SPI_CSPORT PEDR
#define SF_SPI_CSSHADOW PEDRShadow
#define SF_SPI_CSDD PEDDR
#define SF_SPI_CSDDSHADOW PEDDRShadow
#define SF_SPI_CSPIN 6

PLease help me , is there any change in settings such as SF_SPI_CSPIN and SF_SPI_CSPORT . I could not understand the settings from data sheet. Any help would be appreciated

Thank you

Hi all,

Anyone has idea about the above mentined problem

Hello, On RCM4300 ,instead of serial flash you can use Micro SD card to store data.

1 Like

Thank you cpigilam

Hello,

On the RCM3700 the serial flash is used to store data. On the RCM4300 the serial flash is used for programming.

You need to store your files on the SD card on the RCM4300, not the serial flash.