STMicroelectronics / x-cube-azrtos-f4

X-CUBE-AZRTOS-F4 (Azure RTOS Software Expansion for STM32Cube) provides a full integration of Microsoft Azure RTOS in the STM32Cube environment for the STM32F4 series of microcontrollers.
https://www.st.com/en/embedded-software/x-cube-azrtos-f4.html
Other
44 stars 24 forks source link

"fx_stm32_custom_driver_c.ftl" change word #9

Open got748 opened 1 year ago

got748 commented 1 year ago

Development Environment : STM32CubeIDE Version: 1.13.1 X-CUBE-AZRTOS-F4 V1.1.0

Issue : LevelX NOR Custom interface Code Generation problem File : STM32CubeMX\templates\fx_stm32_custom_driver_c.ftl

static UINT lx_nor_driver_read(ULONG flash_address, ULONG destination, ULONG words) { UINT ret = LX_SUCCESS;

/* USER CODE BEGIN NOR_READ */

/* USER CODE END  NOR_READ */

return ret;

}

static UINT lx_nor_driver_write(ULONG flash_address, ULONG source, ULONG words) { UINT ret = LX_SUCCESS;

/* USER CODE BEGIN NOR_WRITE */ <====

/* USER CODE END  NOR_WRITE */ <====

return ret;

}

static UINT lx_nor_driver_block_erase(ULONG block, ULONG erase_count) {

UINT ret = LX_SUCCESS;

/* USER CODE BEGIN NOR_WRITE */  <==== same word "NOR_WRITE"

/* USER CODE END  NOR_WRITE */  <==== same word "NOR_WRITE"

return ret;

}

static UINT lx_nor_driver_block_erased_verify(ULONG block) { UINT ret = LX_SUCCESS;

/* USER CODE BEGIN NOR_WRITE */ <==== same word "NOR_WRITE"

/* USER CODE END  NOR_WRITE */ <==== same word "NOR_WRITE"

return ret;

}

need change code :

static UINT lx_nor_driver_block_erase(ULONG block, ULONG erase_count) {

UINT ret = LX_SUCCESS;

/* USER CODE BEGIN NOR_BLOCK_ERASE */

/* USER CODE END  NOR_BLOCK_ERASE */

return ret;

}

static UINT lx_nor_driver_block_erased_verify(ULONG block) { UINT ret = LX_SUCCESS;

/* USER CODE BEGIN NOR_BLOCK_ERASED_VERUFY */

/* USER CODE END  NOR_BLOCK_ERASED_VERUFY */

return ret;

}