How to program STM32 [closed] - stm32

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
Im a total beginner with programming ARM microcontroller, But I do have experience with AVR and PIC microcontrollers.
Few days back i have purchased (STM32 STM32F103VET6 development) from ebay.com.
I'm now trying to programming this board but I dont know where to start. I have also received a cd which contains some datasheets and some documents (all in chinese).
could someone tell me how to start? or have some source samples...
I have already installed Keil uVision4. I also have a J-link debugger.
thank you.

I guess you have almost everythin to start.
Now you may need the STM firmware library. You can download it from the www.st.com web site (http://www.st.com/internet/com/SOFTWARE_RESOURCES/SW_COMPONENT/FIRMWARE/stm32f10x_stdperiph_lib.zip). It contains also a lot of examples.
Which board did you get?
Hope this helps

I may have the same board actually. At first that cd will appear useless but once you explore it a bit you will find that there are a bunch of examples written for that board. I suggest that you start with the most basic example (usually GPIO). Often the more complex examples (MP3 Player and others) have a lot of errors that have to be worked out and it a huge headache for beginners.
your next step would be to find the data sheet for that specific chip. Then loop at the dev board diagrams and find a pin with an LED connected, try to get it to flash. Once you've done that the sky is the limit.
Happy programming

Related

Where can i find objective c xcode sample codes for iphone [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
i am a new programer and i would like to find some sample projects to learn from. Do you know any website that might help me?
Sample programs such us:
Uitable views
Uiscroll view
Plist storing data
Do to project
Note taking projects
Etc
The documentation links to useful sample projects at the top of most references.
You can also login into ios dev center (developer.apple.com/iphone/) and there is section "Sample Code" with all examples.
You can search by something specific for you or view by Topic/Framework.
I can recommend this book, it helped me allot and there is everything you need to know about programming for the iPhone: http://www.amazon.co.uk/Teach-Yourself-Application-Development-Yourself/dp/067233576X/ref=sr_1_2?ie=UTF8&qid=1354751889&sr=8-2
However if you goal is to program games I would use some of these packages: http://www.cartoonsmart.com/flash_mobile_index.php5
Another option is youtube there are tons of videos teaching you everything you need to know. For example: http://www.youtube.com/watch?v=mB-o3gtbHpg&list=PL8B9E3607FA1EEFCE
Best advice is definitely the first one. It helped me the most :)

Open source and cross platform application [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I would like to know what would be the best programming languages to develop an open source that can work on mainly windows and mac.
any person should be able to change the source code if he/she wanted to without the need to recompile it. this is to allow further development and bug fixing.
The application does not require a massive computational resources and it would have a GUI.
what would you recommend?
the only thing i have in mind is to do the application using matLab. any other choice?
Many thanks for your feedback,
Python. There are many IDEs available, and the code is extremely readable. The community also maintains excellent documentation. I would advise against using Matlab to develop Open Source Software because Matlab itself is not an open source program. Maybe since you are talking about something mathematical, an open source alternative could be Octave? But I don’t really know what you mean by an application. Hope anything I suggested helped.

how to read linux kernel, any good tools to read kernel? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
linux kernel is really worth to spend a lot of time of read, but it is so large, and you don't know how to trace where you should start to read, and what you have read before?
usuallly people try to read linux kernel would make some comments when reading code, anybody agree? so git maybe nice when read linux kernl, but maybe sometimes you would like to read code on web tools such as lxr, but what make you disppointed is that you cannot make comments on lxr.
google code support comment, but you cannot export such comment:(
so what tool you would like to choose if you want to read source code of linux kernel?
You cannot understand the whole kernel at once, not even with a magic tool. There are too many facets and each has many aspects and quite a few nuances.
I suggest starting with a particular area of interest and focus primarily on it. If you have never looked at an OS before, the innermost areas are:
memory management
process management
thread scheduling
file system
initialization
As far as tools, any good cross referencing website is fine. LXR is good, but it takes awhile to get familiar with it.
Before starting with code , some theory knowledge is important.
Professional linux kernel architecture book will be of great help.
Lxr is good for browsing code online
VI editor with ctags and Taglist plugin is optimal for browsing kernel source code offline.

Does anybody know any very basic stm32 tutorials? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
Recently I've started on a project which requires a Cortex M3 processor.
I have some previous experience with 8bit AVR microcontrollers, so I was hoping for a not to big transition.
So I've bought a STM32L-Discovery kit (since low power is an important point) and started looking at some examples.
However, I'm completely stuck at the beginning.
When programming with AVR it was all very straightforward, just by including 2 or 3 files it was possible to write a simple main.c for like say a blinking LED.
However the examples in IAR EWARM (which I'm using) all look very bloated, lots of files which make it difficult to start. I'm having the same problem with most online tutorials.
Does anybody know any (very) simple tutorials which might help me. I'm thinking about purchasing "The Definitive Guide to the ARM Cortex-M3" since it seems highly recommended.
This might be a very dumb question but I'm stuck for too long now and I'm feeling a bit desperate.
I completely agree with you. I am also starting out and I find it difficult to even scratch the surface! I have some good experience with PICs, but with ARMs the learning curve is really steep.
For the STM32F4Discovery I am using, ST provides a number of examples. Starting from simple pin toggling. I am going through the main.c file which for every example is well commented, and try to understand from there. They have a peripherals library, so locate that and look into the declarations of the functions. I learned a few things like that.
Also make sure you reference the actual manual of the ARM you are using.
I think it boils down to how much time you have to spend. Speaking for myself, I don't have the time to go through the manual and understand how everything works. If you do find some good sources please post them!
In closing I am pasting a couple of urls I am found useful information:
http://www.hitex.com/index.php?id=download-insiders-guides
http://www.micromouseonline.com/category/stm32/#axzz1wMO2VjAI
I would suggest using CMSIS and standard peripheral library for programming ARM Cortex. Here are some tutorials on how to set up things and start writing code:
http://www.embedds.com/arm-cortex-tutorials/

Airplay SDK, MoSync and others comparison [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 11 years ago.
Are there any experienced developers to make a comparison between these two SDKs?
What have better learning curve for beginners? Is the deployment for many platforms easy the same in both? Any others sugestions about difference unvisible in the first contact working with these SDKs?
I have not used MoSync, but I have made several games with Airplay SDK, for iPhone, Android, and bada. It's a very solid system with very good community support when you have questions. You need to know C (and a bit of C++ but mostly it's just C), but otherwise it's very easy to use. You can use a 3D API or a 2D API. They include lots of good examples. They have good profiling tools. It's great for people who like Visual Studio, with all the debugging advantages of that system. You can definitely make games for multiple platforms all from the comfort of your PC (or Mac, but I haven't tried the Mac version). I have a bit more about my experiences with it at www.immortalcode.com.