Reputation: 67
I'm new at hardware programming: I work with the pic18F4550 with the C compiler from microchip version 8.63. My question is: has someone example code to write a .wav file (binary data) to the flash memory of the pic18F4550?
Upvotes: 2
Views: 855
Reputation: 27593
Use a bin2c program to convert the WAV file to a C source file with the data contained in a const char
array. Then compile and link this file with your source code. Your linker should place const
variables in flash memory on the PIC.
Upvotes: 1