Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > PSoC® 5 > Memory-dump from SRAM in PSOC Creator

Bookmark and Share
Cypress Developer CommunityTM
Forums | Videos | Blogs | Training | Rewards Program | Community Components



Memory-dump from SRAM in PSOC Creator
Moderator:
ANCY

Post Reply
Follow this topic



Memory-dump from SRAM in PSOC Creator

Kefas posted on 06 Jun 2012 2:04 AM PST
Member
2 Forum Posts

 Dear Forum

 

I'm trying to dump an array of data from SRAM in my PSOC 5 starter kit - to be able to analyze the data in Matlab. I can see the memory values in PSOC Creator, but cannot see any ways to make a proper dump to a file on my PC. Any ideas how to solve this ?

 

Cheers,

Peter

 

 




Re: Memory-dump from SRAM in PSOC Creator

Bob Marlowe posted on 06 Jun 2012 02:57 AM PST
Top Contributor
1768 Forum Posts

You'll need to implement some kind of communication between your PSoC and the PC. Depending on the Kit you use there are two easy paths: USB or RS232.

The usermodules are availlable within the PSoC chip itself the question is whether the board supports the hardware.

Beware of the USB in a FirstTouch Kit, it is used for the programming  etc for the PSoC and should not be reprogrammed.

The schematics for your kit are on the accompaning CD or can be found here on the Cypress website (Search for "Schematic" and your kit-number).

When using RS232 you'll need drivers to shift the signal-voltages to the required +- 12V (Maxim is a good source) check wheter they are already on your board.

When USB is usable, use USBUART component.

In both cases you can use Hyperterminal or an equivalent program that's based on serial communication.

 

Happy communications

Bob



Re: Memory-dump from SRAM in PSOC Creator

Kefas posted on 06 Jun 2012 03:07 AM PST
Member
2 Forum Posts

 Thank you for the swift reply !

 

I was kind of hoping not to have to go that way.. a "dump memory button" in PSoC creator would be really nice to have.. (and easy to implement I think..) :-)

 

But again, thanks for the reply.



Re: Memory-dump from SRAM in PSOC Creator

hli posted on 06 Jun 2012 03:20 AM PST
Top Contributor
675 Forum Posts

I think you can do a copy&paste from the memory window or the watch window. For the former one, you might need to mangle the data into the format you need (but CSV should be no problem). For the latter one, you will need to the data accessible in an array, and you need to increase the amount of elements show (note that this may slow down the debugger).

I have no PSoC with me to test this, but I remember to have done this for the array part.



Re: Memory-dump from SRAM in PSOC Creator

zeta posted on 06 Jun 2012 06:52 PM PST
Top Contributor
174 Forum Posts

Maybe you could do it with PSOCProgrammmer Command Line Interface. I remember that there was something like ReadRAM()






ALL CONTENT AND MATERIALS ON THIS SITE ARE PROVIDED "AS IS". CYPRESS SEMICONDUCTOR AND ITS RESPECTIVE SUPPLIERS MAKE NO REPRESENTATIONS ABOUT THE SUITABILITY OF THESE MATERIALS FOR ANY PURPOSE AND DISCLAIM ALL WARRANTIES AND CONDITIONS WITH REGARD TO THESE MATERIALS, INCLUDING BUT NOT LIMITED TO, ALL IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT OF ANY THIRD PARTY INTELLECTUAL PROPERTY RIGHT. NO LICENSE, EITHER EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, IS GRANTED BY CYPRESS SEMICONDUCTOR. USE OF THE INFORMATION ON THIS SITE MAY REQUIRE A LICENSE FROM A THIRD PARTY, OR A LICENSE FROM CYPRESS SEMICONDUCTOR.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms and Conditions of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms and Conditions of this site. Cypress Semiconductor and its suppliers reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Spec No: None; Sunset Owner: GRAA; Secondary Owner: RAIK; Sunset Date: 01/01/20