Error Undefined Symbol Fcmdis
quite popular in industrial and hobbyist, some of the newest 8-bit midrange Microchip PIC microcontroller with nanoWatt technology is PIC16F690, this 20 pin microcontroller has a build in peripherals such as ADC, UART, PWM, I2C, analog comparator and with 7KBytes program memory flash; for those who's come from the AVR background this is a good change to gain the knowledge as we know is hard to find the comparable 20 pin 8-bit AVR microcontroller product which has the same feature as Microchip PIC16F690; and for those who are the first time learner welcome to the PIC microcontroller world. 1. Which tools should I use To start C programming language on Microchip PIC Microcontroller you need these following tools: Down load the latest Microchip MPLAB IDE which provide you with the complete IDE (integrated development environment) for managing project, program editing, compiling, debugging and downloader for all Microchip PIC Microcontroller series. The MPLAB IDE is already come with the HITECH PICC-Lite C compiler and fully integrated with MPLAB IDE. The PIC16F690 datasheet, is one of the most important document if you want to learn this type of microcontroller Microchip PICKit2 Programmer. PICJazz 16F690 board from ermicro (for circuit schema click here) After downloading, install the Microchip MPLAB IDE and just follow all the default setting. 2. My first PIC C Programming To create your first PIC project go to Start -> All Programs -> Microchip -> MPLAB IDE ver 8.00 -> MPLAB IDE (I am using version 8.00 on this tutorial), this will launch the MPLAB IDE application screen then start the project wizard by selecting the menu Project -> Project Wizard… from MPLAB IDE and this will launch the project wizard, just continue with Next button and it will show the project wizard step one form as follow: Choose the PIC16F690 device then click Next button: On step two we choose the HI-TECH C Compiler and click Next button Step three create your project file which is myfirstc in this tutorial then click Next button; on step four just click Next button because this is you first program there is no existing file to be added then press Finish button on the last screen; this will bring you to the MPLAB IDE
Pilastri (FE),Emilia Romagna,I... How to print on uart.??????? #21850 - Sat Mar 18 2006 12:39 AM Edit Reply Quote Quick Reply Hi,this is my code:#include "dspic.h"#include "pwm_mio.h"#include "adset.h"#include "conio.h"#include "stdio.h"#include "stdlib.h"#include "delay.h"#include "stdarg.h"unsigned int i,j;unsigned int output = &ADCBUF0;void main (){ TRISB = 0xFFFF; init(); U1MODE= 0b1000000010000000; U1STA= 0b0000010000000000; U1BRG= 0x005B; while(1){ i++; catturaemg4(); run_pwm1h(ADCBUF0>>8); //DelayMs (30); printf("%x",ADCBUF0>>8); } }This is the error message in output window:Error[499] 0 : undefined symbol: _putch (C:\HTSOFT\dsPICC_9.50\lib\dspicc-sF.lib: printf.obj)BUILD FAILED: Fri Mar 17 15:35:04 2006Listen: it's not a programming matter,I've not made mistakes in my own function ,because without the printf http://www.ermicro.com/blog/?p=365 it works....Can anyone help me????Why doesn't printf works,It seems impossible!!!!!! Post Extras: Dan Henry Guru Reged: Oct 16 2003 Posts: 4622 Loc: Colorado Re: How to print on uart.??????? [Re: genio] #21858 - Sat Mar 18 2006 04:14 AM Edit Reply Quote Quick Reply Quote: Error[499] 0 : undefined symbol: _putchHave you provided your putch() like the manual says to in section 3.14? Post Extras: http://www.htsoft.com/forum/all/showflat.php?Number=21850 mikerj Guru Reged: Oct 19 2003 Posts: 1482 Loc: Devon, UK Re: How to print on uart.??????? [Re: genio] #21859 - Sat Mar 18 2006 04:17 AM Edit Reply Quote Quick Reply No matter what you think, this IS a programming matter. The error tells you exactly what you need to know, that you have not defined the putch function.A PIC is not a PC, it has no STDIO defined so how could printf possibly know where to send it's output? You presumably want to send characters to the serial port, others may wish to send printf's output to an LCD etc.The answer is you have to define your own putch function which is what printf uses for it's character output. There are some example serial functions in the compilers samples directory. Post Extras: genio Reged: Feb 02 2006 Posts: 15 Loc: Pilastri (FE),Emilia Romagna,I... Re: How to print on uart.??????? [Re: mikerj] #21865 - Sat Mar 18 2006 08:29 AM Edit Reply Quote Quick Reply ok...I understand...but how to make the putc I need..and where to put it...because i can't see any example fitting...Please Help me with some code example... Post Extras: genio Reged: Feb 02 2006 Posts: 15 Loc: Pilastri (FE),Emilia Romagna,I... Re: How to print on uart.???????
by tracecom, May 2, 2012. Reply to Thread Search Forums Recent Posts Today's Posts Page 3 of 3 < Prev 1 2 3 May 2, 2012 #41 tracecom Thread Starter AAC Fanatic! Apr 16, 2010 3,867 1,392 Running Target PICkit 2 http://forum.allaboutcircuits.com/threads/pbp3-pickit2-mplab-ide-v8-83-mcsx-and-i-am-baffled.69596/page-3 Ready Resetting Programming Target (5/2/2012 10:20:43 PM) PIC16F684 found (Rev 0x4) Erasing Target Programming Program http://detail.chiebukuro.yahoo.co.jp/qa/question_detail/q1186071596 Memory (0x0 - 0x3) Programming Program Memory (0x6D4 - 0x6FF) Verifying Program Memory (0x0 - 0x3) Verifying Program Memory (0x6D4 - 0x6FF) Programming Debug Executive (0x-700 - 0x7FF) Verifying Debug Executive (0x700 - 0x7FF) Programming Debug Vector Verifying Debug Vector Programming Configuration Memory Verifying Configuration Memory PK2Error0028: Unable to enter debug mode NOTE: This device requires an ICD Header for debug. See error undefined "Header Specification" DS51292. PICkit 2 Ready Running Target PICkit 2 Ready #41 Like Reply May 2, 2012 #42 MrChips Moderator Oct 2, 2009 12,177 3,265 What do the LEDs do? If not lit then the code in post #39 is designed to make the LEDs come on and stay on. If this does not work. Go to the main menu bar and select Programmer. Select Programmer, PICkit 2 Build and RUN If the LEDs do not stay error undefined symbol on then we will have to leave it for another time. #42 Like Reply May 2, 2012 #43 tracecom Thread Starter AAC Fanatic! Apr 16, 2010 3,867 1,392 MrChips said: ↑ What do the LEDs do?Click to expand... Nothing MrChips said: ↑ If this does not work. Go to the main menu bar and select Programmer. Select Programmer, PICkit 2 Build and RUN If the LEDs do not stay on then we will have to leave it for another time.Click to expand... This time the LEDs lit and stayed on, but I didn't find a RUN button, so I had to change the Programmer settings to auto run after a successful program. Thanks for your help, but I am afraid this is beyond me. I have no idea what we did, and couldn't do it again if my life depended on it. And if it took this long just to get LEDs to light, how long would it take to implement some meaningful function? (That's just a rhetorical question, BTW.) I have so many questions about what was done and why, I don't know where to start. And as far as writing code, we spent so much time on the process, I have no idea what any of the code means. Thanks again. #43 Like Reply May 2, 2012 #44 MrChips Moderator Oct 2, 2009 12,177 3,265 Don't be discour
ランキング 専門家 企業公式 Q&A一覧 回答コーナー 今すぐ利用登録 Q&A 知恵ノート Q&A Q&A 知恵ノート 条件指定 すべてのカテゴリ C言語関連 質問・相談 知恵ノートを書く 知恵袋トップ> コンピュータテクノロジー> プログラミング> C言語関連 現在JavaScriptが無効になっています。 Yahoo!知恵袋のすべての機能を利用するためには、javaScriptの設定を有効にしてください。 JavaScriptの設定を変更するには「JavaScriptの設定方法」をご覧ください。 PICに関する質問です 使用PIC PIC16F690 使用ソフト MPLAB IDE,H... シェア ツイート はてブ 知恵コレ hirotakada28さん 2012/4/2217:11:50 PICに関する質問です 使用PIC PIC16F690 使用ソフト MPLAB IDE,HI-TECC c言語でプログラミングしているのですが LEDを点灯する簡単なプログラミングさえできません ソースファイル(1)を作ってビルドすると以下の様なエラーに関する文(2)がでるのですが 何が間違っているのかが分かりません ご指摘お願いします (1) #include