with DFU bootloadable how to read/write SFlash PSOC 6 MCU

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

cross mob
Amar_Hiremath
Level 3
Level 3
25 sign-ins 10 questions asked 25 replies posted

I am using the DFU bootloader and bootloadable examples, both working.

now I want read write the Sflash how to do ...?

When i tried to do with the function

Cy_Flash_WriteRow((uint32_t)0x16000800,(uint32_t*)newData);  device hangs up and never returns.

how to solve this..?

0 Likes
1 Solution
lock attach
Attachments are accessible only for community members.
Rakshith
Moderator
Moderator
Moderator
250 likes received 1000 replies posted 750 replies posted

Hi AmHi_4166996​,

I used the same function in a test project and I was able to write data (0x6F = 111) into SFlash as shown -

pastedImage_0.png

I have attached the project for your reference. Can you please test it out and let me know if it works?

I have used CYBLE-416045-02 device. Please change it accordingly.

Adding to it, I found this thread and KBA that might help you -

User SFlash Feature in PSoC 6?

Store Custom Data in SFlash for PSoC 6 MCU Device – KBA228374

Thanks and Regards,

Rakshith M B

Thanks and Regards,
Rakshith M B

View solution in original post

0 Likes
1 Reply
lock attach
Attachments are accessible only for community members.
Rakshith
Moderator
Moderator
Moderator
250 likes received 1000 replies posted 750 replies posted

Hi AmHi_4166996​,

I used the same function in a test project and I was able to write data (0x6F = 111) into SFlash as shown -

pastedImage_0.png

I have attached the project for your reference. Can you please test it out and let me know if it works?

I have used CYBLE-416045-02 device. Please change it accordingly.

Adding to it, I found this thread and KBA that might help you -

User SFlash Feature in PSoC 6?

Store Custom Data in SFlash for PSoC 6 MCU Device – KBA228374

Thanks and Regards,

Rakshith M B

Thanks and Regards,
Rakshith M B
0 Likes