AnsweredAssumed Answered

STM32F429I-DISCO Board - Accessing Embedded SRAM & Data Transfer to PC

Question asked by imtiaz.sakib on Aug 10, 2015
Latest reply on Aug 17, 2015 by imtiaz.sakib
Hello,

Here is a problem I'm currently working on:

Board: STM32F49I-DISCOVERY
Microcontroller: STM32F429ZIT6U


Goal: Access embedded SRAM (112 KB, 16 KB, 64 KB) and transfer content of memory to PC. For e.g. I am sending bytes to a PC which will eventually be a sequence of 0's and 1's that correspond to a specific memory location for the microcontroller.

I've set up a template project using the STM32CubeF4 package for the IAR EWARM toolchain and it has an empty main entrypoint. I created a function readEmbeddedSRAM which has a pointer to memory address 0x20020000 which is the beginning of the memory block of 64 KB in the memory map of ARM Cortex M4 based microcontrollers (which is the core of the ST microcontroller I'm using). Now, I am reading this byte accordingly but how do I send this information to the PC? Would I be able to console output this data or send it via USB using VCOM port interface? I need the memory contents of the 64 KB SRAM in between 0x20020000 and 0x2002FFFF.  I essentially need a mechanism to acquire this data. A screenshot is shown below/attached.

embedded_sram_access.png

Ideas: 
- I was thinking of setting up USB CDC to transfer data to my laptop/PC via the USER USB connector using the USB-OTG peripheral. How can I replicate the project CDC_Standalone in the STM32F4x29I-EVAL -> Applications -> USB_Device directory to be compatible with my STM32F429I-DISCOVERY board that I have. It appears that data/bytes are transferred via a VCOM port to the PC.
- How can I print the contents of the memory to the console output or somehow else view this information? Once I have the data - I can analyze it accordingly to my liking and perform statistics.

Any help/feedback/pointers are sincerely appreciated!

- Sakib I.

Outcomes