2014-06-07 05:35 AM
Hi,
I'm using STM32CubeMX for a STM32F205 MCU.There is a problem with the use of the ADC1 configuration, regarding Injected Groups. 1/ when I choose the number of injected conversions, lots of intrusive 'ranks' display on the frame (normally, you should have the same number of visible ranks than the chosen number of conversions). I join a screenshot. Note that the generation of the code is consistent with the display - but then it generates a wrong code, that doesn't work, and that need to be manually changed. 2/ the number of injected conversions is missing at the code generation, and then the configuration of the ADC1 is wrong, the register JSQR is not filled, and it doesn't work. You must add it manually too. ''sConfigInjected.InjectedNbrOfConversion = 1...4''.Idem for ADC2.
3/ the JAUTO mode is missing at the code generation, and then the configuration of the ADC1 is wrong (I don't even know why JAUTO is set without doing anything!) and it doesn't work. You must add it manually too. ''sConfigInjected.AutoInjectedConv = DISABLE;''. Idem for ADC2.4/ in the configuration tab (of ADC1), when pushing on 'Apply' or 'OK' button, CubeMX crashes often. I'm on Windows7 pro 64. Can the ST team : - confirm that it is a bug ? - let us know when it will be fixed ? - let us know when is planned the next update ? Thanks, #bug #adc #st32cubemx #injected #!bug #adc #cubemx2014-06-18 05:26 AM
Hi,
i have the same problem with STM32F407VGTx. Is there any bugfix available? Thanks2014-06-23 12:57 AM
2014-06-23 04:15 AM
Hello,
it is working now. Thank you very much.2014-06-24 03:36 AM
Hi,
Thanks for your update.But it still does'nt work, even if some bugs have been fixed. Regarding my first post, problem 1/ is fixed. But problems 2/ and 3/ are still there : the number of injectedChannels is set at 4 by the generated code, even if I select an other number in the config tab ! Moreover, even if I set the 'Injected Conversion Mode' to ''none'' , the JAUTO bit is set by the generated code. To finish, why don't you allow a ''0'' number of regular channel conversions ?In my application, I don't need regular conversion, but the code is even though generated and it is useless and could be a source of problems.So, please, fix these 3 things because at now, I can not rely on the automatic generated code. When could it be done ?Regards,2014-06-25 12:21 AM
Hi,
have you tried to disable the ADC part (Pinout view) and than configue it again? In my application it worked. Regards2014-07-04 05:25 AM
Hello,
Yes, I did.But the following parameters should be generated : sConfigInjected.InjectedNbrOfConversion = ... ; sConfigInjected.AutoInjectedConv = ... ;And since it's not, they stay at there default value and then it's still not OK.Regards,2014-09-24 01:13 AM
Hello,
Fixes for these issues will be delivered in STM32CubeMX 4.4 that should be posted next week. Best Regards2014-10-17 05:33 AM
2015-01-04 05:19 AM
Hi.
For issue #1 its also present in ver 4.5.
I saw a work around that if you lower the ''number of conversion'' to 1 and then increase it back to the number that you want, it will fix the issue.
Good luck.