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

txt file storage on MCB2388

Hi,
I am trying to have a TXT file which stores some data. This data is to be read by the microcontroller. Where can I store such a file on the board.

If something similar to this has been done then please share.

Board: MCB2300
Processor: LPC2388
with ARM7

Thanks

Parents
  • TXT file becuase we need to be able to read, edit and modify the data in the file easily, and reading txt files in c is easy. Any kind of file is ok, does not have to be a txt file specifically.

    So an example of the data would be

    userID password Somedata
    312345689 12S E213
    123654879 2d6 B312
    +23654879 2d6 C312

    I have looked into examples and found a way to store files on SD Card, but as I am stil new to working with MicroProcessors. I am unsure of how it really works
    And from exploring the example code, it would only see what the files are in the SD Card, create an empty file and possibly read it, but i do not see a real way to make major changes to the file.
    It needs to be able to add data, and go comparisons on the data as well

    The usage would be:
    1) Adding new users
    2) Deleting existing users
    3) Modifying users
    4) Doing a comparison

    so for point 4 - We get an input string (the source of this string is irrelevant right now), and we want to be able to compare the input string with the data in the file to check if the right password is used (as an example)

    The data could be ranging from 20 lines to even 40,000 lines (but this would be limited by the processor, so if we cant go more than 2000 lines, that is also OK because its a prototype)

    The reason I did not give details, because I wanted more of a Yes or No answere, and yes i know how to google it and did try that, but i am looking specifically for LPC2388
    It was proving harder than i imagined

Reply
  • TXT file becuase we need to be able to read, edit and modify the data in the file easily, and reading txt files in c is easy. Any kind of file is ok, does not have to be a txt file specifically.

    So an example of the data would be

    userID password Somedata
    312345689 12S E213
    123654879 2d6 B312
    +23654879 2d6 C312

    I have looked into examples and found a way to store files on SD Card, but as I am stil new to working with MicroProcessors. I am unsure of how it really works
    And from exploring the example code, it would only see what the files are in the SD Card, create an empty file and possibly read it, but i do not see a real way to make major changes to the file.
    It needs to be able to add data, and go comparisons on the data as well

    The usage would be:
    1) Adding new users
    2) Deleting existing users
    3) Modifying users
    4) Doing a comparison

    so for point 4 - We get an input string (the source of this string is irrelevant right now), and we want to be able to compare the input string with the data in the file to check if the right password is used (as an example)

    The data could be ranging from 20 lines to even 40,000 lines (but this would be limited by the processor, so if we cant go more than 2000 lines, that is also OK because its a prototype)

    The reason I did not give details, because I wanted more of a Yes or No answere, and yes i know how to google it and did try that, but i am looking specifically for LPC2388
    It was proving harder than i imagined

Children