cancel
Showing results for 
Search instead for 
Did you mean: 

how to save voice recorder data on STM32F769 Discovery without using USB key ?

Minh Phan
Associate II
Posted on December 14, 2017 at 03:38

Hi everybody!

I have a project which uses STM32F769 Discover board.

In my project, I want to record voice, save that voice data and then play that data after I press user button.

I also referred to demonstration example (on STM32Cube_FW_F7_V1.8.0)  and found that, in that demonstration example, the recorded data is saved on USB.

Could you please tell a suggestion to save that voice data without using USB if my voice data is less than 1MB.

Thank you for your attention.

#audio-playback #stm32cubef7 #stm32f7-discovery #audio-recording
6 REPLIES 6
Posted on December 14, 2017 at 19:18

Short term, the SDRAM

You could then write into QuadSPI FLASH, or to a MicroSD card

Tips, buy me a coffee, or three.. PayPal Venmo Up vote any posts that you find helpful, it shows what's working..
john doe
Lead
Posted on December 14, 2017 at 19:18

the board also has an sd card slot

Posted on December 15, 2017 at 02:18

Could you tell me more detail about saving on SDRAM or QSPI memory, I try to save voice data to QSPI at address of 0x3F60000 but not successful.

Posted on December 15, 2017 at 06:44

The SDRAM when configured presents at 0xC0000000, and can be read and written like internal RAM, only slower.

The QSPI memory is going to require more involvement to write

STM32Cube_FW_F7_V1.8.0\Projects\STM32F769I-Discovery\Examples\BSP\Src\qspi.c

BSP_QSPI_Erase_Block()

BSP_QSPI_Write()

Tips, buy me a coffee, or three.. PayPal Venmo Up vote any posts that you find helpful, it shows what's working..
Posted on December 15, 2017 at 06:49

I found the reason why I cannot write to QSPI memory is that, in demostration project, the QSPI memory is configured to memory-mapped mode. In that mode we cannot write to QSPI memory.

Now I am trying to write data to SDRAM.

Posted on December 15, 2017 at 12:41

in memory mapped mode it presents at 0x90000000 and when not memory mapped mode, its at 0x00000000.  you need to erase blocks before writing to them, so qspi is very slow.

https://github.com/ProjectsByJRP/uSDcard_to_QSPI_flash

Here's a project I made that reads files from the uSD card into SDRAM, and writes them to the QSPI flash on stm32f769i_discovery.