FW in RAM Debug running speed is different vs Flash Release

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

FW in RAM Debug running speed is different vs Flash Release

Jump to solution
776 Views
evgenik
Contributor IV

Hello.


I noticed that when writing a program to a Flash (Kinetis TWR-K21 development board,1024KB Flash, 128KB RAM), it starts to work much slower than when working with an internal USB debugger into RAM. How can this be? Where to look for the problem?

Thanks

Evgeni

1 Solution
675 Views
evgenik
Contributor IV

I found a solution to the problem. Some functions played from RAM take much less time than from Flash (this is a fact). I transferred critical functions to RAM. After that, the code began to work as quickly in the Release as in Debug mode.

View solution in original post

1 Reply
676 Views
evgenik
Contributor IV

I found a solution to the problem. Some functions played from RAM take much less time than from Flash (this is a fact). I transferred critical functions to RAM. After that, the code began to work as quickly in the Release as in Debug mode.