This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Trying to get RL-FlashFS working on LPC2300

I'm building some code to read the SD Card on an MCB2300.   I'm using the RL-FlashFS library.

I have configured CCLK to 48MHZ and PCLK_MCI to CCLK, and changed the #defines in MCI_LPC23xx.c to read:

#define __MCLK    48000000
#define __CPUCLK  48000000

My code to initialise the card reads:

	uint32_t retv = finit(NULL);

The SD LED on the MCB2300 board comes on when the call is made and then there's a *long* pause and eventually the function returns a value of 2.

I'm using 4.74 of the library and uVision 5

Help please, I am totally baffled.

Thanks, David

Parents
  • Hello David, 

    I assume you are using MDK v 5.38, and on this page:
    developer.arm.com/.../Use-MDK-Version-4-Projects

    ...under "Legacy Pack Download" you download and installed "Arm7, Arm9, Cortex-R" (MDK79525.EXE) into the C:\Keil_v5 folder.

    Once you do that, you will find pre-made Flash FS examples in the folder:
    C:\Keil_v5\ARM\Boards\Keil\MCB2300\RL\FlashFS\SD_File\SD_File.uvproj

    ==============

    You can use this project as a reference. Does that example work for you? If not, some additional questions.

    - What SD card are you using on the MCB2300 board? 

    - What Device is on your MCB2300 board? Is it a LPC2370?

    - Are you using COM1 for serial communication, in order to control the SD example

    ==============

    See more in the RL-FlashFS manual
    www.keil.com/.../rlarm_fs_flashfs.htm

Reply
  • Hello David, 

    I assume you are using MDK v 5.38, and on this page:
    developer.arm.com/.../Use-MDK-Version-4-Projects

    ...under "Legacy Pack Download" you download and installed "Arm7, Arm9, Cortex-R" (MDK79525.EXE) into the C:\Keil_v5 folder.

    Once you do that, you will find pre-made Flash FS examples in the folder:
    C:\Keil_v5\ARM\Boards\Keil\MCB2300\RL\FlashFS\SD_File\SD_File.uvproj

    ==============

    You can use this project as a reference. Does that example work for you? If not, some additional questions.

    - What SD card are you using on the MCB2300 board? 

    - What Device is on your MCB2300 board? Is it a LPC2370?

    - Are you using COM1 for serial communication, in order to control the SD example

    ==============

    See more in the RL-FlashFS manual
    www.keil.com/.../rlarm_fs_flashfs.htm

Children