I'm working on a luminary LM3S9b92 with MDK 4.72a and RTX. I'm using RL FLASH-FS with a SPI FLASH device. I just want to download a file with ftp to the SPI-FLASH on my board and I'm usign FTP_uif.c to store my file. The download looks like good. When I read this file with my embedded program on my board (with fopen, fread, ...) , every 512 bytes, I've got 8 bytes with a 0xFF value, then after these bytes, I've got my good data. But there is 8 bad bytes. I tried to read at this memory address with another driver (not RL FLASH-FS) and the data are good! So I think the problem turns around fopen()...
Any suggestions ? Jean-Marc Rouxel
Sorry,
I fix the problem : I use the same SPI bus for two things (the FLASH-SPI and my FPGA to configure it). I did switchs between the two peripherals and after sending data to my FPGA, I must drain RX FIFO before reading FLASH.