cancel
Showing results for 
Search instead for 
Did you mean: 

FLASH_ReadOutProtection decreases speed of execuation

parisa
Senior
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
1 ACCEPTED SOLUTION

Accepted Solutions
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.

View solution in original post

4 REPLIES 4
AvaTar
Lead
Posted on September 21, 2017 at 07:32

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

Beside the mentioned assumptions.

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

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.

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 Venmo
Up vote any posts that you find helpful, it shows what's working..