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

RL_Flash FS for LPC2366

Dear friends,
is there any 1 who implemented the Flash file system for LPC2366 RAM / SPI flash.

I have coded the RAM flash driver as per RL_FLASH FS help page info.

finit() and fformat() is ok;
but i am not able to open a file in write mode also.

on some forum pepl recomending to increase HEAP and STACK size.

I have stack size 0x00000050 ( user ) heap size 0x00000800

thans for any suggetions

  • regarding the above problem; I am implementing the Flash_fs for onchip ram;
    main()------ FILE *fin; FILE *fout; char test[5]; int test1,test2; PINSEL0 |= UART0TX; PINSEL0 |= UART0RX; InitSerial( 0, 57600, 0, 3, 0 ); U0sendchar('Y'); while(1) {test1 = finit(); U0sendchar(test1 + 1); test1 = fformat("R:"); U0sendchar(test1 + 2); // Open a file on the RAM Drive fin = fopen ( "report.txt", "w" ); if (fin == NULL) {U0sendchar('A');} else { fwrite ("UTS", sizeof (char), 3, fin); fclose (fin); U0sendchar('Y');}
    ----------------------------------------
    I have --> // #pragma(__use_no_swi.....) in retarget.c on entry to fwrite() exicution goes to SWI handler
    and gets reset.
    if above comment sign removed gives linker ( library) error-----

    ram_test.axf: Error: L6915E: Library reports error: __use_no_semihosting_swi was requested, but a semihosting fputc was linked in
    ****************************************************
    if any 1 have implemented RAM file system please help.
    thanks,

    udit