cancel
Showing results for 
Search instead for 
Did you mean: 

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

RKade.1
Associate III

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

8 REPLIES 8

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

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
RKade.1
Associate III

dear Clive,

From where can I down load STM32Fx_StdPeriph_Lib_V3.5.0 ?

Please share link to it.

Rohit

TDK
Guru

> From where can I down load STM32Fx_StdPeriph_Lib_V3.5.0 ?

https://www.st.com/content/st_com/en/products/embedded-software/mcu-mpu-embedded-software/stm32-embedded-software/stm32-standard-peripheral-libraries/stsw-stm32054.html

If you feel a post has answered your question, please click "Accept as Solution".
RKade.1
Associate III

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.1
Associate III

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

Rohit

RKade.1
Associate III

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.1
Associate III

Some one please revert if having solution.

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

Rohit

RKade.1
Associate III

Some body please share , if aware of such error.

Waiting