Help with codevision compiler

General discussions about V-USB, our firmware-only implementation of a low speed USB device on Atmel's AVR microcontrollers
Post Reply
Wonce3000
Posts: 2
Joined: Mon Oct 06, 2008 3:56 pm
Location: student

Help with codevision compiler

Post by Wonce3000 » Mon Oct 06, 2008 4:17 pm

I'm a new user of codevision and i'm working on my first code. when i compile i get this error:
Error: C:\cvavreval\bin\blink2\blink.c(37): missing '('
this where the error is located PORTA=0x00;

this is my code
#include <90s8515.h>
#include <stdio.h>
#include <delay.h>

int main(void)
{
DDRB=0xff;
while (1)
{
for (int i=1;i<=128;i=i*2)
{
PORTB = i;
delay_us(30000);
}
for (int i=128;i>1;i-=i/2)
{
PORTB = i;
delay_us(30000);
}
}
return 1;
}

SwK

you are on the wrong page...

Post by SwK » Thu Oct 09, 2008 9:37 pm

codevision runs a group in yahoogroups, so post this question over there.

any way i have been using this CVAVR for quitesome time, and when i went through your code, i did not found any problem. kindly make sure the PORT you are trying to use is available for the selected controller.

if still a problem then try to enclose your 'C' file so that i can give a shot in my machine.

~SwK

Wonce3000
Posts: 2
Joined: Mon Oct 06, 2008 3:56 pm
Location: student

Thanks for your reply

Post by Wonce3000 » Fri Oct 10, 2008 5:12 am

I think the nature of my problem was that fact that the virsion of codevision i'm using is not really vista compatable. Ran my code on a xp pc and got no errors.

Wonce

Post Reply