Skip to main content
parisa
Associate III
September 21, 2017
Solved

FLASH_ReadOutProtection decreases speed of execuation

  • September 21, 2017
  • 2 replies
  • 919 views
Posted on September 21, 2017 at 07:15

Hi,

In my project I use CMSIS Ethernet library and use USART as communication channel to talk with other boards. All function work perfectly but after adding FLASH_ReadOutProtection to protect my micro-processor it's execution speed decrease (for example before enabling ReadOutProtection it could process each received Ethernet package less than 50ms but after that it takes more time(about 4times more) to process a simple package.

what's wrong with ReadOutProtection ?

Thanks

#stm32f10x #stm32f10x-flash
This topic has been closed for replies.
Best answer by AvaTar
Posted on September 21, 2017 at 09:11

Actually I use ROP just for protection my micro-processor from reading.

I know. That's what it is made for.

My question is - what else did you change ?

There is no supposed impact of ROP on core performance.

... before enabling ReadOutProtection it could process each received Ethernet package less than 50ms but after that it takes more time(about 4times more) ...

This is a very generic measure, and IMHO points to another issue.

Perhaps you have changed the Flash settings (waitstates) as well.

2 replies

AvaTar
Senior III
September 21, 2017
Posted on September 21, 2017 at 07:32

What makes you believe ROP has anything to do with it ?

Beside the mentioned assumptions.

parisa
parisaAuthor
Associate III
September 21, 2017
Posted on September 21, 2017 at 07:43

Thanks AvaTar for your comment

Actually I use ROP just for protection my micro-processor from reading.would it be possible tell me why it decreases the speed of calculation?

I appreciate it

AvaTar
AvaTarBest answer
Senior III
September 21, 2017
Posted on September 21, 2017 at 09:11

Actually I use ROP just for protection my micro-processor from reading.

I know. That's what it is made for.

My question is - what else did you change ?

There is no supposed impact of ROP on core performance.

... before enabling ReadOutProtection it could process each received Ethernet package less than 50ms but after that it takes more time(about 4times more) ...

This is a very generic measure, and IMHO points to another issue.

Perhaps you have changed the Flash settings (waitstates) as well.

Tesla DeLorean
Guru
September 21, 2017
Posted on September 21, 2017 at 14:11

Output system state like SYSCLK, APB1, APB2, etc and PLL settings.

What part are we talking about?

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..