I'm using, or trying to use, a AtMega48P for controlling a sensorless Brushless DC Motor. However, I encounter difficulties with compiling the C-code that I found on the Atmel website.
When compiling, it gives me a few errors. The software I use for this is IAR Workbench.
All pins on port B and port D are undefined and the keyword "__regvar" is unavaible with the current port settings.
As for the undefined pins, my guess is that there is a problem with the library, although I added the library that was included in the AVR444 package that I found on the Atmel website.
This is for a school project, with the deadline approaching next week. Any help, ANY help, would be deeply appreciated!