What compiler do you use for your microcontrollers?

  • Thread starter Thread starter Topher925
  • Start date Start date
  • Tags Tags
    Compiler
Click For Summary
The discussion centers on the transition from beginner-friendly development tools to more advanced options for programming microcontrollers, specifically PICs and AVRs. The user expresses a preference for compilers that support newer 32-bit and DSP chips, noting that while MPLAB was previously challenging, they found microBasik effective. They mention the availability of ANSI C GCC for AVRs, contrasting it with the less standardized C options for PICs. Recommendations include Swordfish Basic and BoostC for PICs, highlighting Swordfish's appeal but also its limitations regarding RAM size for compiling. The user is considering AVR32 chips due to their DSP library and affordability, despite concerns about the lack of a full debugger and the cost of necessary programming tools. Overall, there is an emphasis on the importance of robust support and the availability of free development tools in the decision-making process.
Topher925
Messages
1,562
Reaction score
7
I originally got into electronics by trying to learn to program PICs, but then I stopped and moved onto PICAxe and other "easy to use" development tools. Now I'm requiring a little more advanced tools and looking to at learning PICs (or maybe AVRs, haven't decided) again. One thing I remember is how much a pain using MPLAB used to be. I've used microBasik before and really liked it, so I think I might go that route. Are there are any other good compilers out there I could use? I would prefer something that is capable of utilizing some of the newer 32bit and DSP chips as well.
 
Computer science news on Phys.org
AVRs were designed, from the outset, to be C machines. As such, there's ANSI C GCC port, and not the varying less-or-more standard C variants out there for PiCs (I will say that the CCS Compiler was pretty decent once you figured out the quirks, but I hadn't used the official Cxx compiler that Microchip puts out). The el-cheapo AVR-ISP mkII in-circuit programmer is good across the line.

I'm not sure that ATMEL has a DSP equivalent, or if Microchip has an official inexpensive programmer good across most of its lines, however (to give balance to the above, and partially answer some of the other questions)
 
If you decide to go with pics then I would look at Swordfish Basic for the 18 series or BoostC for 16 and 18 series. Both have free versions and if you're familiar with modular basic then Swordfish is brilliant.

Mike.
 
I've been looking through some sample C code and found that I now have really no difficulty reading it, although I can't write it off the top of my head. Since 95% of the development tools out there are C I guess its about time I learned it.

Swordfish does look pretty cool, but I don't like the idea of the limited RAM size for compiling. In the past I've also found so called "full basic compilers" to be not quite so full. In the future, my programs will probably get pretty big and I don't to be strong armed into buying or learning a new compiler. I've been looking closely at the AVR32 chips and I think I might go that route since they contain an entire DSP library. I'm still kind of on the fence as they use direct USB programming, but unfortunately lack a full debugger, unless you get the JTAGICE mkII or AVR ONE! which are both very expensive. However, AVR Studio32 and all other development tools are completely free and the chips are fairly priced. But most importantly of all, their chips look to be well supported.
 
Thread 'ChatGPT Examples, Good and Bad'
I've been experimenting with ChatGPT. Some results are good, some very very bad. I think examples can help expose the properties of this AI. Maybe you can post some of your favorite examples and tell us what they reveal about the properties of this AI. (I had problems with copy/paste of text and formatting, so I'm posting my examples as screen shots. That is a promising start. :smile: But then I provided values V=1, R1=1, R2=2, R3=3 and asked for the value of I. At first, it said...

Similar threads

  • · Replies 2 ·
Replies
2
Views
2K
Replies
10
Views
5K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 13 ·
Replies
13
Views
2K
Replies
1
Views
8K
  • · Replies 12 ·
Replies
12
Views
12K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 5 ·
Replies
5
Views
2K