English 中文(简体)
Example code for ARM Cortex M3 based MCUs?
原标题:

More specifically the STM32F107.

I could barely find any code on ST s website, not even downloadable libraries (though I have found mention of some that indicates that they should exist?). This scares me a bit, as I don t want to choose a processor that is hard to use when there are other alternatives. (This particular processor meets all other requirements, though, so please do not interpret this as a question for alternatives)

So basically I was hoping that someone here could point me in the right direction.

I plan on using the Raisonance toolset, which is free, but seems to be limited to C. Both C and C++ (and even pure assembly) examples would be great, though. USB examples are of particular interest.

最佳回答

First off, there is a lot of CM3 code that applies to more processors than just the STM32... but it seems that you asked about the STM32 specifically.

There is a FreeRTOS port for the STM32 family.

The STM32 Primer is a cheap hardware platform with lots of user-supplied projects that can be downloaded.

Plus, ST has some examples that can be downloaded, and there is a forum with lots of topics & examples as well.

You mentioned USB. Look in the ST downloadable examples for the entry for USB on the go, UM0721. The idiots did everything in HTML5 or flash or something (sorry, I"m an embedded guy, not a web developer) - I can t post a direct link... if this description isn t good enough for you to find it, let me know, I ll try to be more explicit.

I have a bunch more stuff saved off & bookmarked, but I would think that would be enough to get you started? Good luck & have fun.

EDIT1: Olimex has a ton of great, low-cost ARM boards, including STM32-based boards. The page for one of their boards has a software download with lots of examples, including USB virtual COM port, USB audio, and USB mass storage. I don t know what your hardware is and what toolset you re using, so of course you ll probably have to take the code & tailor it to your needs. (Disclaimer: I have no association with Olimex whatsoever, I ve just used a lot of their stuff & find them to be great bang-for-the-buck.)

问题回答

暂无回答




相关问题
arm7 usb programming

we are developing a sendor device, with a arm7(current: LPC2368) . this device samples a mv signal,A/D, and need to send this signal data to the PC.(continusly) at the same time, PC need send ...

Fast sine/cosine for ARMv7+NEON: looking for testers…

Could somebody with access to an iPhone 3GS or a Pandora please test the following assembly routine I just wrote? It is supposed to compute sines and cosines really really fast on the NEON vector FPU....

Steps to read data from ARM microcontroller port

I am having trouble reading serial data from ARM LPC2378 microcontroller. Will I have to use UART or any GPIO port can be used?? is ayone having c code for it??

Linux user-space ELF loader

I need to do a rather unusual thing: manually execute an elf executable. I.e. load all sections into right places, query main() and call it (and cleanup then). Executable will be statically linked, so ...

Sample Android BSP(Source) for ARM

I am looking for a ARM processor version of Android BSP to port it for one of my experimental boards. Where can I download this?

热门标签