cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 6 MCU

VMN_127
New Contributor

Hi,

I am doing a simple flash erase write read operation on the CY8CPROTO-062S3-4343W PSOC6 kit.

I am following the exact code snippet shown in the below link.

https://cypresssemiconductorco.github.io/psoc6hal/html/group__group__hal__flash.html.

I can read the flash info via the cyhal_flash_get_info function. But erase and write operations are not happening.

I tried both blocking and nonblocking erase and write. Both weren't successful.

0x4020900 - This is the error code is returned from the cyhal_flash_start_write and cyhal_flash_start_erase finctions.

Could you help me to resolve this problem?

Thank you!

0 Likes
2 Replies
VMN_127
New Contributor

@DheerajK_81  could you please look into this problem and let me know what am I missing?

Thank you.

0 Likes
DheerajK_81
Moderator
Moderator

Hello @VMN_127 ,

Sorry for the delay in response. Once the cyhal_flash_get_info is called, can you please let me know the values of the cyhal_flash_info_t structure? Please print out all the values like block_count, start_address, size, sector_size etc. 

Regards,
Dheeraj

0 Likes
Top labels