::: Warning: this maybe a silly question :::
what kind of audio files can I play with the KwikStik module?
I am playing with the demo example code (understanding a little really as it's all new for me).
But to me it looks like the recorder application sotres "somehow" the audio input in some "form" in memory and then it plays it.... using _PIT0_Enable() ??? (Is that correct?)
Is it possible to play audio files?
in which way should I encode them?
I didn't find any guide/documentation about this... but I am sure it must exist somewhere.
Can someone kindly provide any link?
Thanks for your help,
We have a demo that is able to play wav files (8, 11 e 22khz) from SD card.
We hope that you enjoy it.
the problem with your example is that it doesn't uses MQX but BRTOS.
Then before trying to engage myself with BRTOS I would like to know what kind of license it has, has from the web site it is not clear to me if I can distribute code written for BRTOS in a real product (if I ever manage to go there).
Can you provide more infor about it please?
The BRTOS license is completely free, based on the MIT license:
This information is in the section "Project Information" of the BRTOS website. Therefore, you can distribute code written for BRTOS in a real product. Even, you can modify and close the BRTOS code and distribute it in a product.
But, if you would like to use MQX, you can get our code and replace the BRTOS functions for the MQX functions (semaphores, mailboxs, etc).
I was just about to come back to you when noticed your message:
I just spent a couple of hours with your example code and you are right: your code is not heavily dependent from BRTOS, so it helps me a lot to understand how to do it.
It is a good example, thanks for this!
Glad to know about the BRTOS license too: I will consider this if planning to move towards a product.
Finally, I read somewhere that the Kwikstik K40 had a broken by design SD card module, but you seem to be using that.
Do you have a workaround for the SD Card reader or it was just an obsolate information and it is working ok?
Thanks for your help,
You are right, there is a problem with the kwikstik SD card connections. In the TWR-K60N512-kit i was able to use the SDHC module, reaching more than 1MB/s. However, the SDHC connections in kwikstik are wrong. We did a little workaround implementing a software SPI in order to access the SD card. The only problem is the low performance (120KB/s).
today on a live chat with FS I was told that the SD card problem has been fixed since version 4.
(I have 1-10-18_Ver4).
On the other hand I can't succeed making this call working:
com_handle = fopen (BSP_SDCARD_ESDHC_CHANNEL, NULL);
Can you please confirm if version 4 is broken or not?
If it is, is there any fix one could adopt?
Have a look to the HW errata:
KWIKSTIK_04: SD Card signals connected to incorrect pins
The SD card connector's data pins (DATA0-DATA3) are connected to SDHC0_D4-SDHC0_D7 which are unused in 4 bit mode.
No practical workaround is available.
This issue will be fixed starting in version 5.
Regarding SD for Kwikstik and MQX, when MQX3.7 patch was launched Rev5 was not ready, BSP doesn't include support for SD, but can work fine. The mux configuration can be copied from TWR-K40 BSP to enable SD in Kwikstik.
The kwikstik patch on Freescale website had been updated to support Kwikstik rev 5 - Support both the 2 hardware fixes RTC and SDHC.
Remember to change the macro in user config to not support REV5 in case you want to use that patch with older hardware revision.
it's a brilliant news... but which patch is it?
The only one I see available in here:
is the MQX 3.7.0, rev 1, modified 8/12/2011.
In the release notes it says:
5.3 KwikStik – Rev 3 SD Card module
The SD card connector's data pins (DATA0~DATA3) are connected to SDHC0_D4~SDHC0_D7 while that pins are unused in 4 bits mode. So we cannot use SDHC support
Are you referring to a different patch that I am not aware of?
The link in your post is what I meant.
As I understand, the release note means the patch support SDHC of rev 5 board, but that is not possible for rev 3. You can see a warning message about that when compile bsp project...
I have still few problems trying to understand your suggestion:
> "Remember to change the macro in user config to not support REV5 in case you want to use that patch with older hardware revision."
I don't have such a macro in my user_config.h or anything similar.
There is the macro:
#define BSPCFG_ENABLE_ESDHC 0
which I presume must be enabled, right?
Still it would give an error on init_bsp.c line 220:
#error This modul unsupported with Kiwkstik Board.Please disable BSPCFG_ENABLE_ESDHC to 0 in user_config.h
I can try to comment it.
On bsp_rev.h there is this macro:
#define BSP_REVISION 01
is it this one that I have to overwrite with revision 04? (I have kwikstik rev 4).
I feel _a bit_ lost :smileyhappy:
thanks for your suggestions,
Oh sorry Mik,
I have mistake. The patch I refered to hasn't been on Freescale website yet.
You may have to wait for it...
BTW, the new patch is not valuable if you don't have Rev 5 board. If you have new rev 5 already, I think you can ask Freescale support to give you their new package.