Still struggling with Eclipse, New issue on Page2, please help

Development environment specific, Arduino, Eclipse, VS2013,Em::Blocks etc
stevestrong
Posts: 1611
Joined: Mon Oct 19, 2015 12:06 am
Location: Munich, Germany

Re: Still struggling with Eclipse, New issue on Page2, please help

Post by stevestrong » Fri Feb 10, 2017 10:08 pm

Usb serial?

Nutsy
Posts: 240
Joined: Sun Jul 24, 2016 4:26 pm

Re: Still struggling with Eclipse, New issue on Page2, please help

Post by Nutsy » Fri Feb 10, 2017 10:49 pm

What about it?

victor_pv
Posts: 1654
Joined: Mon Apr 27, 2015 12:12 pm

Re: Still struggling with Eclipse, New issue on Page2, please help

Post by victor_pv » Fri Feb 10, 2017 10:54 pm

Nutsy wrote:ohh i havent checked that... But good point. i scrolled through it. but still I dont know whats missing :(
Can you attach them?

Nutsy
Posts: 240
Joined: Sun Jul 24, 2016 4:26 pm

Re: Still struggling with Eclipse, New issue on Page2, please help

Post by Nutsy » Fri Feb 10, 2017 11:05 pm

well currently when the sketch loads, no... i can only upload if i catch it at the right moment before the sketch runs.

victor_pv
Posts: 1654
Joined: Mon Apr 27, 2015 12:12 pm

Re: Still struggling with Eclipse, New issue on Page2, please help

Post by victor_pv » Fri Feb 10, 2017 11:19 pm

Nutsy wrote:well currently when the sketch loads, no... i can only upload if i catch it at the right moment before the sketch runs.
The .map files?

Nutsy
Posts: 240
Joined: Sun Jul 24, 2016 4:26 pm

Re: Still struggling with Eclipse, New issue on Page2, please help

Post by Nutsy » Fri Feb 10, 2017 11:30 pm

whats a .map file?

User avatar
sheepdoll
Posts: 236
Joined: Fri May 22, 2015 12:58 am
Location: Silicon Valley Vortex
Contact:

Re: Still struggling with Eclipse, New issue on Page2, please help

Post by sheepdoll » Sat Feb 11, 2017 1:44 am

I was going to suggest looking at the *.map file

The *.map file is sometimes called the symbol table. This is a text file of the locations of the functions and variables in a somewhat human readable format. It is created with the compiler options flags. Some IDE's have options to generate it. There is also a *.lst file which shows an assembly listing along with the code Sometimes the *.map is included at the bottom of the *.lst file.
The *.elf file contains most of the same info as these files along with the executable code. That way it when stepping through the debugger it can look like one is stepping through the c code. On some IDE's the trace information is not available (and one only sees assembly) if the *.map and *.lst files are missing.

Nutsy
Posts: 240
Joined: Sun Jul 24, 2016 4:26 pm

Re: Still struggling with Eclipse, New issue on Page2, please help

Post by Nutsy » Sat Feb 11, 2017 12:11 pm

looking throught eh elf, unfer the hardwareserial;

Code: Select all

/* 
 * Roger Clark
 * 
 * 2015/05/28
 *
 * Moved definitions for Hardware Serial devices from HardwareSerial.cpp so that each board can define which Arduino "Serial" instance
 * Maps to which hardware serial port on the microprocessor
 *
 * Note. Maple mini always has SERIAL USB, so there is no need for the #fidef for this
 * As its a Medium Density device, it only has 3 hardware serial devices. 
 */							
 
DEFINE_HWSERIAL(Serial1, 1);
DEFINE_HWSERIAL(Serial2, 2);
DEFINE_HWSERIAL(Serial3, 3);
the 3 defines have a bug warning ;" The type 'HardwareSerial' must implement the inherited pure virtual method 'Print::write' "

And in the hardwareserial.h a but shown for hardwareserial

Code: Select all

/* Roger Clark. 
 * Currently there isn't an output ring buffer, chars are sent straight to the hardware. 
 * so just return 1, meaning that 1 char can be written
 * This will be slower than a ring buffer implementation, but it should at least work !
 */
  return 1;
}

size_t HardwareSerial::write(unsigned char ch) {

    usart_putc(this->usart_device, ch);
	return 1;
}
"Member declaration not found."


This might be nothing.the trouble is i honestly REALLY REALLY dont know

victor_pv
Posts: 1654
Joined: Mon Apr 27, 2015 12:12 pm

Re: Still struggling with Eclipse, New issue on Page2, please help

Post by victor_pv » Sat Feb 11, 2017 4:41 pm

Nutsy wrote:looking throught eh elf, unfer the hardwareserial;

Code: Select all

/* 
 * Roger Clark
 * 
 * 2015/05/28
 *
 * Moved definitions for Hardware Serial devices from HardwareSerial.cpp so that each board can define which Arduino "Serial" instance
 * Maps to which hardware serial port on the microprocessor
 *
 * Note. Maple mini always has SERIAL USB, so there is no need for the #fidef for this
 * As its a Medium Density device, it only has 3 hardware serial devices. 
 */							
 
DEFINE_HWSERIAL(Serial1, 1);
DEFINE_HWSERIAL(Serial2, 2);
DEFINE_HWSERIAL(Serial3, 3);
the 3 defines have a bug warning ;" The type 'HardwareSerial' must implement the inherited pure virtual method 'Print::write' "

And in the hardwareserial.h a but shown for hardwareserial

Code: Select all

/* Roger Clark. 
 * Currently there isn't an output ring buffer, chars are sent straight to the hardware. 
 * so just return 1, meaning that 1 char can be written
 * This will be slower than a ring buffer implementation, but it should at least work !
 */
  return 1;
}

size_t HardwareSerial::write(unsigned char ch) {

    usart_putc(this->usart_device, ch);
	return 1;
}
"Member declaration not found."


This might be nothing.the trouble is i honestly REALLY REALLY dont know
You said that a simple blink sketch worked, did you try something using serial and SerialUSB? that will require a few more things than a blink sketch, and we can see if serial really has something to do with your issues.

Nutsy
Posts: 240
Joined: Sun Jul 24, 2016 4:26 pm

Re: Still struggling with Eclipse, New issue on Page2, please help

Post by Nutsy » Sat Feb 11, 2017 6:22 pm

Ok going back to blink and adding components to see if anything else breaks. I am writing this as I test...
Currently the basic blink builds and loads fine on the maple mini, however a bug warning is shown. "Symbol 'HIGH' could not be resolved" Same for LOW. So at least in the writing stage it doesnt recognise the keywords there....

But it does build and work...

Ive added a Serial.begin So this using USB Serial. With Serial.println(); ON and OFF with the blink.
This runs fine and im getting serial read/feedback...

Ill try testing some other libraries see if they die too

Post Reply