在没有ATmel Studio的情况下编程SAM uC系列

时间:2016-07-28 12:07:07

标签: eclipse arm

我问过这个问题:https://electronics.stackexchange.com/ 没有成功,所以我在这里试试运气。

我设计了一块使用SAM uC(Cortex M0 +)的电路板。我不想使用ATmel Stduio,我想学习如何使用eclipse和arm-gcc以及OpenOCD(仍然无法理解,这个用于什么?)。所以我的问题是可以这样做,如果是的话,是否有人提示我该如何进行?

我已经安装了3个部件,这是我能得到的最远的部分: enter image description here

1 个答案:

答案 0 :(得分:2)

I agree with Notlikethat, what is it that you cant figure out.

1) Yes, I have dozens or hundreds of bare metal microcontroller examples that use the gnu toolchain, no ides, just the command line. No problems there whatsoever.

2) OpenOCD is an open source tool that knows how to speak to the on chip debuggers, in particular ARM ones. And it supports JTAG and SWD which is what your cortex-m0+ will have if exposed (which it most likely is).

3) which SAM microcontroller there are hundreds of different ones over a decade or so, the cortex-m0+ certainly narrows that down from what is actually more like thousands to more like hundreds of different ones. Narrow it down to at least one family. Is it the popular SAMD21? I have personally used one of those, and using openocd and gcc is quite doable without any need for an IDE from anyone. Just add a text editor.

I prefer to use a $10 st discovery or nucleo board as my SWD debugger, remove a couple of the jumpers and you can use that st-link front end for other microcontrollers st or not st.

The chip documentation as well as google will show you how to hook all this up and talk to the chip.

Do you have just a raw chip or do you have it on a board, one you made or one you bought?

Your question is the equivalent of, I have a Ford, and I dont know what size brake pads I need and do I have to have the dealer install them.

Is it a truck is it a car, which one, how many models/variations have they had in the last hundred or so years? Look up the sizes/parts in a manual. And the latter is yes of course you can do it yourself, or have someone else install them, you dont have to go to the dealer.