Skip to main content
Eugene S.
Associate III
January 27, 2017
Solved

[BUG]STM32CubeMX - Project loading

  • January 27, 2017
  • 7 replies
  • 2569 views
Posted on January 27, 2017 at 10:38

I use STM32CubeMX ver. 4.19.0.

I've configured DMA channel for I2S peripheral and saved the project. But when I try to open it again I get this warning:

0690X000006069mQAA.png

The project is attached.

#bug #i2s #stm32cubemx #dma
This topic has been closed for replies.
Best answer by Jeanne Joly
Posted on March 02, 2017 at 17:26

Hello

Yauhen.Sinkevich

,

Broadbooks.Craig

and

Rath.Robert

,

This issue will be solved in CubeMX4.20 and this release will come soon!

BR. Eric

7 replies

Technical Moderator
January 27, 2017
Posted on January 27, 2017 at 11:40

Hello

Yauhen.Sinkevich

,

I try to locate the file and I getthe warning when open your project.

I created a new project with STM32CubeMX 4.19 and same configuration but I cannot reproduce your issue.

I reported your feedback to our CubeMx team for more investigation.

Regards

Imen

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
Eugene S.
Eugene S.Author
Associate III
January 27, 2017
Posted on January 27, 2017 at 13:04

Thanks.

I've checked another computer with a fresh STM32CubeMX installation - same problem and MCU doesn't matter (but I tried only STMicroelectronics MCUs).

I do this to recreate the problem:

  1. create new project
  2. enable I2S1 peripheral
  3. add DMA request
  4. save project

And then try to open the project.

Jeanne Joly
Associate
February 2, 2017
Posted on February 02, 2017 at 10:30

Hello

Yauhen.Sinkevich

,

Here is a screen shot of the

http://www.st.com/content/ccc/resource/technical/document/reference_manual/4d/ed/bc/89/b5/70/40/dc/DM00135pdf/files/DM00135pdf/jcr:content/translations/en.DM00135pdf

regarding the DMA1/2 request mapping for STM32F446 MCUs :

0690X00000606ClQAI.png

You can see that it is not possible to configure DMA1 channel for I2S1 peripheral.

When I tried to reproduce your use case, I create first a nex project STM32F446ZEHx, then activate I2S1 in Half-Duplex master (as you did) and then go in DMA configuration, I tried to click on Add button to add a request (for DMA1) and an error message is raised ''No available DMA requests for configured peripherals''... That is compliant with the reference manual.

If I tired to activate for instance, SPI2 in full duplex, I can add a DMA1 request on SPI2_RX or SPI2_TX.

So I don't know how you added a DMA1 request on I2S peripheral, but it is not possible with CubeMX (as said in RM).

BR

Eric

Eugene S.
Eugene S.Author
Associate III
February 2, 2017
Posted on February 02, 2017 at 11:09

Hi

,

Yes, there is no option to configure DMA1 for I2S1 peripheral, DMA2 only. It is configured to DMA2 Stream 0 in the project attached to my original message:

Dma.SPI1_RX.0.Instance=DMA2_Stream0�?

Not sure, why you get this message: ''

No available DMA requests for configured peripherals''. 2 streams (Stream 0 and Stream 2) are available according to your screenshot from datasheet.I have this when configure DMA for I2S1 (I can choose DMA2_Stream0 or DMA2_Stream2):

0690X00000606DtQAI.png

Best regards,

Eugene.

Jeanne Joly
Associate
February 2, 2017
Posted on February 02, 2017 at 13:30

Hi

Yauhen.Sinkevich

,

Yes, I see your point.

I'll get back to you as soon as I have an update.

BR. Eric

Craig B
Associate III
February 2, 2017
Posted on February 02, 2017 at 20:05

I also have this issue, but my error is 'The SPI3_RX DMA request was not loaded.'  The result is that my dma config for I2S3 rx is not loaded and I have to go back and configure it each time I load the project.  From there I can generate the project normally with the DMA configured properly.  I will save the project, but the same thing happens in subsequent loads.  This just started happening with 4.19.0.

This is very easy to reproduce.

  • In CubeMX, create a new project (I did one for an STM32F429NGH6)
  • In pinout view, enable an I2S3 peripheral as 'Half-Duplex Master'
  • Goto Config Tab, Press 'I2S3' button to bring up configuration dialog.
  • Select DMA tab.
  • Add DMA.  
  • Select DMA request type as SPI3_TX.
  • Click 'OK'.
  • File/Save Project
  • File/Close Project
  • Open the project you just saved.
  • You should get the error dialog.  In this case it complains about SPI3_TX.  In my case I have my I2S configured as a Master Mode Receive, so I get the same error for SPI3_RX.

Let me know if I can provide any additional information that might help.

Thanks,

Craig

Robert Rath
Associate II
February 7, 2017
Posted on February 07, 2017 at 22:53

I have the identical problem with STM32F745 but it seems to be consistent with any STM32 component which supports both I2S and DMA. The problem only occurs when the mode is configured to RX and DMA configuration is Peripheral to Memory.

Robert

Jeanne Joly
Jeanne JolyBest answer
Associate
March 2, 2017
Posted on March 02, 2017 at 17:26

Hello

Yauhen.Sinkevich

,

Broadbooks.Craig

and

Rath.Robert

,

This issue will be solved in CubeMX4.20 and this release will come soon!

BR. Eric

Craig B
Associate III
March 2, 2017
Posted on March 02, 2017 at 18:45

Thanks for the update Eric.  I look forward to the release.

Technical Moderator
March 7, 2017
Posted on March 07, 2017 at 13:47

Hello

Yauhen.Sinkevich

,

Broadbooks.Craig

,

Rath.Robert

,

The new release of

http://www.st.com/content/st_com/en/products/development-tools/software-development-tools/stm32-software-development-tools/stm32-configurators-and-code-generators/stm32cubemx.html

4.20 is available now with the fix of this bug as mentioned in the

http://www.st.com/content/ccc/resource/technical/document/release_note/b2/02/4b/e3/81/32/49/c4/DM001076pdf/files/DM001076pdf/jcr:content/translations/en.DM001076pdf

Release note STM32CubeMX release 4.0.

Regards

Imen

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks