cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 4 MCU

Anonymous
Not applicable

I need to calculate the checksum for sections of FLASH memory that contain the program.

   

How can I read FLASH?

   

Thanks,

   

Paul.

0 Likes
Reply
3 Replies
JoMe_264151
Expert II

Use pointer arithmetic, as

   

uint8 * Mypointer;

   

Assign your starting address to it and read from as

   

Sum += *(Mypointer++);

   

 

   

Bob

0 Likes
Reply
Anonymous
Not applicable

Easier than I expected 🙂

   

Thanks, Paul.

0 Likes
Reply
ETRO_SSN583
Esteemed Contributor

This covers the organization of memory, and name of pointers to it -

   

 

   

http://www.cypress.com/documentation/application-notes/an89610-psoc-4-and-psoc-5lp-arm-cortex-code-o...     AN89610 - PSoC® 4 and PSoC 5LP ARM Cortex Code Optimization

   

 

   

cydevice.h contains key base addresses. Auto generated, in workspace explorer.

   

 

   

Regards, Dana.

0 Likes
Reply