cancel
Showing results for 
Search instead for 
Did you mean: 

how to use STM324xG-EVAL projects on STM32F4 discovery board

rishi
Associate II
Posted on June 09, 2012 at 20:15

how to use STM324xG-EVAL projects on STM32F4 discovery board????

friends i am new to discovery board...nd i want to use SDIO of discovery....bt example progrms for discovry doesnt contain SDIO program bt for STM324xG-EVAL board all examples are there...so is there any way to use those STM324xG-EVAL examples on discovery board....help needed...plz

#stm32f4discovery-stm3240g-sdio
4 REPLIES 4
Posted on June 10, 2012 at 00:32

You have to make sure that the pin definition match those of your board, and the defines match either the board you're trying to emulate, or create another board definition.

The trick with making a project is to either be very aware of the settings, or to clone/duplicate an example/template project, and then add in the groups and files required. Pay attention also to the include paths that the project needs. As you attempt to build the project it may be come clear that you need to pull in additional files or add additional include paths.

How easy this is will depend on your IDE, and your familiarity with driving it.

Once you have a building project you will have a more complete idea about the components needed.

Another tip is to actually read the README.TXT files as they contain useful directions about the firmware example projects.
Tips, buy me a coffee, or three.. PayPal Venmo Up vote any posts that you find helpful, it shows what's working..
jlchoobs
Associate II
Posted on June 11, 2012 at 06:32

Yes, this Project is workable.

I have it working on Atrollic Lite Compiler for the Stm32F4Discovery Brd.

And, I am trying to port it over to the Code Sourcery Lite / WinArm.

- I would suggest Not using Keil - it uses messy Header Libraries.

* You need to download the Stm32F4_Lib

 * and the Stm3240g_Firmware.

* Most Pinouts are the same.

* You need to disable many of the extra features (like LCD and FSMC).

* You need to modify the CLK settings.
arnold
Associate II
Posted on June 27, 2012 at 19:32

Is it possible to share your code with me. 

I realy would like to know how to connect a sd card to my stm32f4discovery board.

ore give a more detail explanation on how you did it. 
Posted on June 27, 2012 at 20:18

Here's the code I ported to the STM32F4 Discovery during the conversations with JLC, I'm waiting on some breakout boards to test on the Discovery, my test platform is a custom STM32F2 board. There is some discussion as to whether PC.02 is usable on a Discovery board, it's listed as unused.

There is a README.TXT file that describes my pin expectations. Review schematics for the STM3240G board for additional insight. I also have this as a Keil 4 project.

Project source has been posted here

[DEAD LINK /public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Flat.aspx?RootFolder=/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Where is the UsbMassStorage Examples Supt for stm32f4xx&FolderCTID=0x01200200770978C69A1141439FE559EB459D7580009C4E14902C3CDE46A77F0FFD06506F5B&TopicsView=https://my.st.com/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/AllItems.aspx&currentviews=249]https://my.st.com/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Flat.aspx?RootFolder=%2fpublic%2fSTe2ecommunities%2fmcu%2fLists%2fcortex_mx_stm32%2fWhere%20is%20the%20UsbMassStorage%20Examples%20%20Supt%20for%20stm32f4xx&FolderCTID=0x01200200770978C69A1141439FE559EB459D7580009C4E14902C3CDE46A77F0FFD06506F5B&TopicsView=https%3A%2F%2Fmy.st.com%2Fpublic%2FSTe2ecommunities%2Fmcu%2FLists%2Fcortex_mx_stm32%2FAllItems.aspx¤tviews=249

https://my.st.com/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Attachments/23167/stm32f4_discovery_msc_sdhc_release_1.zip

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