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

Hyper Flash Forum Discussions

GaZh_4623356
Level 1
Level 1

I use the hyperflash S26KL256S with STM32L4R9 processor. It works fine sofar for erasing, program etc..

But in memory mapped mode for read, it crashes if i read w aord at address a1 and immediately read the word at a1+300.

I use the same reding process on the hyperbus ram without any problem. Does anyone have experiences wiht this hardware combination?

0 Likes
1 Solution
GaZh_4623356
Level 1
Level 1

Dear Bushra,

sorry i can not send you the screen capture since the st-link break the connection to the target.

But meanwhile I did a lot of investigations to find and solve the problem and it is finally solved:

I used dma and interrupt of the ospi channel for writing the flash, It works fine and then I switched it into memory mapped mode without disabling the interrupt and removing the dma. Now I have tried to remove dma and disable interrupt and see it works fine.

Thanks a lot for your response.

Best regards

Gang Zhang

Von: BushraH_91

Gesendet: Dienstag, 21. Januar 2020 20:15

An: Gang Zhang <gang.zhang@elektrophysik.com>

Betreff: Re: - S26KL256S memory mapped mode, read craches after address jump

<http://www.cypress.com>

Cypress Developer Community <https://community.cypress.com/?et=watches.email.thread>

S26KL256S memory mapped mode, read craches after address jump

reply from BushraH_91<https://community.cypress.com/people/BushraH_91?et=watches.email.thread> in HyperFlash - View the full discussion<https://community.cypress.com/message/221821?et=watches.email.thread#221821>

View solution in original post

0 Likes
3 Replies
BushraH_91
Moderator
Moderator 250 solutions authored First comment on blog 500 replies posted
Moderator

Hello,

Thank you for contacting Community Forum. Can you please send me screen shot of the failure?

Have a wonderful day

Regards,

Bushra

0 Likes
GaZh_4623356
Level 1
Level 1

Dear Bushra,

sorry i can not send you the screen capture since the st-link break the connection to the target.

But meanwhile I did a lot of investigations to find and solve the problem and it is finally solved:

I used dma and interrupt of the ospi channel for writing the flash, It works fine and then I switched it into memory mapped mode without disabling the interrupt and removing the dma. Now I have tried to remove dma and disable interrupt and see it works fine.

Thanks a lot for your response.

Best regards

Gang Zhang

Von: BushraH_91

Gesendet: Dienstag, 21. Januar 2020 20:15

An: Gang Zhang <gang.zhang@elektrophysik.com>

Betreff: Re: - S26KL256S memory mapped mode, read craches after address jump

<http://www.cypress.com>

Cypress Developer Community <https://community.cypress.com/?et=watches.email.thread>

S26KL256S memory mapped mode, read craches after address jump

reply from BushraH_91<https://community.cypress.com/people/BushraH_91?et=watches.email.thread> in HyperFlash - View the full discussion<https://community.cypress.com/message/221821?et=watches.email.thread#221821>

0 Likes
BushraH_91
Moderator
Moderator 250 solutions authored First comment on blog 500 replies posted
Moderator

Hello Gang Zhang,

Thank you so much for the great new and letting us know.

Regards,

Bushra

0 Likes