Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"fx_stm32_custom_driver_c.ftl" change word #9

Open
got748 opened this issue Aug 7, 2023 · 0 comments
Open

"fx_stm32_custom_driver_c.ftl" change word #9

got748 opened this issue Aug 7, 2023 · 0 comments

Comments

@got748
Copy link

got748 commented Aug 7, 2023

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;

}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant