Skip to content

Commit

Permalink
Upload block-storage [3204]
Browse files Browse the repository at this point in the history
  • Loading branch information
gitlab-runner committed Jan 30, 2025
1 parent 79c708a commit 8704a8b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ Some memory abstractions are already supported such as:
Others are expected to be added in future releases, or can be supported by the application itself.
To implement a custom interface see the mtb_block_storage.h file for what is expected and the mtb_block_storage_*.c files for how the existing protocols are supported.

#### v1.2.1
* Fixed issue on ECT flash

#### v1.2.0
* Support MTB-HAL version

#### v1.1.0
* Fixed support for older version of HAL

Expand Down
2 changes: 1 addition & 1 deletion props.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
"core": {
"id": "de8de308-fe93-5eb5-b140-70ee6ac997f0",
"name": "block-storage",
"version": "1.2.0.19"
"version": "1.2.1.68"
}
}
4 changes: 2 additions & 2 deletions source/mtb_block_storage_nvm.c
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ static cy_rslt_t mtb_block_storage_nvm_program(void* context, uint32_t addr, uin
loc += prog_size, buf += prog_size)
{
#if (CPUSS_FLASHC_ECT == 1)
result = WorkFlashProgramRow((uint32_t*)addr, (const uint32_t*)buf, prog_size);
result = WorkFlashProgramRow((uint32_t*)loc, (const uint32_t*)buf, prog_size);
#else // if (CPUSS_FLASHC_ECT == 1)
#if (MTB_HAL_DRIVER_AVAILABLE_NVM)
result = mtb_hal_nvm_program((mtb_hal_nvm_t*)context, loc, (const uint32_t*)buf);
Expand Down Expand Up @@ -307,7 +307,7 @@ static cy_rslt_t mtb_block_storage_nvm_program(void* context, uint32_t addr, uin
*******************************************************************************/
static cy_rslt_t WorkFlashProgramRow(const uint32_t* addr, const uint32_t* data, uint32_t prog_size)
{
cy_rslt_t result = CYHAL_NVM_RSLT_ERR_ADDRESS;
cy_rslt_t result = MTB_BLOCK_STORAGE_INVALID_INPUT_ERROR;
cy_stc_flash_programrow_config_t config;
cy_en_flashdrv_status_t status = CY_FLASH_DRV_SUCCESS;
const uint32_t* cur_addr = (uint32_t*)addr;
Expand Down

0 comments on commit 8704a8b

Please sign in to comment.