hello friends.... i recently started working on mini6410. i designed some modules on qt designer. my first problem is that my board is not booting in nor flash so i am unable to download z image.....please help urgent with my mini2440 that is not responding on keyboard input with dnw i mean when i am pressing z its just get stuck.... this is my adc code can you tell me why this is not working....thankinggg you alll in advance ********************************************* #include "hello.h" #include <qlabel.h> #include <qpushbutton.h> #include <stdlib.h> #include <sys/ioctl.h> #include <fcntl.h> #include <stdio.h> #include <unistd.h> #include <sys/types.h> #include <sys/stat.h> #include <linux/fs.h> #include <errno.h> #include <string.h> LEDForm::LEDForm( QWidget* parent, const char* name, WFlags fl) :LEDBaseForm(parent, name, fl) { connect(PushButton1,SIGNAL(clicked()),this,SLOT(startadc())); connect(PushButton2,SIGNAL(clicked()),this,SLOT(stopadc())); } LEDForm::~LEDForm() { } void LEDForm::startadc() { //int num =10; int i; //fprintf(stderr, "press Ctrl-C to stop\n"); int fd = open("/dev/adc", 0); if (fd < 0) { perror("open ADC device:"); //return 1; while(1) { char buffer[30]; int len = read(fd, buffer, sizeof buffer -1); if (len > 0) { buffer[len] = '\0'; int value = -1; sscanf(buffer, "%d", &value); //printf("ADC Value: %d\n", value); QString qstr = QString::number(value); TextLabel1->setText(qstr); //num=num+10; usleep(500* 10); } else { perror("read ADC device:"); //return 1; } usleep(500* 10); } close(fd); } } void LEDForm::stopadc() { TextLabel1->setText("adc stopped"); }