Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
VMN_127
Level 1
Level 1
First reply posted First question asked Welcome!

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
Level 1
Level 1
First reply posted First question asked Welcome!

@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
Moderator
First comment on KBA First comment on blog 5 questions asked

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