x-cube-azrtos-f4 icon indicating copy to clipboard operation
x-cube-azrtos-f4 copied to clipboard

"fx_stm32_custom_driver_c.ftl" change word

Open got748 opened this issue 1 year ago • 0 comments

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;

}

got748 avatar Aug 07 '23 09:08 got748