Loading...
 
Skip to main content

System Workbench for STM32


Include .wav file in compile

I want to include a .wav file as raw data in flash. is there a way to do this without morphing the .raw file into a header file? I need to access the .wav file as raw data to be parsed just like if you were getting off of an SD card, which I will also be doing.

Thanks!

I can't help you with integrating it into project as a straight .wav file (some parameter to linker or objcopy?), but if you're on linux making it into a header file is easy, just install the utility 'xxd' and try:
xxd -i my.wav