Skip to main content
Visitor II
October 4, 2020
Question

Standard Peripheral Library based SPI Flash Interfacing Example am looking to have.

  • October 4, 2020
  • 8 replies
  • 1708 views

Hello all ,

Am looking to have Standard Peripheral Based SPI Flash Interfacing Example code instead of HAL based.

If any one knows , pleas share.

Controller am using is Stm32f103C8t6 & Stm32f072rbt6

Rohit

ROhit

    This topic has been closed for replies.

    8 replies

    Graduate II
    October 4, 2020

    You'll need to find a generic SPL SPI example and adapt it to your specific external flash memory device based in its data sheet.

    STM32F10x_StdPeriph_Lib_V3.5.0\Project\STM32F10x_StdPeriph_Examples\SPI\SPI_FLASH\readme.txt

    RKade.1Author
    Visitor II
    October 4, 2020

    dear Clive,

    From where can I down load STM32Fx_StdPeriph_Lib_V3.5.0 ?

    Please share link to it.

    Rohit

    Super User
    October 4, 2020
    RKade.1Author
    Visitor II
    October 5, 2020

    Thanks

    I downloaded it , but unlike Hal Library examples , Ewarm folder containing examples is only single available, so how to link different peripheral projects to IAR Ewarm folder , so that I can compile it and run it ?

    Rohit

    RKade.1Author
    Visitor II
    October 5, 2020

    I think I got it , it is mentioned in Read me file. Am tring it.

    Rohit

    RKade.1Author
    Visitor II
    October 7, 2020

    Dear Clive,

    As per below text from Read me file, I compiled code , but it is showing errors:-

    ///////////////////////////////////

    @par How to use it ?

    In order to make the program work, you must do the following :

     - Copy all source files from this example folder to the template folder under

      Project\STM32F10x_StdPeriph_Template

     - Open your preferred toolchain

     - Rebuild all files and load your image into target memory

     - Run the example

    /////////////////////////////////

    Warning[25]: Label 'TIM6_DAC_IRQHandler' is defined pubweak in a section implicitly declared root E:\Rohit\St Standard Peri Lib\Zip\STM32F10x_StdPeriph_Lib_V3.5.0\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\iar\startup_stm32f10x_md_vl.s 385

    Warning[25]: Label 'TIM7_IRQHandler' is defined pubweak in a section implicitly declared root E:\Rohit\St Standard Peri Lib\Zip\STM32F10x_StdPeriph_Lib_V3.5.0\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\iar\startup_stm32f10x_md_vl.s 390

    main.c 

    Error[Pe147]: declaration is incompatible with "__nounwind __interwork __softfp unsigned int __iar_builtin_REV16(unsigned int)" (declared at line 199 of "C:\Program Files (x86)\IAR Systems\ E:\Rohit\St Standard Peri Lib\Zip\STM32F10x_StdPeriph_Lib_V3.5.0\Libraries\CMSIS\CM3\CoreSupport\core_cm3.h 1124

    Embedded Workbench 8.1\arm\inc\c\iccarm_builtin.h")

    Error[Pe147]: declaration is incompatible with "__nounwind __interwork __softfp unsigned char __iar_builtin_LDREXB(unsigned char const volatile *)" (declared at line 202 of "C:\Program Files (x86)\ E:\Rohit\St Standard Peri Lib\Zip\STM32F10x_StdPeriph_Lib_V3.5.0\Libraries\CMSIS\CM3\CoreSupport\core_cm3.h 1144

    IAR Systems\Embedded Workbench 8.1\arm\inc\c\iccarm_builtin.h")

    Error[Pe147]: declaration is incompatible with "__nounwind __interwork __softfp unsigned short __iar_builtin_LDREXH(unsigned short const volatile *)" (declared at line 203 of "C:\Program Files E:\Rohit\St Standard Peri Lib\Zip\STM32F10x_StdPeriph_Lib_V3.5.0\Libraries\CMSIS\CM3\CoreSupport\core_cm3.h 1154

    (x86)\IAR Systems\Embedded Workbench 8.1\arm\inc\c\iccarm_builtin.h")

    Error[Pe147]: declaration is incompatible with "__nounwind __interwork __softfp unsigned int __iar_builtin_STREXB(unsigned char, unsigned char volatile *)" (declared at line 207 of "C:\Program E:\Rohit\St Standard Peri Lib\Zip\STM32F10x_StdPeriph_Lib_V3.5.0\Libraries\CMSIS\CM3\CoreSupport\core_cm3.h 1175

    Files (x86)\IAR Systems\Embedded Workbench 8.1\arm\inc\c\iccarm_builtin.h")

    Error[Pe147]: declaration is incompatible with "__nounwind __interwork __softfp unsigned int __iar_builtin_STREXH(unsigned short, unsigned short volatile *)" (declared at line 208 of "C:\Program E:\Rohit\St Standard Peri Lib\Zip\STM32F10x_StdPeriph_Lib_V3.5.0\Libraries\CMSIS\CM3\CoreSupport\core_cm3.h 1186

    Files (x86)\IAR Systems\Embedded Workbench 8.1\arm\inc\c\iccarm_builtin.h")

    Please help ot remove those errors.

    Thanks

    Rohit

    RKade.1Author
    Visitor II
    October 8, 2020

    Some one please revert if having solution.

    I just compiled given example by ST standard Library Peripheral, still error in it.

    Rohit

    RKade.1Author
    Visitor II
    October 11, 2020

    Some body please share , if aware of such error.

    Waiting