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) Add new board- JeeNode? (Read 9309 times)
Maddox
Newbies
*
Offline


Posts: 1
Joined: Jan 29th, 2013
Add new board- JeeNode?
Feb 4th, 2013 at 11:32pm
Print Post  
Confirming that jeenodes don't work for debug.  I set it as an Uno (as I do in the Arduino IDE) - VS/VM works as an editor compiler and monitoring the serial port, just no breakpoint functionality Sad
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Add new board- JeeNode?
Reply #1 - Feb 5th, 2013 at 12:26am
Print Post  
Hi,

Questions

1. 
What do you mean no breakpoint functionality? Are you saying you don't get any Micro Trace messages showing which breakpoints are being hit, or that the system is not pausing at breakpoints?

2.
Which board do you select when you use a jeenode? If a custom board where can I download it?

3.
What speed do you set when you test the serial?

If you do this in your loop do you see the millis in the serial window?
Code
Select All
Serial.println(millis()) 



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


Posts: 32
Joined: Nov 4th, 2011
Re: Add new board- JeeNode?
Reply #2 - Feb 20th, 2013 at 4:20pm
Print Post  
I've personally used a JeeNode with Visual Micro and debugging does work. The JeeNode is just an ATmega328P running 16MHz 3.3V with an RF radio attached and a header for plugging in an FTDI cable. Under Arduino / Visual Micro, just select the Uno as the target board.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Add new board- JeeNode?
Reply #3 - Feb 20th, 2013 at 7:35pm
Print Post  
That's great to know thanks!

So if this is still a problem maddox then please answer these questions

Quote:
 
What do you mean no breakpoint functionality? Are you saying you don't get any Micro Trace messages showing which breakpoints are being hit, or that the system is not pausing at breakpoints?
  
Back to top
IP Logged
 
Doug Basberg
Junior Member
**
Offline


Posts: 20
Location: Michigan
Joined: Feb 28th, 2013
Re: Add new board- JeeNode?
Reply #4 - Mar 18th, 2013 at 12:12am
Print Post  
I was hoping this thread would say whether we can add custom boards to the Arduino boards.txt file and have them work with VM.  Will that work?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Add new board- JeeNode?
Reply #5 - Mar 19th, 2013 at 12:47am
Print Post  
Yes all 3rd party hardware is supported. The following is a short summary of std Arduino rules also supported by VM

ArduinoIDE\Hardware
adding boards to an existing boards.txt 
creating new custom hardware folders with a new boards.txt
adding new or sharing variants
adding new or sharing cores

[SketchFolder]\Hardware (usually MyDocuments\Arduino)
adding boards to an existing boards.txt 
creating new custom hardware folders with a new boards.txt
adding new or sharing variants
adding new or sharing cores

++

In the Teensyduino Alpha version (see codeplex downloads list, this version is the standard plugin with extra support)

In every boards.txt you are able to specify a different tool chain and additional build properties for compiler,linker etc.
  
Back to top
IP Logged
 
Doug Basberg
Junior Member
**
Offline


Posts: 20
Location: Michigan
Joined: Feb 28th, 2013
Re: Add new board- JeeNode?
Reply #6 - Mar 19th, 2013 at 5:13pm
Print Post  
Tim@Visual Micro wrote on Mar 19th, 2013 at 12:47am:
Yes all 3rd party hardware is supported. The following is a short summary of std Arduino rules also supported by VM

ArduinoIDE\Hardware
adding boards to an existing boards.txt 
creating new custom hardware folders with a new boards.txt
adding new or sharing variants
adding new or sharing cores

[SketchFolder]\Hardware (usually MyDocuments\Arduino)
adding boards to an existing boards.txt 
creating new custom hardware folders with a new boards.txt
adding new or sharing variants
adding new or sharing cores

++

In the Teensyduino Alpha version (see codeplex downloads list, this version is the standard plugin with extra support)

In every boards.txt you are able to specify a different tool chain and additional build properties for compiler,linker etc.


Thank you.  If I interpret this correctly, A boards.txt in MyDocuments\Arduino\Hardware will take president over the boards.txt in the ArduinoIDE\Hardware path.  Is that correct?  Earlier in this thread, it seemed you were considering replacing this approach with an xml spec file and an xml interpreter.  Is that correct?  My interest is user selection of clock speeds (in my case 12MHz with 3.3v supply).  That can be done in Boards.txt or the future xml file.  Thank you for all the great work you and your team are doing. Cool  Doug 
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Add new board- JeeNode?
Reply #7 - Mar 19th, 2013 at 8:38pm
Print Post  
Hi Doug,

Thanks for the message. You can do this a few ways. 

Quote:
If I interpret this correctly, A boards.txt in MyDocuments\Arduino\Hardware will take president over the boards.txt in the ArduinoIDE\Hardware path


Yes, from memory I think so. If not then please let me know. However it's very easy to clone a board and give it a new name

The speed is always taken from the boards.txt (if it exists), so you can create your own boards.txt entries with your own speed(s)

You can also use the "Defines - Project" to set a speed which vm will recognize and use as an override. This allows you to vary the speed without changing board but I would recommend the board.txt for a static board speed.

The xml system due to be released shortly will not provide additional capabilities in this area but will be useful for other future things.

Here is an example of a working ATtiny boards.txt definition running at 8mhz:-

Code
Select All
attiny45_8.name=ATtiny45 (internal 8 MHz clock)
attiny45_8.bootloader.low_fuses=0xe2
attiny45_8.bootloader.high_fuses=0xdf
attiny45_8.bootloader.extended_fuses=0xff
attiny45_8.upload.maximum_size=4096
attiny45_8.build.mcu=attiny45
attiny45_8.build.f_cpu=8000000L
attiny45_8.build.core=arduino:arduino
attiny45_8.build.variant=tiny8 



Here is a cloned example for an entirely new boards.txt entry. You can change any of it's properties.

Code
Select All
attiny45_8V2.name=ATtiny45 v2(internal 8 MHz clock)
attiny45_8V2.bootloader.low_fuses=0xe2
attiny45_8V2.bootloader.high_fuses=0xdf
attiny45_8V2.bootloader.extended_fuses=0xff
attiny45_8V2.upload.maximum_size=4096
attiny45_8V2.build.mcu=attiny45
attiny45_8V2.build.f_cpu=8000000L
attiny45_8V2.build.core=arduino:arduino
attiny45_8V2.build.variant=tiny8 

« Last Edit: Mar 19th, 2013 at 8:42pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Doug Basberg
Junior Member
**
Offline


Posts: 20
Location: Michigan
Joined: Feb 28th, 2013
Re: Add new board- JeeNode?
Reply #8 - Mar 19th, 2013 at 10:23pm
Print Post  
I modified the boards.txt file in the ArduinoIDE path and my added board was available in the VM/VS world.  I did a compile with verbose turned on and the 12MHz clock was verified.  Thanks for your help! Doug
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint