This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Errors with demo software

Apologies if this is obvious but I am a newbie to ARM and am struggling.

If I load STM32F429-Discovery EmWin example it compiles Ok.

Change the device from STM32F429ZIT to STM32F429IGT (on my board) I get errors:

compiling RTX_Conf_CM.c...
compiling SPI_STM32F4xx.c...
C:\Keil_v5\ARM\PACK\Keil\STM32F4xx_DFP\2.2.0\CMSIS\Driver\SPI_STM32F4xx.c(600): warning: #177-D: function "SPIX_GetVersion" was declared but never referenced static ARM_DRIVER_VERSION SPIX_GetVersion (void) {
C:\Keil_v5\ARM\PACK\Keil\STM32F4xx_DFP\2.2.0\CMSIS\Driver\SPI_STM32F4xx.c(610): warning: #177-D: function "SPIX_GetCapabilities" was declared but never referenced static ARM_SPI_CAPABILITIES SPIX_GetCapabilities (void) {
C:\Keil_v5\ARM\PACK\Keil\STM32F4xx_DFP\2.2.0\CMSIS\Driver\SPI_STM32F4xx.c(622): warning: #177-D: function "SPI_Initialize" was declared but never referenced

etc.

If I now change back to original device I still get these errors. Why?

Parents
  • Hello Derek,

    the warning comes from missing selections in the RTE_Device.h file. You find it under Device in the Project window. You need this file, to enable or disable the peripherals and also to assign the pins you are using on your board. Once you change the device, all settings in that file will be deleted and you need to configure it. As you have done nothing in that file, changing back to the original device gives the same errors (unconfigured peripherals). For more information, please check the Middleware documentation. If you have the latest version 6.2 installed have a look at file:///C:/Keil_v5/ARM/PACK/Keil/MDK-Middleware/6.2.0/Doc/General/html/mw_using_generic_steps.html#conf_drivers
    The error comes from a problem in the memory layout. Please check the example carefully and adapt it to your device.

    Kind regards,

    Christopher

Reply
  • Hello Derek,

    the warning comes from missing selections in the RTE_Device.h file. You find it under Device in the Project window. You need this file, to enable or disable the peripherals and also to assign the pins you are using on your board. Once you change the device, all settings in that file will be deleted and you need to configure it. As you have done nothing in that file, changing back to the original device gives the same errors (unconfigured peripherals). For more information, please check the Middleware documentation. If you have the latest version 6.2 installed have a look at file:///C:/Keil_v5/ARM/PACK/Keil/MDK-Middleware/6.2.0/Doc/General/html/mw_using_generic_steps.html#conf_drivers
    The error comes from a problem in the memory layout. Please check the example carefully and adapt it to your device.

    Kind regards,

    Christopher

Children