Skip to main content
Andrei Chichak
Lead
May 7, 2018
Solved

CubeMX V4.25.0 Bug. CubeMX won't generate EXTI support code.

  • May 7, 2018
  • 1 reply
  • 901 views
Posted on May 07, 2018 at 19:27

Create a new project for a DiscoveryF4 or a Nucleo-144 767. Both of these boards has a push button on it.

The disco's button is set for external event mode, set it for External interrupt mode in the GPIO configuration tab. The nucleo already comes set for interrupt mode, do nothing.

Click into the NVIC configuration. Notice that there is no affordance to generate the interrupt support code.

This worked previously but has now regressed.

Andrei

    This topic has been closed for replies.
    Best answer by Andrei Chichak
    Posted on May 10, 2018 at 17:57

    I determined what my issue is. By default, the 'Show only enabled interrupts' box is selected. This was hiding quite a few interrupt sources.

    Thank you for your assistance.

    1 reply

    Pavel A.
    Super User
    May 7, 2018
    Posted on May 08, 2018 at 01:22

    Are you sure?  Checked all the needed checkboxes in the NVIC settings?

    -- pa

    Andrei Chichak
    Lead
    May 8, 2018
    Posted on May 08, 2018 at 02:08

    Yes, there is no checkbox to check. It's missing.

    A while back, I wrote an article on how to do interrupts on an STM32F407 discovery board using the buttons. So after I couldn't figure out how to do it on 4.25.0, I went back to my own instructions and I even say:

    Next, click on the device called

    NVIC

    . The NVIC is ST’s “Nested vectored interrupt controller�. Check the enabled box next to “EXTI line0 Interrupt�. Click Ok.

    But the line with the box isn't there anymore.

    The best thing is that the button on the Nucleo board, right in Cube, without any modifications, is set for interrupts and the line doesn't show up.

    A

    Nawres GHARBI
    Technical Moderator
    May 10, 2018
    Posted on May 10, 2018 at 11:29

    Hi

    Chichak.Andrei

    If using the F767 Nucleo, the button will be on PC13, so you have to select EXTI[15:10] interrupt line