This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

I want to create text file in device storage or my PC.

Hi,

I want to create a file and save it to device storage or my computer.

As a result, I want to save a large amount of data in a text file, compress it, and send it to BLE advertising.

I'm using nrf52832 and fatfs example in SDK 15.3.0, but fatfs example needed the external sd memory.

 I tried to use the f_open and f_mount functions to save text file in my PC but it failed.

Does anyone know how to do this or any other good examples,sites?

Thank you

Parents
  • a large amount of data

    How "large" ?

    in a text file

    Why, specifically, in a text file?

    As you've seen, the nRF52832 has no native file system.

    But you can simply save data in RAM (volatile) or Flash (non-volatile).

    The sizes of Flash and, in particular, RAM are limited - so, again, how "large" is your data?

    send it to BLE advertising

    The amount of data you can send in a BLE advertising packet is extremely limited - only a few bytes.

    fatfs example needed the external sd memory

    Because using a file system is usually only appropriate when you have a large storage medium - much larger that the internal memory of an nRF52.

     I tried to use the f_open and f_mount functions to save text file in my PC but it failed

    You can't just directly open files on your PC from the nRF52 (or any other microcontroller, for that matter).

    Does anyone know how to do this

    It's not clear what you're actually trying to achieve here.

    Please explain your goal - then people can make suggestions as to how you might achieve that.

    http://www.catb.org/esr/faqs/smart-questions.html#goal

Reply
  • a large amount of data

    How "large" ?

    in a text file

    Why, specifically, in a text file?

    As you've seen, the nRF52832 has no native file system.

    But you can simply save data in RAM (volatile) or Flash (non-volatile).

    The sizes of Flash and, in particular, RAM are limited - so, again, how "large" is your data?

    send it to BLE advertising

    The amount of data you can send in a BLE advertising packet is extremely limited - only a few bytes.

    fatfs example needed the external sd memory

    Because using a file system is usually only appropriate when you have a large storage medium - much larger that the internal memory of an nRF52.

     I tried to use the f_open and f_mount functions to save text file in my PC but it failed

    You can't just directly open files on your PC from the nRF52 (or any other microcontroller, for that matter).

    Does anyone know how to do this

    It's not clear what you're actually trying to achieve here.

    Please explain your goal - then people can make suggestions as to how you might achieve that.

    http://www.catb.org/esr/faqs/smart-questions.html#goal

Children
No Data
Related