/* Requests the bootloader to program the specified data to memory. In case of non-volatile memory, the application needs to make sure the memory range was erased beforehand.  */
bool SessionWriteData(uint32_t address, uint32_t len, uint8_t const *data)
/* Requests the bootloader to program the specified data to memory. In case of non-volatile memory, the application needs to make sure the memory range was erased beforehand.  */
bool SessionWriteData(uint32_t address, uint32_t len, uint8_t const *data)
{
  bool result = false;
  assert(data != NULL);
  assert(len > 0);
  if ( (data != NULL) && (len > 0) )
  {
    result = protocolPtr->WriteData(address, len, data);
  }
  return result;
}