BufferA and BufferB 512 elements, I think byte array to 256 elements.WAV_Player_PIC_8khz_8bit_Mono.c (194): error: Total number of array elements can not Exceed 0x100 (use-idx 2 compiler command line argument to remove this restriction)
WAV_Player_PIC_8khz_8bit_Mono.c (195): error: Total number of array elements can not Exceed 0x100 (use-idx 2 compiler command line argument to remove this restriction)
FAT Keeps Returning 255
Moderator: Benj
- STibor
- Posts: 263
- Joined: Fri Dec 16, 2011 3:20 pm
- Has thanked: 116 times
- Been thanked: 113 times
- Contact:
Re: FAT Keeps Returning 255
Error during compilation:
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: FAT Keeps Returning 255
Hello,
Whoops yes you can either create four buffers of 256 bytes or you can switch on the -idx2 functionality to allow for bigger buffers to work correctly. There is information on the forums about how to achieve this.
Whoops yes you can either create four buffers of 256 bytes or you can switch on the -idx2 functionality to allow for bigger buffers to work correctly. There is information on the forums about how to achieve this.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
- STibor
- Posts: 263
- Joined: Fri Dec 16, 2011 3:20 pm
- Has thanked: 116 times
- Been thanked: 113 times
- Contact:
Re: FAT Keeps Returning 255
Hi!
And works perfect!
Pic18F26K20 88MHz clock plays 44,1kHz and WAV files.
And works perfect!
Pic18F26K20 88MHz clock plays 44,1kHz and WAV files.

Re: FAT Keeps Returning 255
88 Mhz !
Impressive. Have you tried this on several MCU ?
Have you tested much more ?
I saw in your topic that you had problems with some SDcards.
I don't know if your problem are due to your audio application but I'am able to write on SDCARD Kingston 4Gb class 4 in FAT32 and Samsung 32 Gb class 10 FAT32 if it helps....
Impressive. Have you tried this on several MCU ?
Have you tested much more ?
I saw in your topic that you had problems with some SDcards.
I don't know if your problem are due to your audio application but I'am able to write on SDCARD Kingston 4Gb class 4 in FAT32 and Samsung 32 Gb class 10 FAT32 if it helps....
- STibor
- Posts: 263
- Joined: Fri Dec 16, 2011 3:20 pm
- Has thanked: 116 times
- Been thanked: 113 times
- Contact:
Re: FAT Keeps Returning 255
Just a PIC18F26K20 controller was tested.
Just out of curiosity.
Benj program works perfectly with 64MHz clock.
Here's a video of the sound quality.
The PIC PWM output is filtered through the line input is connected to the PC.
The webcam video I recorded.
http://www.youtube.com/watch?v=0yutlrw9 ... Ik7Km-R28Q
Just out of curiosity.
Benj program works perfectly with 64MHz clock.
Here's a video of the sound quality.
The PIC PWM output is filtered through the line input is connected to the PC.
The webcam video I recorded.
http://www.youtube.com/watch?v=0yutlrw9 ... Ik7Km-R28Q