Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Hot Topic (More than 8 Replies) Mighty Mini 1284p @ 8 MHz - using Serial1 for Debuging (Read 11044 times)
vm24
Junior Member
**
Offline


Posts: 11
Joined: Jan 12th, 2016
Mighty Mini 1284p @ 8 MHz - using Serial1 for Debuging
Jan 12th, 2016 at 8:08am
Print Post  
Hi all,
I've got an Atmel 1284p and want do debug with visual micro. I'm only able to access Serial1 pins for debuging (connection to PC). Is there a chance to change this in visual micro?

Many Thanks!

BR
Chris
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Mighty Mini 1284p @ 8 MHz - using Serial1 for Debuging
Reply #1 - Jan 12th, 2016 at 4:32pm
Print Post  
Yes please see debugging with other Ports and Pins in the documentation

http://www.visualmicro.com/page/User-Guide.aspx?doc=Debugging-With-Different-Por...
  
Back to top
IP Logged
 
vm24
Junior Member
**
Offline


Posts: 11
Joined: Jan 12th, 2016
Re: Mighty Mini 1284p @ 8 MHz - using Serial1 for Debuging
Reply #2 - Jan 14th, 2016 at 11:40am
Print Post  
Hi,
thank you for your answer. I'm using Atmel Studio 6.2, Arduino IDE 1.6.4 and Visual Micro V15.07.2301. In this Visual Micro Version, I can't find these settings.

I'd like to change to Atmel Studio 7 soon, but the Visual Micro is still Beta as far as I read or? So I want to wait until Visual Micro is finaly released. 

Is there a last version of Visual Micro availlable with is compatible with Arduino 6.2 and also has these features?

Thank you very much!

BR

  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Mighty Mini 1284p @ 8 MHz - using Serial1 for Debuging
Reply #3 - Jan 14th, 2016 at 12:24pm
Print Post  
Visual micro is not really in beta. Install vs2015 community with c plus plus

Its the current release. You can have both installed
  
Back to top
IP Logged
 
vm24
Junior Member
**
Offline


Posts: 11
Joined: Jan 12th, 2016
Re: Mighty Mini 1284p @ 8 MHz - using Serial1 for Debuging
Reply #4 - Jan 14th, 2016 at 12:52pm
Print Post  
Hi, 
are I'm right, VS2015 is an additional application to Atmel Studio or? 
VS2015 is not integrated into the Atmel Studio - I'm either using Atmel Studio (what I'll prever) but with the old visual micro plugin or the VS2015 with the new visual micro plugin

Sorry, but I'm a bit confused...
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Mighty Mini 1284p @ 8 MHz - using Serial1 for Debuging
Reply #5 - Jan 14th, 2016 at 1:48pm
Print Post  
Sorry I didn't explain more.

Atmel studio is always a cut down version of Microsoft Visual Studio.

Atmel studio 6.2 is based on Visual studio 2010

Atmel studio 7 is based on Visual studio 2015

The real Visual Studio Ide is a different software product to atmel studio and is installed via Microsoft. (see our download page for more info)

You can either install AS7 or VS 2015 Community Edition with C++

VS 2015 also allows you to create windows, android and apple programs. AS7 uses a slightly older version so at the moment VS2015 and AS7 are a pain when installed together.

If you are using arduino 1.6.5 or older then AS7 might be a solution for you however it's not so stable as VS and updates often break extensions such as Visual Micro.

VS2015 caters for all Arduino versions and is currently more mature than Visual micro for As7

tip: VS2015 community is free, you must click C++ in the Custom setup options during install.

It's up to you which way you go. AS6.2 and VS2015 will exists well as two entirely separate programs on your pc. Both have their own version of visual micro so you will get to try old and new.
  
Back to top
IP Logged
 
vm24
Junior Member
**
Offline


Posts: 11
Joined: Jan 12th, 2016
Re: Mighty Mini 1284p @ 8 MHz - using Serial1 for Debuging
Reply #6 - Jan 15th, 2016 at 7:07am
Print Post  
Ok, thanks for your detailed explanation!

BR
  
Back to top
 
IP Logged
 
vm24
Junior Member
**
Offline


Posts: 11
Joined: Jan 12th, 2016
Re: Mighty Mini 1284p @ 8 MHz - using Serial1 for Debuging
Reply #7 - Jan 19th, 2016 at 2:01pm
Print Post  
Hi,
now I installed VS2015 and Visualmicro, but I'll can't compile with ATmega 1284P

I'm using Arduino IDE 1.6.4

Program Code:
Code (C++)
Select All
#include "ApplicationMonitor.h"

Watchdog::CApplicationMonitor ApplicationMonitor;

// An LED to flash while we can.
const int gc_nLEDPin = 13;

// countdown until the program locks up.
int g_nEndOfTheWorld = 15;

// number of iterations completed.
int g_nIterations = 0;

void setup()
{
	Serial.begin(9600);
	pinMode(gc_nLEDPin, OUTPUT);
	Serial.println("Ready");

	ApplicationMonitor.Dump(Serial);
	ApplicationMonitor.EnableWatchdog(Watchdog::CApplicationMonitor::Timeout_1s);
	//ApplicationMonitor.DisableWatchdog();

	Serial.println("Hello World!");
}

void loop()
{
	ApplicationMonitor.IAmAlive();
	ApplicationMonitor.SetData(g_nIterations++);

	Serial.println("The end is nigh!!!");

	digitalWrite(gc_nLEDPin, HIGH);   // turn the LED on (HIGH is the voltage level)
	delay(200);               // wait for a second
	digitalWrite(gc_nLEDPin, LOW);    // turn the LED off by making the voltage LOW
	delay(200);               // wait for a second

	if (g_nEndOfTheWorld == 0)
	{
		Serial.println("The end is here. Goodbye cruel world.");
		while(1)
		; // do nothing until the watchdog timer kicks in and resets the program.
	}

	--g_nEndOfTheWorld;
}
 



And this is the Error Message of the Micro Build:

Code
Select All
Compiling debug version of 'crash_test2' for 'Mighty Mini 1284p @ 8MHz'
VM_DBG.h:In file included from
VM_DBG.cpp:from
VM_Boards.h:372:2: error: #error "Please edit Boards.h with a hardware abstraction for this board"
:#error "Please edit Boards.h with a hardware abstraction for this board"
VM_Boards.h:In function 'unsigned char readPort(byte, byte)
VM_Boards.h:394:28: error: 'IS_PIN_DIGITAL' was not declared in this scope
:if (IS_PIN_DIGITAL(pin + 0) && (bitmask & 0x01) && digitalRead(PIN_TO_DIGITAL(pin + 0))) out |= 0x01
VM_Boards.h:394:87: error: 'PIN_TO_DIGITAL' was not declared in this scope
:if (IS_PIN_DIGITAL(pin + 0) && (bitmask & 0x01) && digitalRead(PIN_TO_DIGITAL(pin + 0))) out |= 0x01
VM_Boards.h:395:28: error: 'IS_PIN_DIGITAL' was not declared in this scope
:if (IS_PIN_DIGITAL(pin + 1) && (bitmask & 0x02) && digitalRead(PIN_TO_DIGITAL(pin + 1))) out |= 0x02
VM_Boards.h:395:87: error: 'PIN_TO_DIGITAL' was not declared in this scope
:if (IS_PIN_DIGITAL(pin + 1) && (bitmask & 0x02) && digitalRead(PIN_TO_DIGITAL(pin + 1))) out |= 0x02
VM_Boards.h:396:28: error: 'IS_PIN_DIGITAL' was not declared in this scope
:if (IS_PIN_DIGITAL(pin + 2) && (bitmask & 0x04) && digitalRead(PIN_TO_DIGITAL(pin + 2))) out |= 0x04
VM_Boards.h:396:87: error: 'PIN_TO_DIGITAL' was not declared in this scope
:if (IS_PIN_DIGITAL(pin + 2) && (bitmask & 0x04) && digitalRead(PIN_TO_DIGITAL(pin + 2))) out |= 0x04
VM_Boards.h:397:28: error: 'IS_PIN_DIGITAL' was not declared in this scope
:if (IS_PIN_DIGITAL(pin + 3) && (bitmask & 0x08) && digitalRead(PIN_TO_DIGITAL(pin + 3))) out |= 0x08
VM_Boards.h:397:87: error: 'PIN_TO_DIGITAL' was not declared in this scope
:if (IS_PIN_DIGITAL(pin + 3) && (bitmask & 0x08) && digitalRead(PIN_TO_DIGITAL(pin + 3))) out |= 0x08
VM_Boards.h:398:28: error: 'IS_PIN_DIGITAL' was not declared in this scope
:if (IS_PIN_DIGITAL(pin + 4) && (bitmask & 0x10) && digitalRead(PIN_TO_DIGITAL(pin + 4))) out |= 0x10
VM_Boards.h:398:87: error: 'PIN_TO_DIGITAL' was not declared in this scope
:if (IS_PIN_DIGITAL(pin + 4) && (bitmask & 0x10) && digitalRead(PIN_TO_DIGITAL(pin + 4))) out |= 0x10
VM_Boards.h:399:28: error: 'IS_PIN_DIGITAL' was not declared in this scope
:if (IS_PIN_DIGITAL(pin + 5) && (bitmask & 0x20) && digitalRead(PIN_TO_DIGITAL(pin + 5))) out |= 0x20
VM_Boards.h:399:87: error: 'PIN_TO_DIGITAL' was not declared in this scope
:if (IS_PIN_DIGITAL(pin + 5) && (bitmask & 0x20) && digitalRead(PIN_TO_DIGITAL(pin + 5))) out |= 0x20
VM_Boards.h:400:28: error: 'IS_PIN_DIGITAL' was not declared in this scope
:if (IS_PIN_DIGITAL(pin + 6) && (bitmask & 0x40) && digitalRead(PIN_TO_DIGITAL(pin + 6))) out |= 0x40
VM_Boards.h:400:87: error: 'PIN_TO_DIGITAL' was not declared in this scope
:if (IS_PIN_DIGITAL(pin + 6) && (bitmask & 0x40) && digitalRead(PIN_TO_DIGITAL(pin + 6))) out |= 0x40
VM_Boards.h:401:28: error: 'IS_PIN_DIGITAL' was not declared in this scope
:if (IS_PIN_DIGITAL(pin + 7) && (bitmask & 0x80) && digitalRead(PIN_TO_DIGITAL(pin + 7))) out |= 0x80
VM_Boards.h:401:87: error: 'PIN_TO_DIGITAL' was not declared in this scope
:if (IS_PIN_DIGITAL(pin + 7) && (bitmask & 0x80) && digitalRead(PIN_TO_DIGITAL(pin + 7))) out |= 0x80
VM_Boards.h:In function 'unsigned char writePort(byte, byte, byte)
VM_Boards.h:443:59: error: 'PIN_TO_DIGITAL' was not declared in this scope
:if ((bitmask & 0x01)) digitalWrite(PIN_TO_DIGITAL(pin + 0), (value & 0x01))
VM_Boards.h:444:59: error: 'PIN_TO_DIGITAL' was not declared in this scope
:if ((bitmask & 0x02)) digitalWrite(PIN_TO_DIGITAL(pin + 1), (value & 0x02))
VM_Boards.h:445:59: error: 'PIN_TO_DIGITAL' was not declared in this scope
:if ((bitmask & 0x04)) digitalWrite(PIN_TO_DIGITAL(pin + 2), (value & 0x04))
VM_Boards.h:446:59: error: 'PIN_TO_DIGITAL' was not declared in this scope
:if ((bitmask & 0x08)) digitalWrite(PIN_TO_DIGITAL(pin + 3), (value & 0x08))
VM_Boards.h:447:59: error: 'PIN_TO_DIGITAL' was not declared in this scope
:if ((bitmask & 0x10)) digitalWrite(PIN_TO_DIGITAL(pin + 4), (value & 0x10))
VM_Boards.h:448:59: error: 'PIN_TO_DIGITAL' was not declared in this scope
:if ((bitmask & 0x20)) digitalWrite(PIN_TO_DIGITAL(pin + 5), (value & 0x20))
VM_Boards.h:449:59: error: 'PIN_TO_DIGITAL' was not declared in this scope
:if ((bitmask & 0x40)) digitalWrite(PIN_TO_DIGITAL(pin + 6), (value & 0x40))
VM_Boards.h:450:59: error: 'PIN_TO_DIGITAL' was not declared in this scope
:if ((bitmask & 0x80)) digitalWrite(PIN_TO_DIGITAL(pin + 7), (value & 0x80))
Error compiling libraries
 



This looks like there is something not compatible or?

  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Mighty Mini 1284p @ 8 MHz - using Serial1 for Debuging
Reply #8 - Jan 19th, 2016 at 5:13pm
Print Post  
The problem is that you have switched on the debugger Digital or Analog pin reports in the project settings and your board is not yet known.

You need to switch off the reports or change the toolbar from "Debug/Local windows debugger" to "Release"
  
Back to top
IP Logged
 
vm24
Junior Member
**
Offline


Posts: 11
Joined: Jan 12th, 2016
Re: Mighty Mini 1284p @ 8 MHz - using Serial1 for Debuging
Reply #9 - Jan 21st, 2016 at 12:31pm
Print Post  
Ok, turning off digital debuger is like a workarround, but only half the fun Wink

How can I create my "own at 1284p board" in visual micro?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Mighty Mini 1284p @ 8 MHz - using Serial1 for Debuging
Reply #10 - Jan 21st, 2016 at 1:09pm
Print Post  
Hi,

If you open the firmata library and make it know about your boards for digital, analog, pin count etc. then attach the library to this post I can use that to produce 1284p support.

Thanks
  
Back to top
IP Logged
 
vm24
Junior Member
**
Offline


Posts: 11
Joined: Jan 12th, 2016
Re: Mighty Mini 1284p @ 8 MHz - using Serial1 for Debuging
Reply #11 - Jan 21st, 2016 at 2:01pm
Print Post  
Hi,
I had a quick look in the mithgty-1284p lib and it seems to me like it's already included.

Please check the lib here
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Mighty Mini 1284p @ 8 MHz - using Serial1 for Debuging
Reply #12 - Jan 21st, 2016 at 2:30pm
Print Post  
Great that's a really old one and needs to have the 1284 merged into the current one that installs with arduinoide\libraries folder.

If you can do the merge it will ave me some time. Notice the new one includes Teensy3 and other recent hardware. The one you have posted only has Teensy1 and 2 which shows it need a small overhaul.

If you can't do it I can look at it over next week or so. If you can then I can tell you to replace the boards.h below "VisualMicro\Micro Platforms\Default\Debuggers\VM_DBG"

You can find the "visual micro" program folder by looking in tools>options>visual micro>version>assembly

But also send me the .h or future visual micro updates will overwrite your changes.

  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint