Reading PSoC Programming FLASH

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

cross mob
Anonymous
Not applicable

Hi

   

I wanted know,

   

1. Is there is a way to read the PSOC Programm Flash (which is upto 256K in PSOC-5 devices) in which the compiled program is stored. Also how to know the end of programm.

   

2. Can I assign any ISR a fixed location in Flash.

   

3. Can an  ISR or function be loaded for the main program as a separately compiled PSoC project.

   

 

   

Regards

   

Ajay

0 Likes
2 Replies
HeLi_263931
Level 8
Level 8
100 solutions authored 50 solutions authored 25 solutions authored

1) PSoC programmer should be able to read Flash memory (as long as it isn't protected). But it doesn't know anything about the length of the program - you will no to determine that by looking where the erased blocks start.

   

2) Should be possible, you need to look this up in the GCC linker configuration documentation (but why do you want to do that?)

   

3) you can provide part of your project as library (lib*.a file), which can then be incorporated during linking. Its not possible during runtime.

0 Likes
JobinT_31
Employee
Employee
50 solutions authored 25 solutions authored 10 solutions authored

Hi Ajay,

   

#2 See chapter 9 : http://www.cypress.com/file/46521/download

   

Thanks

   

JOBIN

0 Likes