Cypress CYT4BF work flash ecc enable

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

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

Dear supporters,

   I get a Hardfault When I enable work flash ecc. Could you give me some supports? 

Terry_0-1636689672299.png

 

0 Likes
1 Solution
yanf
Moderator
Moderator
Moderator
50 replies posted 50 sign-ins 25 solutions authored

Hi Terry,

Please initialize flash before using it.

Cy_FlashInit(false);

Best Regards,

Finn

View solution in original post

0 Likes
3 Replies
yanf
Moderator
Moderator
Moderator
50 replies posted 50 sign-ins 25 solutions authored

Hi Terry,

As it shows, a precise data access error has occurred. What is the last piece of code you have run before this error occurred? Where are you trying to access to?

It would be easier to find the problem if you provide your codes.

Best Regards,

Finn

0 Likes
Terry
Level 1
Level 1
First reply posted First question asked Welcome!

Hi yanf,

Thanks!

The follow picture is this part code. It's stranger If I WORK_ECC_EN, then get the Hardfault.

Terry_2-1636937510710.png

Terry_0-1636937351955.png

0 Likes
yanf
Moderator
Moderator
Moderator
50 replies posted 50 sign-ins 25 solutions authored

Hi Terry,

Please initialize flash before using it.

Cy_FlashInit(false);

Best Regards,

Finn

0 Likes