unknown type name ‘IRQn_Type’
Try as I may, at present I can't find the right was to get rid of this error.
I need to add some additional functionality to a product I designed back in 2013. The change itself is fairly minor, but I can't get the original code to compile.
This error appears in core_cm0.h (for an STM32F051x8 project) from the Rowley headers, but neither it, nor its included define it.
It's defined in the current ST StdPeriph library V1.5.0, dated December 2014, but not in the Rowley version of the file dated 2016, so at present I'm really rather puzzled about which file(s) to use.
Oh yes, I have STM32F051x8 defined in the preprocessor section, together with library paths with the ST library ahead of the Rowley libraries.
Any suggestions, please?
Thanks,
Gordon.
-
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
-
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.
Please sign in to leave a comment.
Comments
3 comments