[BUG]STM32CubeMX - Project loading
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-01-27 1:38 AM
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:
The project is attached.
#bug #i2s #stm32cubemx #dmaSolved! Go to Solution.
- Labels:
-
Bug-report
-
DMA
-
I2S
-
STM32CubeMX
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-03-02 8:26 AM
Hello
Yauhen.Sinkevich
,Broadbooks.Craig
andRath.Robert
,This issue will be solved in CubeMX4.20 and this release will come soon!
BR. Eric
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-01-27 2:40 AM
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
Thanks
Imen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-01-27 4:04 AM
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:
- create new project
- enable I2S1 peripheral
- add DMA request
- save project
And then try to open the project.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-02-02 1:30 AM
Hello
Yauhen.Sinkevich
,Here is a screen shot of the
regarding the DMA1/2 request mapping for STM32F446 MCUs :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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-02-02 2:09 AM
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):
Best regards,
Eugene.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-02-02 4:30 AM
Hi
Yauhen.Sinkevich
,Yes, I see your point.
I'll get back to you as soon as I have an update.
BR. Eric
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-02-02 11:05 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-02-07 2:53 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-03-02 8:26 AM
Hello
Yauhen.Sinkevich
,Broadbooks.Craig
andRath.Robert
,This issue will be solved in CubeMX4.20 and this release will come soon!
BR. Eric
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-03-02 10:45 AM
Thanks for the update Eric. I look forward to the release.
