cancel
Showing results for 
Search instead for 
Did you mean: 

Which peripheral firmware library function to be used?

cnlim89
Associate
Posted on July 26, 2011 at 19:55

Hi all,

Could anyone point me to a tutorial on which relevent  ARM peripheral firmware library to be used for a specific usage, eg: reading an SD card?

I am currenltly working on a project using STM32F103VE. This is my first time trying with an AM processor.

I found this UM0427 from ST which explain each and every single firmware libarry function, but I need a guideline on which peripheral function to be included in the C program to enable certain ARM ability. Really appreciate it if there is a readily tutorail and guideline to refer to.

Thanks

#firmware
4 REPLIES 4
Posted on July 26, 2011 at 20:50

The firmware libraries are more of a HAL (Hardware Abstraction Layer), and hides the bit level configuration of the peripherals.

To talk to an SD Card you're going to need driver layer code that sits on top of the HAL and talks to the card, and to access it at a file level you will need a file system layer to implement the FAT file system, or whatever.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
infoinfo966
Associate II
Posted on July 27, 2011 at 08:25

Hi,

unfortunately there is no extensive tutorial, but there are a lot of examples for different applications. When you download the StandardPeripheral Libs you find and Windows Help file in the root folder stm32f10x_stdperiph_lib_um.chm

This should help you

Best

Tom

ColdWeather
Senior
Posted on July 27, 2011 at 10:50

Hi all,

Could anyone point me to a tutorial on which relevent  ARM peripheral firmware library to be used for a specific usage, eg: reading an SD card

What development enviroment are you using?

If KEIL with RL installed - take a look at RL-FlashFS.

Else look at

http://elm-chan.org/fsw/ff/00index_e.html

Anyway, as said, ST peripheral driver library has no ''high level I/O'' functions to access such devices like SD, LCD, etc...

rosarium
Associate II
Posted on July 27, 2011 at 11:56

attached are some files to interface SD card. As you are using STM32F103VE, SDIO will be better option to interface SD card.

Also as said earlier if you want to do files handling in SD card, then you also have to use a file system. EFSLor FAT_FS-ELM are some free file system available in the web.

________________

Attachments :

stm32_eval_sdio_sd.c : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006I0QM&d=%2Fa%2F0X0000000baV%2FnviWGu71JDGUNWxaMwJKxN3Sq7uXUMgrZpZ7yKy_8b4&asPdf=false

stm32_eval_sdio_sd.h : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006I0X8&d=%2Fa%2F0X0000000baW%2F5t2A9nrHjd1UuTJrV1YqnAmv0g4ix4ZZ2ei6oNgX3jo&asPdf=false