code execution

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

cross mob
Anonymous
Not applicable

To execute a certain code,where should it be stored?flash or sram?

0 Likes
3 Replies
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

Your compiled code is normally stored in flash since it doesn't change throughout the life of the application. It is not possible for a PSoC3 to execute code from sram (as far as I know) due to its strong Harvard architecture.

   

 

   

Bob

0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

As Bob mentioned, PSOC 3 cannot execute code out of RAM, PSOC 5 can.

   

 

   

User historically have used RAM to speed up code snippets, like ISR response,

   

and PSOC 5 can accomplish this. See http://www.cypress.com/?rID=40986

   

 

   

 

   

Regards, Dana.

0 Likes
Anonymous
Not applicable

Here is the link for executing the code from PSoC 5 SRAM - http://www.cypress.com/?rID=61932

0 Likes