/* Obtains the base address of the flash memory available to the user program. This is basically the last address in the flashLayout table converted to the physical address on the last page, because this is where the address will be in.  */
blt_addr FlashGetUserProgBaseAddress(void)
/* Obtains the base address of the flash memory available to the user program. This is basically the last address in the flashLayout table converted to the physical address on the last page, because this is where the address will be in.  */
blt_addr FlashGetUserProgBaseAddress(void)
{
  blt_addr end_address_global;
  blt_addr end_address_physical_page_window;
  blt_addr end_address_physical_page_last;
  end_address_global = FLASH_END_ADDRESS + 1;
  end_address_physical_page_window = FlashGetPhysAddr(end_address_global);
  end_address_physical_page_last = end_address_physical_page_window + FLASH_PAGE_SIZE;
  return end_address_physical_page_last;
}