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
Normal Topic VM_boards.h for Teensy 3.0 (Read 4170 times)
BrianC
Newbies
*
Offline


Posts: 1
Joined: Jan 20th, 2013
VM_boards.h for Teensy 3.0
Jan 7th, 2014 at 3:57am
Print Post  
Hi all,

I can upload and build programs for the teensy 3.0, and do simple debugging. However, whenever I set "report analogs", "report digitals" or "scan i2c at startup" to true, I get the error

[code]VM_DBG.h : In file included from
VM_DBG.cpp : from
VM_Boards.h : #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 : 'IS_PIN_DIGITAL' was not declared in this scope
VM_Boards.h : 'PIN_TO_DIGITAL' was not declared in this scope
VM_Boards.h : 'IS_PIN_DIGITAL' was not declared in this scope
VM_Boards.h : 'PIN_TO_DIGITAL' was not declared in this scope
VM_Boards.h : 'IS_PIN_DIGITAL' was not declared in this scope
VM_Boards.h : 'PIN_TO_DIGITAL' was not declared in this scope
VM_Boards.h : 'IS_PIN_DIGITAL' was not declared in this scope
VM_Boards.h : 'PIN_TO_DIGITAL' was not declared in this scope
VM_Boards.h : 'IS_PIN_DIGITAL' was not declared in this scope
VM_Boards.h : 'PIN_TO_DIGITAL' was not declared in this scope
VM_Boards.h : 'IS_PIN_DIGITAL' was not declared in this scope
VM_Boards.h : 'PIN_TO_DIGITAL' was not declared in this scope
VM_Boards.h : 'IS_PIN_DIGITAL' was not declared in this scope
VM_Boards.h : 'PIN_TO_DIGITAL' was not declared in this scope
VM_Boards.h : 'IS_PIN_DIGITAL' was not declared in this scope
VM_Boards.h : 'PIN_TO_DIGITAL' was not declared in this scope
Error compiling[/code]

I have opened VM_Boards.h, and see that there are definitions for both teensy 1 and 2 as well as teensy++ 1 and 2, but no teensy 3?

Is it possible to put this into the next release (it really is only 10 lines of code, but I don't know the pins exactly).

Also, I realised like many others that intellisense doesn't work on teensy 3.0, which is annoying.

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


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: VM_boards.h for Teensy 3.0
Reply #1 - Jan 7th, 2014 at 2:13pm
Print Post  
Hi Brian,

Yes both those things are addressed in the next release due over the next week.

Intellisense workaround is to select something like a mega2560 then switch to teensy before upload. A pain I know!

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


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: VM_boards.h for Teensy 3.0
Reply #2 - Jan 10th, 2014 at 12:19pm
Print Post  
Pre-release fix here. Please test thanks

https://visualmicro.codeplex.com/releases/view/117112
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint