Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 2 of 2

Thread: Flash memory write/read in teensy 3.6

  1. #1

    Flash memory write/read in teensy 3.6

    I am using MCUExpresso IDE to program teensy 3.6, I am using SDK 2.5.
    In SDK flash memory write and read example code is given where the destination address is calculating by following expression :
    destAdrss = pflashBlockBase + (pflashTotalSize - (SECTOR_INDEX_FROM_END * pflashSectorSize * 2));
    where values are taken by following functions,

    FLASH_GetProperty(&s_flashDriver, kFLASH_PropertyPflash0BlockBaseAddr, &pflashBlockBase);
    FLASH_GetProperty(&s_flashDriver, kFLASH_PropertyPflash0TotalSize, &pflashTotalSize);
    FLASH_GetProperty(&s_flashDriver, kFLASH_PropertyPflash0SectorSize, &pflashSectorSize);

    I want to set destination address at 0xD000, how can I do that?

  2. #2
    Administrator Paul's Avatar
    Join Date
    Oct 2012

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts