I2S on STM32F446ZE micro controller to check(test) microsemi ZL38063
Here I am trying to generate a simple example of sine wave to pass over I2S and just send the data on ZL38063(slave) using STM32F446ZE .
Clock is working fine @1.5Mhz and WS @48Khz and also getting PWM data on SD line.
I am not able to hear any kind of sound on speaker connected with ZL38063.
Here I am unable to debug further.
PS below simple c code
HAL_Init();
SystemClock_Config();
MX_GPIO_Init();
MX_I2S2_Init();
MX_SPI1_Init();
MX_DAC_Init();
MX_UART5_Init();
MX_ADC1_Init();
MX_I2C1_Init();
MX_SDIO_SD_Init();
MX_FATFS_Init();
HAL_I2S_Init(&hi2s2);
uint16_t test = 0;
int index = 0;
bool channel = false;
while(1) {
if (HAL_I2S_GetState(&hi2s2) == HAL_I2S_STATE_READY)
{
hal_res =
HAL_I2S_Transmit(&hi2s2,&SINE_TABLE[index],256,50);
channel = !channel;
if (channel)
{
index++;
index = index % 256;
}
}
else
{
test = 5;
}
}
audio-streaming stm32 microchip
add a comment |
Here I am trying to generate a simple example of sine wave to pass over I2S and just send the data on ZL38063(slave) using STM32F446ZE .
Clock is working fine @1.5Mhz and WS @48Khz and also getting PWM data on SD line.
I am not able to hear any kind of sound on speaker connected with ZL38063.
Here I am unable to debug further.
PS below simple c code
HAL_Init();
SystemClock_Config();
MX_GPIO_Init();
MX_I2S2_Init();
MX_SPI1_Init();
MX_DAC_Init();
MX_UART5_Init();
MX_ADC1_Init();
MX_I2C1_Init();
MX_SDIO_SD_Init();
MX_FATFS_Init();
HAL_I2S_Init(&hi2s2);
uint16_t test = 0;
int index = 0;
bool channel = false;
while(1) {
if (HAL_I2S_GetState(&hi2s2) == HAL_I2S_STATE_READY)
{
hal_res =
HAL_I2S_Transmit(&hi2s2,&SINE_TABLE[index],256,50);
channel = !channel;
if (channel)
{
index++;
index = index % 256;
}
}
else
{
test = 5;
}
}
audio-streaming stm32 microchip
Isolate the problem, go from there. Does communication with ZL38063 work? What commands are you sending? Have you got an oscilloscope? Schematic and self-contained compilable source code that exhibits the problem?
– domen
Jan 3 at 13:27
Hi @domen I have seen waveform of I2S on oscilloscope. I got signals on SD,WS and CLK lines of I2S. These lines are connected with ZL38063 board , but not getting any sine wave on output side DAC (we have put a speaker)of audio processor.SO how can i debug further?
– Nirav Patel
Jan 4 at 4:26
Hi @domen please answer
– Nirav Patel
Jan 7 at 10:34
My first comment is still valid. What have you done since then? Update the post with new info please.
– domen
Jan 7 at 11:02
@domen Step 1). I will load Audio DSP firmware using it's PC application. Step 2). I will Configure I2S for STM32 micro controller and generate sine wave of 1khz. Step 3). Expecting output from Audio DSP to play ton on speaker which i am not getting..
– Nirav Patel
Jan 7 at 11:34
add a comment |
Here I am trying to generate a simple example of sine wave to pass over I2S and just send the data on ZL38063(slave) using STM32F446ZE .
Clock is working fine @1.5Mhz and WS @48Khz and also getting PWM data on SD line.
I am not able to hear any kind of sound on speaker connected with ZL38063.
Here I am unable to debug further.
PS below simple c code
HAL_Init();
SystemClock_Config();
MX_GPIO_Init();
MX_I2S2_Init();
MX_SPI1_Init();
MX_DAC_Init();
MX_UART5_Init();
MX_ADC1_Init();
MX_I2C1_Init();
MX_SDIO_SD_Init();
MX_FATFS_Init();
HAL_I2S_Init(&hi2s2);
uint16_t test = 0;
int index = 0;
bool channel = false;
while(1) {
if (HAL_I2S_GetState(&hi2s2) == HAL_I2S_STATE_READY)
{
hal_res =
HAL_I2S_Transmit(&hi2s2,&SINE_TABLE[index],256,50);
channel = !channel;
if (channel)
{
index++;
index = index % 256;
}
}
else
{
test = 5;
}
}
audio-streaming stm32 microchip
Here I am trying to generate a simple example of sine wave to pass over I2S and just send the data on ZL38063(slave) using STM32F446ZE .
Clock is working fine @1.5Mhz and WS @48Khz and also getting PWM data on SD line.
I am not able to hear any kind of sound on speaker connected with ZL38063.
Here I am unable to debug further.
PS below simple c code
HAL_Init();
SystemClock_Config();
MX_GPIO_Init();
MX_I2S2_Init();
MX_SPI1_Init();
MX_DAC_Init();
MX_UART5_Init();
MX_ADC1_Init();
MX_I2C1_Init();
MX_SDIO_SD_Init();
MX_FATFS_Init();
HAL_I2S_Init(&hi2s2);
uint16_t test = 0;
int index = 0;
bool channel = false;
while(1) {
if (HAL_I2S_GetState(&hi2s2) == HAL_I2S_STATE_READY)
{
hal_res =
HAL_I2S_Transmit(&hi2s2,&SINE_TABLE[index],256,50);
channel = !channel;
if (channel)
{
index++;
index = index % 256;
}
}
else
{
test = 5;
}
}
audio-streaming stm32 microchip
audio-streaming stm32 microchip
asked Jan 3 at 11:25
Nirav PatelNirav Patel
13
13
Isolate the problem, go from there. Does communication with ZL38063 work? What commands are you sending? Have you got an oscilloscope? Schematic and self-contained compilable source code that exhibits the problem?
– domen
Jan 3 at 13:27
Hi @domen I have seen waveform of I2S on oscilloscope. I got signals on SD,WS and CLK lines of I2S. These lines are connected with ZL38063 board , but not getting any sine wave on output side DAC (we have put a speaker)of audio processor.SO how can i debug further?
– Nirav Patel
Jan 4 at 4:26
Hi @domen please answer
– Nirav Patel
Jan 7 at 10:34
My first comment is still valid. What have you done since then? Update the post with new info please.
– domen
Jan 7 at 11:02
@domen Step 1). I will load Audio DSP firmware using it's PC application. Step 2). I will Configure I2S for STM32 micro controller and generate sine wave of 1khz. Step 3). Expecting output from Audio DSP to play ton on speaker which i am not getting..
– Nirav Patel
Jan 7 at 11:34
add a comment |
Isolate the problem, go from there. Does communication with ZL38063 work? What commands are you sending? Have you got an oscilloscope? Schematic and self-contained compilable source code that exhibits the problem?
– domen
Jan 3 at 13:27
Hi @domen I have seen waveform of I2S on oscilloscope. I got signals on SD,WS and CLK lines of I2S. These lines are connected with ZL38063 board , but not getting any sine wave on output side DAC (we have put a speaker)of audio processor.SO how can i debug further?
– Nirav Patel
Jan 4 at 4:26
Hi @domen please answer
– Nirav Patel
Jan 7 at 10:34
My first comment is still valid. What have you done since then? Update the post with new info please.
– domen
Jan 7 at 11:02
@domen Step 1). I will load Audio DSP firmware using it's PC application. Step 2). I will Configure I2S for STM32 micro controller and generate sine wave of 1khz. Step 3). Expecting output from Audio DSP to play ton on speaker which i am not getting..
– Nirav Patel
Jan 7 at 11:34
Isolate the problem, go from there. Does communication with ZL38063 work? What commands are you sending? Have you got an oscilloscope? Schematic and self-contained compilable source code that exhibits the problem?
– domen
Jan 3 at 13:27
Isolate the problem, go from there. Does communication with ZL38063 work? What commands are you sending? Have you got an oscilloscope? Schematic and self-contained compilable source code that exhibits the problem?
– domen
Jan 3 at 13:27
Hi @domen I have seen waveform of I2S on oscilloscope. I got signals on SD,WS and CLK lines of I2S. These lines are connected with ZL38063 board , but not getting any sine wave on output side DAC (we have put a speaker)of audio processor.SO how can i debug further?
– Nirav Patel
Jan 4 at 4:26
Hi @domen I have seen waveform of I2S on oscilloscope. I got signals on SD,WS and CLK lines of I2S. These lines are connected with ZL38063 board , but not getting any sine wave on output side DAC (we have put a speaker)of audio processor.SO how can i debug further?
– Nirav Patel
Jan 4 at 4:26
Hi @domen please answer
– Nirav Patel
Jan 7 at 10:34
Hi @domen please answer
– Nirav Patel
Jan 7 at 10:34
My first comment is still valid. What have you done since then? Update the post with new info please.
– domen
Jan 7 at 11:02
My first comment is still valid. What have you done since then? Update the post with new info please.
– domen
Jan 7 at 11:02
@domen Step 1). I will load Audio DSP firmware using it's PC application. Step 2). I will Configure I2S for STM32 micro controller and generate sine wave of 1khz. Step 3). Expecting output from Audio DSP to play ton on speaker which i am not getting..
– Nirav Patel
Jan 7 at 11:34
@domen Step 1). I will load Audio DSP firmware using it's PC application. Step 2). I will Configure I2S for STM32 micro controller and generate sine wave of 1khz. Step 3). Expecting output from Audio DSP to play ton on speaker which i am not getting..
– Nirav Patel
Jan 7 at 11:34
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54021374%2fi2s-on-stm32f446ze-micro-controller-to-checktest-microsemi-zl38063%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54021374%2fi2s-on-stm32f446ze-micro-controller-to-checktest-microsemi-zl38063%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Isolate the problem, go from there. Does communication with ZL38063 work? What commands are you sending? Have you got an oscilloscope? Schematic and self-contained compilable source code that exhibits the problem?
– domen
Jan 3 at 13:27
Hi @domen I have seen waveform of I2S on oscilloscope. I got signals on SD,WS and CLK lines of I2S. These lines are connected with ZL38063 board , but not getting any sine wave on output side DAC (we have put a speaker)of audio processor.SO how can i debug further?
– Nirav Patel
Jan 4 at 4:26
Hi @domen please answer
– Nirav Patel
Jan 7 at 10:34
My first comment is still valid. What have you done since then? Update the post with new info please.
– domen
Jan 7 at 11:02
@domen Step 1). I will load Audio DSP firmware using it's PC application. Step 2). I will Configure I2S for STM32 micro controller and generate sine wave of 1khz. Step 3). Expecting output from Audio DSP to play ton on speaker which i am not getting..
– Nirav Patel
Jan 7 at 11:34