Skip to main content
osama2
Associate II
October 18, 2015
Question

Bug report: Error in EXTI initialization on STM32L052

  • October 18, 2015
  • 3 replies
  • 837 views
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
    This topic has been closed for replies.

    3 replies

    Tesla DeLorean
    Guru
    October 18, 2015
    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 (See Profile) Up vote any posts that you find helpful, it shows what's working..
    osama2
    osama2Author
    Associate II
    October 18, 2015
    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

    Nickname5522_O
    Visitor II
    October 22, 2015
    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-