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

FDS function Implementation on DFU bootloader

Hi,

    I use FDS to save my data in my application. Below is my fds list. All RECORD already have data from factory production.

#define FILE_ID 0x1111
#define RECORD_KEY_TORQUE_0 0x0001
#define RECORD_KEY_W_TORQUE 0x0002
#define RECORD_KEY_I_TORQUE 0x0003
#define RECORD_KEY_UUID 0x0004
#define RECORD_KEY_EMS 0x0005
#define RECORD_KEY_SPINDOWN 0x0006
#define RECORD_KEY_SMT 0x0007
#define RECORD_KEY_ASM 0x0008

It's work well.

Now I want to read those data in dfu bootloader. Can I implement FDS function into dfu sample code? Is there anything to watch out for?

Thank you.

  

Parents
  • Hi,

    We do not have any examples of it (nor can I think of ever seeing it before), but I do not see any fundamental issue with using FDS in the bootloader nor anything in particular that should cause problems. The only think I think is worth mentioning is that you will increase the sizes of the bootloader this way, so you must move the bootloader start address down  a bit (I would guess one page). That is a general thing when adding functionality to the bootloader, though.

  • Hi Einar,

        You main the Flash address as below

    Or have other seeting I need to verify.

    Thnak you.

    John.

  • John,

    Yes, this is the flash start address of the project you are building (I assume the bootloader in this case). Note that you cannot change the bootloader size during DFU, and also moving the bootloader also moves the FDS pages, so this change cannot be done with devices in the field.

Reply
  • John,

    Yes, this is the flash start address of the project you are building (I assume the bootloader in this case). Note that you cannot change the bootloader size during DFU, and also moving the bootloader also moves the FDS pages, so this change cannot be done with devices in the field.

Children
Related