??? 09/25/06 06:38 Read: times |
#124962 - Going with IAR Responding to: ???'s previous message |
It turns out that we have at our disposal a license for the IAR Embedded Workbench IDE for the 8051. So, we're going to be doing our best to get our implementation working with this environment. What my question to you guys is, what am I doing wrong to set it up?!
IAR comes with a number of derivatives of the 8051 to choose from, among these is our specific microcontroller. I went ahead and chose that derivative and played around with some other options along the way. Also, the microcontroller shipped with a CD that contained a number of different #include header files for different derivatives under different IDEs, one of these being IAR. I went ahead and tried to compile an empty void main() with the included header, but, oh no, 100 errors! It appears that the way the header file defined the SFR locations did not jive with IAR at all, even though this header was touted to be specifically for IAR! It had to with the 'sfr' and 'bit' types not having definitions or being defined. I checked some other generic headers that came with IAR and saw that they used a struct union format along with constant address declarations (using the '@' symbol instead of '=') instead of a simple 'sfr AAC = 0xE0'. Should I go through and manually create a new header for the IAR environment using the structure of the generic header and the addresses from the manufacturer's given header as a guide? Or is there some sort of option/library/pre-compile rule that I'm not aware of? Thanks! -E.T. |
Topic | Author | Date |
Compiling for the 8051 Arch. | 01/01/70 00:00 | |
8051 Compilers | 01/01/70 00:00 | |
In what way do you go aground? | 01/01/70 00:00 | |
sdcc + mide | 01/01/70 00:00 | |
block diagram of 80c51 microcontroler | 01/01/70 00:00 | |
It is in the datasheet | 01/01/70 00:00 | |
... or the so-called bible![]() | 01/01/70 00:00 | |
Can't | 01/01/70 00:00 | |
Another vote for Keil | 01/01/70 00:00 | |
I'll also vote for Keil | 01/01/70 00:00 | |
Or Raisonance | 01/01/70 00:00 | |
re Keil and Raisonance | 01/01/70 00:00 | |
Actualy. | 01/01/70 00:00 | |
Going with IAR | 01/01/70 00:00 | |
boguous atmel header files, include compiler.h | 01/01/70 00:00 | |
Problems | 01/01/70 00:00 | |
IAR changed from v5 to v6 | 01/01/70 00:00 | |
How very thoughtful of them! | 01/01/70 00:00 | |
Tools available | 01/01/70 00:00 |