cancel
Showing results for 
Search instead for 
Did you mean: 

Bug report: Error in EXTI initialization on STM32L052

osama2
Associate II
Posted on October 18, 2015 at 23:29

Hi all,

lost one day finding that this line 259 from stm32l0xx_hal_gpio.c is missing some braces:

bad (current):

temp &= ~((uint32_t)0x0F) << (4 * (position & 0x03));

right (should be):

temp &= ~(((uint32_t)0x0F) << (4 * (position & 0x03)));

Is there any quality control on Cube? :(

/Osama
3 REPLIES 3
Posted on October 18, 2015 at 23:53

I think the quality knob is set to ''Microsoft''

[DEAD LINK /public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Flat.aspx?RootFolder=/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/STM32l052%20exti%20problem&FolderCTID=0x01200200770978C69A1141439FE559EB459D7580009C4E14902C3CDE46A77F0FFD06506F5B&TopicsView=https://my.st.com/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/AllItems.aspx&currentviews=72]https://my.st.com/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Flat.aspx?RootFolder=%2fpublic%2fSTe2ecommunities%2fmcu%2fLists%2fcortex_mx_stm32%2fSTM32l052%20exti%20problem&FolderCTID=0x01200200770978C69A1141439FE559EB459D7580009C4E14902C3CDE46A77F0FFD06506F5B&TopicsView=https%3A%2F%2Fmy.st.com%2Fpublic%2FSTe2ecommunities%2Fmcu%2FLists%2Fcortex_mx_stm32%2FAllItems.aspx¤tviews=72

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
osama2
Associate II
Posted on October 19, 2015 at 00:05

oh well...

whining for good old SPL. Whoever @ST decided to discontinue and replace with this toy named ''CubeMX''? This is so frustrating...

/Osama

Posted on October 22, 2015 at 11:36

Hi Osama Dengler,

As mentioned by the ST moderator in this [DEAD LINK /public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Flat.aspx?RootFolder=/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/STM32l052%20exti%20problem&FolderCTID=0x01200200770978C69A1141439FE559EB459D7580009C4E14902C3CDE46A77F0FFD06506F5B&TopicsView=https://my.st.com/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/AllItems.aspx&currentviews=72]post, the fix will be released in STM32CubeL0 V 1.3.0.

-Shahrzad-