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

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/

Related

Overview of implementing Kinect and Unity 3D Integration [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 looking to make a simple game project in the Unity 3D environment, that utilises the Kinect to have a game character mimic what occurs in real life. I am trying to achieve this in the shortest time possible. I am a relatively new programmer fluent in Python and with some knowledge of Java.
So I've been reading all over the internet about guides on Unity 3D, libraries like Zigfu, the Kinect, etc... But it's all scattered and presumes quite a lot of knowledge, so I was hoping someone could offer clarification.
Questions:
What packages are needed to achieve this (I hear terms like XNA, Zigfu, Microsoft SDK being thrown around), and what would you recommend based on the circumstances?
What resources are good, and where should I start. I want to try reduce redundancies (a lot of Unity tutorials cover stuff like rockets, life bars, etc that I'm not interested in). I'm a bit overwhelmed with the multitude of tutorials, and a lot of them seem very involved time-wise, and I'm just interested in getting something up as fast as possible.
Will I need to learn another programming language / which would be the best to use to achieve these goals?
I just tried Motion Toolkit package from Unity asset store. It is based on Omek Beckon middleware and actually offer a sample that does exactly what you want, an avatar that is animated by movements of a person in real life.
It is implemented in C# though, but integrated very good into Unity, So I guess you'll be able to use Boo (which is Unity scripting language based on Python)

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 it make sense to write a forum in Scala? [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'm looking for a meaningful task to learn Scala (something which is usable at the end and not only programming exercise), and I also have to make a forum, and I don't want to learn PHP... so I'm thinking about implementing an open source forum in Scala.
But does this make sense? Forums don't have high performance or scalability requirements... and also Java Hosting is more expensive, so even if my forum software is free, most people will not use it.
Am I missing use cases where forum written in Scala/Java makes sense, and is preferable over a PHP (or similar) forum?
I found for example this:
http://java-source.net/open-source/forum-software
But it seems to be abandoned, like stated here:
http://www.coderanch.com/t/497053/Ranch-Office/forum-has-been-built-JForum
So probably I'm correct that easy & cheap & slow is far more suitable for a forum = PHP?
I think an open source forum written in Scala would be useful if you can structure it in a way that makes it easy to integrate with existing web apps using the Lift and Play frameworks.
Your target audience should be anyone writing a web app in Scala who wants to tack on a forum. The prospect of using a php based solution won't be enticing to these developers, but neither will be reimplementing the wheel. You have a pretty compelling value proposition if you create a well written, easy to implement solution using the same stack that they are already leveraging.
It depends on the purpose of the exercise.
You want to learn Scala and need a project for exercise:
Anything goes, so does a forum. But it would probably be more interesting to get involved in some existing open source project. Think about the 5 first libraries you would probably consider for a project (logging, testing, web framework) check them out, find one that is open for contribution. Grab a bug or feature request and try to implement it.
You want some forum
Forget it. Use some existing solution.
Somebody forces you to write a forum
If things like being hostable on almost arbitrary webspace isn't a requirement, go ahead use Scala.
You want to prove the power of Scala to yourself or somebody else
Go for something more challenging (Big Data, Akka ...)

How to program STM32 [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.
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

iphone: what should I learn? [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'm a total noob working in basics of C++ right now; I enjoy it, but find myself wondering if I'm not (sort of) wasting my time learning something archaic that won't be applicable to my interest in programming for iphone/ipad.
Should I be starting out with Obj-C, or will I be able to write better programs/ have more perspective if I continue learning C++?
I am a patient man. But I also want to be investing my time wisely.
Thanks!
-Andrew
C++ and Objective C are not as closely related as either C and Obj-C or C and C++. Frankly, just start with Objective C if you know you want to do iPhone or Mac programming. Second most important is the corresponding libraries, Cocoa (for mac) or Cocoa-touch (for iphone). Knowing the language isn't enough to get you productive in the platform.
There is nothing wrong with starting with objective-C. From personal experience I recommed it. I learned to program in objective-C before any other language and now I've made/worked on some very successful applications. As you become a better objective-C programmer you will naturally become better at programming overall, and C++ will be easy to pick up along the way if it's ever needed. The resources for objective-C and iPhone are vast and the language is fun to learn. If you need recommendations for good objective-C resources ask.
If you are going to iOS, you could start by learning C and then go to Obj-C or just start at Obj-C.
Learn obj-c. That's what you are going to use to program. Its always fun to think you'll gain a deep knowledge by learning a low lvl lang. Once you get into building iPhone apps, you'll find the debugging skills you need and use are more high level.
Just learn Obj-C. It's similar to C++ in the OOP features it implements, but the syntax is quite different. Also, it's good to that you're a patient guy, patience is massively important. I can't stress enough to start slow and make sure you learn Obj-C inside and out in addition to Cocoa before jumping into something as big as iPhone deving, or you'll burn out in frustration. In addition to Cocos-2D, be sure to check out 71 Squared. It's a great resource.