unknown type name ‘IRQn_Type’

Comments

3 comments

  • Avatar
    Jon Elliott

    Hello Gordon,

    The core_cm0.h file is a CMSIS core header file which you would not usually include directly.

    You would normally include the device specific CMSIS header file (for example stm32f051x8.h) which defines IRQn_Type amongst other things and then includes the core_cm0.h file.

    Regards,

    Jon

     

    0
    Comment actions Permalink
  • Avatar
    Gordon Scott

    OK, found it.

    It appears I should have defined STM32F051, not STM32F051x8 and I should not include core_cm0.h directly.

    G.

    0
    Comment actions Permalink
  • Avatar
    Gordon Scott

    Oh Hi, John,

    I hadn't refreshed the page before I replied.

    I'd tried including the file stm32f051x8.h, but I'm pretty sure A was also including core_cm0.h, though after the former, which one might have thought would be OK.  Maybe my memory is faulty.

    At present, I have both of those included commented out and STM32F051 in the preprocessor defines.

    The remaining errors now seem to be entirely my own doing.

    Thanks,

                    Gordon.

    0
    Comment actions Permalink

Please sign in to leave a comment.