A compiler transforms code written in a source language to a (binary) target language.
1
vote
2answers
109 views
STM32 ARM header files for use with Eclipse and GCC
I'm a mechatronics (mechanical and electrical) engineering student and want to learn how to program ARM microprocessors. I've used Atmel ATMegas previously. I'm using a mac and being a student I ...
1
vote
1answer
41 views
Get bytes from a short long in C18
I'm using the C18 compiler and need to get the three bytes of a short long from MSB to LSB. I'd say I could use this:
...
3
votes
1answer
66 views
Integers >9999 in PIC C18
In this answer, I made a function to convert an integer to an ASCII string:
...
5
votes
5answers
246 views
Integer to ASCII in C18
I'm writing code for a PIC18F46K22 using the C18 compiler. I want to write the value of an integer \$n\$ in ASCII over the USART to my PC.
For \$n<10\$, it's easy:
...
5
votes
3answers
18 views
How to discover memory overflow errors in the Arduino C code?
Several times I had some suspicious outputs on the Serial Monitor after uploading code to the Arduino: like eternal output of whitespaces or suddenly cut of strings or scrambled strings.
Because ...
2
votes
2answers
112 views
VHDL code not compiling
I'm new to VHDL and I cannot seem to get my code to compile. I've looked over the code to the best of my ability, but I do not see anything wrong with it from my current basic understanding of how it ...
7
votes
3answers
338 views
Absolute address of a function in Microchip XC16
Device: dsPIC33FJ128GP802
I have some *.s files as follows
...
3
votes
3answers
200 views
Can I pass a bit register as a function argument in Hi-Tech C compiler for PIC16?
Is there a way to pass a bit from a PIC's register as a function parameter?
Taking, for example, the PIC16F887, its registers (SFRs) and individual bits are defined as fallows in the corresponding ...
0
votes
0answers
170 views
sdcc - small c compiler [closed]
I am trying to install sdcc- small device c compiler to my mplab x ide. But, since I have using Ubuntu 12.04 not Windows, I could not manage to install it automatically to my mplab x ide. Can you ...
4
votes
2answers
272 views
If YOU were starting out now, what PIC16F-compatible IDE and compiler would you choose, and why?
This is going to be a bit long as I wanted to cover all the obvious questions before they arise, give a rationale to some of my thinking, and prove I've done my groundwork! If time is short, skip down ...
-1
votes
1answer
53 views
Adding a global int corrupts compiled code
I have a strange issue. I want to either increment a value every time the loop function is called or us a random value each time. Whether I use a global int for incrementing or set a local int to a ...
4
votes
3answers
263 views
ARM Programming interface and tool chain
I have acquired a RM48L952 that is an ARM Cortex R4F from TI and I would like to start learning ARM development with this chip. My question is can I use any JTAG programmer to program it? Something ...
2
votes
1answer
122 views
Compiling MSP430 files linking problems
I'm trying to compile a simple C file to later upload to my MSP430 uC but when I try to compile I get something that looks like a linking problem:
...
6
votes
3answers
267 views
Extraneous loop produced by PIC compiler from MicroChip
We're using the Lite version of the MicroChip PIC compiler so maybe that's the reason, but this simple one-bit shift is generating a loop where none is necessary. Since the shift count is 1 (a ...
1
vote
2answers
319 views
Where can I start to program a S5PV210?
At the university I learn only the Microchip microcontroller, but I would like to improve my knowledge. I ordered a development board based on Samsung S5PV210.
The manufacturer also provided a Linux ...
3
votes
1answer
172 views
Easiest way to get rid of __clz_tab in winavr compiled code?
I've ported a program from the arduino environment to a makefile build using winavr, which, in turn, is based on avr-gcc (just like arduino).
However, my program started crashing, and after some ...
0
votes
1answer
146 views
2
votes
1answer
511 views
How does the Arduino IDE/build system work?
How does the Arduino IDE/build system work?
I noticed that they use the avr-gcc in the background,
but what do they do on top?
They seem to have their own "kind of C" language that transforms into ...
6
votes
2answers
2k views
Programming for the Arduino without the Arduino IDE.. but with the provided libraries?
I recently started a new project using my Arduino that's been collecting dust for a while. Along with the physical board collecting dust, so has my copy of avr-gcc and the Arduino libraries. I can ...
6
votes
3answers
375 views
What does #if 0 do
Today I started to use MPLAB X to program my PICs, and found a code template, with multiple files and spots to fill in code. Before I have had a single file with my code in it. In this template, where ...
10
votes
2answers
656 views
Compiling code to run from external RAM
I am considering designs for a minimalist game system based on a PIC18F85J5. Part of my design is that games can be loaded from an SD card without reprogramming the chip or flashing the program ...
4
votes
1answer
295 views
Texas Instruments Compiler
I am working with TI's CC2533 SoC Low Power RF
I bought a few chips and assembled a few PCBs.. Using TI's debugger I confirmed that I can send and receive packets using the basic RF using the ...
4
votes
5answers
1k views
Editable PIC Serial Number in HEX File
Currently I have a serial number hard-coded in my firmware for a design I'm working with. The firmware can read and report back the serial number. That works fine for what I need. The trouble is ...
-1
votes
1answer
379 views
How do you write your own linker script files? Or do you use IDE's? [closed]
I asked a similar question on StackOverflow, but I'm curious what people over here do. If you do write your own, what's your process? How do you verify? That your script is adequate?
9
votes
2answers
3k views
Is Code Sourcery G++ Lite still a viable project?
When I tried to download a newer version of Code Sourcery G++ Lite for ARM,
I noticed that I was redirected to another company and it is really hard to find anything on that site about Sourcery G++ ...
1
vote
1answer
182 views
Breakout Boards and C-Compilers
I'm new to embedded programming and looking for advise on a couple things:
I'm developing two "projects." One is based on Microchip's dsPIC33 series of micros and the 2nd project involves Freescale ...
2
votes
1answer
874 views
Extended Instruction Set mode for PIC18F with Hi-Tech Compiler
I'm writing some firmware for a PIC18F6622 microcontroller. I use MPLAB IDE 8.73 + HI-TECH C Compiler for PIC18 MCUs (PRO) 9.66.
When I set the XINST (Extended Instruction Set enable bit), the IDE ...
0
votes
1answer
222 views
Developing a compiler and linker for embedded systems
Does anyone know some good resources (textbooks, papers, tools, etc) for developing a custom compiler and linker for a specific microcontroller?
1
vote
1answer
643 views
Compiler / Assembler (Toolchain) for PIC micro's using Ubuntu 11.04
I used to use Hi-Tide from Hi-Tech before they were purchased by MPLab. In my opinion it was great. I wrote the C code, selected the processor and out popped a hex file.
I've now migrated to Ubuntu ...
2
votes
2answers
761 views
Watchdog reset using C32 v2.00 compiler
Compiling an existing PIC32 project using the v2.00 C compiler produces a continual watchdog reset. This problem does not appear using the previous v1.12 compiler. Changing the watchdog postscaler ...
7
votes
2answers
2k views
How can I use a build server with Keil uVision4 (MDK-ARM), script a build, use a makefile?
I would like run daily builds, or check-in/commit triggered builds of Keil MDK-ARM based projects. So far I've gotten things going with the batch file feature of the IDE. This does require you to ...
0
votes
1answer
603 views
avr-gcc(4.4.2)/avr-libc linker issues
So this seems to be a generic issue. "libc.a" is associate with some sort of incompatibility with floating point math and/or the correct library used.
I've added the "-lm" as suggested on the forums, ...
0
votes
1answer
200 views
Mac based AVR development issue
Ok, so I reinstalled my development enviroment on the mac using the latest build of avr-gcc (4.4.2), avr-libc and avrdude from the Fink project.
Problem is when compiling I keep on getting a linker ...
1
vote
4answers
2k views
How to choose between little endian or big endian for the processor settings?
We have just selected a new processor for our application, and one of the project options available to me is to select the Endian mode: Little endian or Big endian (under Big endian two more choices, ...
4
votes
3answers
698 views
Usage of the #pragma pack(1) compiler directive on embedded applications
I have recently come across this #pragma pack(1) preprocessor directive and was wondering why it is being used?
I Googled the usage, and found it has other options such as push,pop etc. Has anyone ...
5
votes
5answers
637 views
Is there a development system for the MSP430F series microcontrollers?
I'm hoping for an IDE of some kind, but I'll take any compiler or assembler! Can't seem to find anything by googling.
4
votes
4answers
1k views
What PIC24 C compilers are out there, and what is your opinion or review on them?
Specifically, the PIC24 series.
I tried out microchips C30 compiler, but it seems to be a bit too complicated for me, and I couldn't find any libraries with it.
Then I tried CCS, and it seems far ...
6
votes
5answers
1k views
PIC 16F beginner.. difference in program-syntax when using different compilers
As I mentioned, I have just beginned programming pic16f877a. I can now work with 7 segment displays. At present I am using ccs compiler. Nothing wrong with that. But i prefer to be a compiler ...
1
vote
5answers
337 views
Help fix or ignore aliasing warning in gcc
I'm having a problem working with the TI/Stellaris EK-LM3S6965 demo board and associated software, specifically the OLED display driver. My problem is not that it doesn't work, it's that it mostly ...
9
votes
5answers
6k views
ATTiny13 — avr-gcc Hello World uses over 100 bytes?
I'm trying to write a program for the ATTiny13. My problem is that it has huge size constraints. Well, when making my first Hello World program, it took 100 bytes of program space just to make a light ...
7
votes
8answers
4k views
Best way to install arm-elf-gcc onto a Linux machine
Hey folks,
I'm working on a device using arm-elf-gcc to compile code for a MakingThings prototype board. My development machine is a Linux box running Ubuntu 9.10. On a different linux box using ...
10
votes
1answer
2k views
PIC18F4550 C-compiler that's open-source & cross-platform?
I'm a long time AVR user. I really like that AVR-GCC works on the two main OSes I use (Mac OS X and Linux), is open-source, and is supported by Atmel. I'd like to get back into PIC programming (used ...
21
votes
11answers
9k views
ARM Cortex-M3 development tools?
I am planning to migrate to the NXP Cortex M3 architecture and I'm a little lost between the existant development tools.
Keil is expensive and I don't know if it's worth it.
Anyone who has tried some ...
3
votes
2answers
2k views
Codevision AVR C and Atmel AVR C compiler
What is the difference between Codevision AVR C and Atmel AVR C compiler?
