• ベストアンサー

dsPICの書き込みエラー

dsPIC30F3010をつかってモータ制御でブラウンアウト電圧を設定していますが下記のエラーが発生します。 対処方法をお願い致します。 error: 'BORV_20' undeclared here (not in a function)

質問者が選んだベストアンサー

  • ベストアンサー
  • bediyap
  • ベストアンサー率100% (1/1)
回答No.1

Try using BORV20 in your configuration settings instead ex: _FBORPOR(PBOR_ON & BORV20 & PWRT_64 & MCLR_EN); Seems like Microchip made some changes to the new C30 library ref: https://groups.google.com/forum/?fromgroups=#!topic/uavdevboard/6_viAaKuUus

tokyoame
質問者

お礼

Thank you for your advice. Your advice helped me.

全文を見る
すると、全ての回答が全文表示されます。

関連するQ&A

  • GPIBドライバIC uPD7210を使用したGPIBカードをFreeBSD7.0(?)で使用するには?

    GPIBドライバIC uPD7210を使用したGPIBカードをFreeBSD7.0(?)で使用するためにネットにあったものを参考に、カーネルを再構築してmakeを実行したところ、errorがたくさん出て困っています。他サイトでも同じ質問をしたのですがあまり回答がないのでこちらでも質問します。 とりあえずネットに書いてあることをそのままやってみてerrorメッセージがなくなるようにいろいろ調べて試しているのですが一向にうまくいきません。どなたかアドバイスをお願いします。卒研で先生にやらされているのですがC言語を授業で少しやったことがある程度なので知識は限りなく乏しいです。しかし、今さらテーマを変えるわけにもいかないのでなんとかしたいのです。 デバイスドライバ等は下記アドレスにあります。 http://www.youko-house.ne.jp/~hirohito/soft/upd7210-2 ver.4.xではうまくいくそうです。目的はgpibを使った計測システム作成なので、最悪ver4を使おうと思うのですがそれでは何もやっていないのとほぼ同じなのでver.7になんとかつっこめないかと思っています。 あとメジャー番号の振り分けも必要なみたいなのですがver.4の場合、/usr/src/sys/conf/majorsに一覧になっているのですがver.7ではmajorsがなくなっていてどこかにあるのかわかりません。 下にエラーメッセージを示します。warningは先生が無視してもいいといったので(ホントかわかりませんが)とりあえずerror:だけ示します。すべてupd7210.cのものです。 78: error: 'nopoll' undeclared here (not in a function) 79: error: 'nommap' undeclared here (not in a function) 80: error: 'nostrategy' undeclared here (not in a function) 83: error: 'nodump' undeclared here (not in a function) 84: error: 'nopsize' undeclared here (not in a function) 134: error: conflicting types for 'gpib_open' 65: error: previous declaration of 'gpib_open' was here In function 'gpib_open': At top level: 160: error: conflicting types for 'gpib_close' 66: error: previous declaration of 'gpib_close' was here In function 'gpib_close': At top level: 187: error: conflicting types for 'gpib_read' 67: error: previous declaration of 'gpib_read' was here In function 'gpib_read': At top level: 254: error: conflicting types for 'gpib_write' 68: error: previous declaration of 'gpib_write' was here In function 'gpib_write': At top level: 314: error: conflicting types for 'gpib_ioctl' 69: error: previous declaration of 'gpib_ioctl' was here In function 'gpib_ioctl': 377: error: label at end of compound statement

  • apache make時のエラーで困っています

    お世話になります。 apache をソースからインストールしなければならないのですが、以下のエラーが出ており、解決できません。お力をお借りできますでしょうか。 ■エラー内容------------------------------------------------- In file included from /usr/include/apr-1/apr_ldap.h:120, from /home/***/httpd-2.2.6/include/util_ldap.h:31, from exports.c:38: /usr/include/apr-1/apr_ldap_init.h:112: error: expected declaration specifiers or '...' before 'LDAP' In file included from /usr/include/apr-1/apr_ldap.h:121, from /home/***/httpd-2.2.6/include/util_ldap.h:31, from exports.c:38: /usr/include/apr-1/apr_ldap_option.h:204: error: expected declaration specifiers or '...' before 'LDAP' /usr/include/apr-1/apr_ldap_option.h:226: error: expected declaration specifiers or '...' before 'LDAP' In file included from exports.c:38: /home/***/httpd-2.2.6/include/util_ldap.h:82: error: 'LDAP_DEREF_NEVER' undeclared here (not in a function) /home/***/httpd-2.2.6/include/util_ldap.h:83: error: 'LDAP_DEREF_SEARCHING' undeclared here (not in a function) /home/***/httpd-2.2.6/include/util_ldap.h:84: error: 'LDAP_DEREF_FINDING' undeclared here (not in a function) /home/***/httpd-2.2.6/include/util_ldap.h:85: error: 'LDAP_DEREF_ALWAYS' undeclared here (not in a function) /home/***/httpd-2.2.6/include/util_ldap.h:90: error: expected specifier-qualifier-list before 'LDAP' make[2]: *** [exports.lo] エラー 1 make[2]: ディレクトリ `/home/***/httpd-2.2.6/server' から出ます make[1]: *** [all-recursive] エラー 1 make[1]: ディレクトリ `/home/***/httpd-2.2.6/server' から出ます make: *** [all-recursive] エラー 1 ------------------------------------------------------------------ OS:openSUSE 10.2 apacheのソース:httpd-2.2.6 ディレクトリ /home/***/下にソースを展開&makeしています。 openldapのインストールが必要かと思い、openldap2 2.3.27をインストールしてみましたが、変化がありませんでした。 また、configureオプションが問題かと思い、オプションを何もつけない状態で試しましたが、やはり同じエラーになります。 別環境のopenSUSE 10.0では、同じソースを使って問題なく、make、installができます。 原因として何が考えられますでしょうか。 よろしくお願いいたします。

  • DBDのインストールで以下のエラー

    OSはmacOS 10.6 Snow Leopardです。 【1】まずディレクトリを移動 $cd/Users/machidaakira/Desktop/installlog/MySQL/DBD-mysql-3.0008 【2】perl Makefile.plI の実行で以下のエラー DBD-mysql-3.0008$ perl Makefile.plI will use the following settings for compiling and testing: cflags (mysql_config) = -I/usr/include/mysql -fno-omit-frame-pointer -pipe embedded (mysql_config) = libs (mysql_config) = -pipe -L/usr/lib/mysql -lmysqlclient -lz -lm mysql_config (guessed ) = mysql_config nocatchstderr (default ) = 0 nofoundrows (default ) = 0 ssl (guessed ) = 0 testdb (default ) = test testhost (default ) = testpassword (default ) = testsocket (default ) = testuser (default ) = To change these settings, see 'perl Makefile.PL --help' and 'perldoc INSTALL'. Failed to create t/mysql.mtest: Permission denied at Makefile.pl line 188, <PIPE> line 103. 【3】さらにmakeの実行で以下のエラー akiram1979:DBD-mysql-3.0008 machidaakira$ makegcc-4.2 -c -I/Library/Perl/5.10.0/darwin-thread-multi-2level/auto/DBI -I/usr/local/mysql/include/mysql -DDBD_MYSQL_WITH_SSL -DDBD_MYSQL_INSERT_ID_IS_GOOD -g -arch x86_64 -arch i386 -arch ppc -g -pipe -fno-common -DPERL_DARWIN -fno-strict-aliasing -I/usr/local/include -Os -DVERSION=\"3.0008\" -DXS_VERSION=\"3.0008\" "-I/System/Library/Perl/5.10.0/darwin-thread-multi-2level/CORE" dbdimp.c In file included from dbdimp.c:20: dbdimp.h:21:49: error: mysql.h: No such file or directory dbdimp.h:22:45: error: mysqld_error.h: No such file or directory dbdimp.h:23:49: error: errmsg.h: No such file or directory In file included from dbdimp.c:20: dbdimp.h:124: error: expected specifier-qualifier-list before ‘MYSQL’ dbdimp.h:214: error: expected specifier-qualifier-list before ‘MYSQL_RES’ In file included from dbdimp.c:20: dbdimp.h:268: error: expected ‘)’ before ‘*’ token dbdimp.h:271: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘mysql_st_internal_execute’ dbdimp.h:292: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token dbdimp.c: In function ‘alloc_param’: dbdimp.c:112: warning: format not a string literal and no format arguments dbdimp.c: At top level: dbdimp.c:398: error: expected ‘)’ before ‘*’ token dbdimp.c:666: error: ‘FIELD_TYPE_VAR_STRING’ undeclared here (not in a function) dbdimp.c:673: error: ‘FIELD_TYPE_DECIMAL’ undeclared here (not in a function) dbdimp.c:680: error: ‘FIELD_TYPE_TINY’ undeclared here (not in a function) dbdimp.c:687: error: ‘FIELD_TYPE_SHORT’ undeclared here (not in a function) dbdimp.c:694: error: ‘FIELD_TYPE_LONG’ undeclared here (not in a function) dbdimp.c:701: error: ‘FIELD_TYPE_FLOAT’ undeclared here (not in a ~ dbdimp.c:3978: error: ‘imp_dbh_t’ has no member named ‘mysql’ dbdimp.c: In function ‘mysql_db_last_insert_id’: dbdimp.c:3993: error: ‘imp_dbh_t’ has no member named ‘mysql’ dbdimp.c:3993: warning: passing argument 2 of ‘Perl_sv_2mortal’ makes pointer from integer without a cast lipo: can't open input file: /var/folders/bi/biS-GmuWG80l7P98UBgt0k+++TI/-Tmp-//ccspyro0.out (No such file or directory) make: *** [dbdimp.o] Error 1

  • エラーの対策

    インターネット上で他の方のC言語ソースコードをダウンロードした、MAKEでコンパイルしたときに、以下のエラーはでました、どうしたらいいでしょうか? gcc -pipe -ansi -c -o base.o base.c base.c: In function `Setup': base.c:535: `S_IFDIR' undeclared (first use in this function) base.c:535: (Each undeclared identifier is reported only once base.c:535: for each function it appears in.) make: *** [base.o] Error 1

  • avr studioのビルドエラーについて

    avr studio 6にてプログラミングしようとしている超初心者です 書き込み機器をmkII、atmega328pに書き込もうとしております しかし、エラーが出てしまい、どうしてもビルドが成功できません。 質問なのですが、こちらのサイト(http://www.diotown.com/creative/2011/05/arduino-de-pwm-controller.h...)にて行っているものを そのままプログラミングしてみようと リンクについていたソース(http://www006.upp.so-net.ne.jp/neueziel/pp/powerpack_r.txt) を #include <avr/io.h>からコピーしてビルドしてみました。 ですが、ビルドがエラー15個、警告5個出てしまいました。 そのうちの数か所を記載しますのでどうすればよいかアドバイスよろしくお願いします。 説明 行 列 プロジェクト (1)エラー 1 unknown type name 'byte' 190 1 VVVF (2)エラー 5 'OUTPUT' undeclared (first use in this function) 291 17 VVVF (3)エラー 9 'HIGH' undeclared (first use in this function) 330 20 VVVF (4)エラー 12 'word' undeclared (first use in this function) 582 26 VVVF (5)エラー 13 expected ';' before 'light' 582 31 VVVF (6)エラー 14 'B00010001' undeclared (first use in this function) 583 14 VVVF (7)警告 4 implicit declaration of function 'pinMode' [-Wimplicit-function-declaration]291 2 VVVF (8)警告 7 implicit declaration of function 'swrite' [-Wimplicit-function-declaration]327 4 VVVF (9)警告 8 implicit declaration of function 'digitalWrite' [-Wimplicit-function-declaration]330 3 VVVF (10)警告 10 implicit declaration of function 'delay' [-Wimplicit-function-declaration] 332 3 VVVF (11)警告 11 implicit declaration of function 'analogRead' [-Wimplicit-function-declaration]344 4 VVVF 以上ですよろしくお願いします

  • Apache2インストールでpcre_default_tables未定義エラー

    こんにちは、honiyonです。  RedHat LinuxにApache2をソースからインストールしようとしています。  tar xzvf で展開し、   ./configure --enable-modules=so --enable-ssl   make  としたところ、 pcre.c: In function `pcre_compile': pcre.c:2534: `pcre_default_tables' undeclared (first use in this function) pcre.c:2534: (Each undeclared identifier is reported only once  とエラーが出ました。  原因が分からなかったので、pcre-6.3.tar.gz を使って無理やり(?)コンパイルを通すと、今度は util.c: In function `ap_find_token': util.c:1456: `test_char_table' undeclared (first use in this function) util.c:1456: (Each undeclared identifier is reported only once util.c:1456: for each function it appears in.) util.c:1456: `T_HTTP_TOKEN_STOP' undeclared (first use in this function) util.c: In function `ap_escape_shell_cmd': util.c:1520: `test_char_table' undeclared (first use in this function) ...~後略~  とエラーが出ました。  Apacheのバージョンは、2.0.54と2.0.46を試していますが、同じエラーとなっています。  う~ん、何か不足しているのでしょうか?  VineLinuxで同様のmakeをした時はすんなり成功しました。  何かお気づきの点がありましたら、是非ご教示ください。  因みに、このLinuxのunameの結果は uname -s Linux uname -m i686 uname -r 2.4.20-8smp uname -v #1 SMP Thu Mar 13 17:45:54 EST 2004  gcc -v は RedHat Linux 3.2.2-5  です。  宜しくお願いします(..

  • コンパイルエラーの原因がわからず困っています。

    こんにちわ。いつもお世話になっております。 自分で構造体を定義して、それを使ってみたのですがコンパイルエラーが出てしまいます。何がいけないのでしょうか。 以下がそのプログラムです。 struct list { struct list *prev; struct in_addr ip_src, ip_dst; u_short th_sport; u_short th_dport; struct list *next; }; void main (u_char * args, const struct pcap_pkthdr *header, const u_char * packet) { static int count = 1; const sturct list *flow; return; } 以上です。 エラー内容は test.c: In function ‘main’: test.c:17: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘list’ test.c:17: error: ‘list’ undeclared (first use in this function) test.c:17: error: (Each undeclared identifier is reported only once test.c:17: error: for each function it appears in.) test.c:17: error: ‘flow’ undeclared (first use in this function) 以上です。 どんな些細な意見でも構いませんので、何か気が付かれたら教えて頂けないでしょうか。どうぞよろしくお願いします。

  • エラーが出てコンパイルができません…

    #include<stdio.h> void main(void) { int i; i=0; while(i<3){ printf("おーい\n\"); printf(" やっほー\n\n\"); i=i+1; } printf("プログラムを終了します\"); } と本に書いてあった通りに入力したら、下のようなエラーが出てきました。 7: 文法エラー before \"i\" 9: stray \'\\\' in program 10: stray \'\\\' in program 10: 文法エラー before \"n\" 11: stray \'\\\' in program 11: 文法エラー before \"n\" 12: `i\' undeclared (first use in this function) 12: (Each undeclared identifier is reported only once 12: for each function it appears in.) トップレベル: 15: error: 文法エラー before string constant 15: conflicting types for built-in function `printf\' 15: data definition has no type or storage class 16:2: ファイル末尾に改行がありません 解決策と原因を教えて下さい。 宜しくお願い致します。

  • MinGWとmsysでGTK+の開発環境を整えたい

    WindowsXP上で、コンパイラにMinGWを用いてGTK+2.0を用いたGUIアプリケーションの開発を行いたいと思っています。 しかし、GTK+2.0のサンプルソースのコンパイルが通りません。 コマンドとそのエラーは以下の通りです。 どうもヘッダーが見つからないと言っているようですが、ヘッダーをコンパイラのincludeフォルダに入れても駄目でした。 いれたGTK+はGlade等、全てがパックになっているものでした。インストール時にmsysを認識してくれていたので、勝手に設定をしてくれるのかと思ったのですが…。 $ gcc hello_gtk.c 'pkg-config gtk+-2.0 --cflags' hello_gtk.c:1:21: gtk/gtk.h: No such file or directory hello_gtk.c: In function `main': hello_gtk.c:5: error: `GtkWidget' undeclared (first use in this function) hello_gtk.c:5: error: (Each undeclared identifier is reported only once hello_gtk.c:5: error: for each function it appears in.) hello_gtk.c:5: error: `window' undeclared (first use in this function) hello_gtk.c:6: error: `label' undeclared (first use in this function) hello_gtk.c:10: error: `GTK_WINDOW_TOPLEVEL' undeclared (first use in this function) gcc.exe: pkg-config gtk+-2.0 --cflags: No such file or directory どうすれば、コンパイルできるようになるのでしょう?

  • fortran sqrtコンパイルエラー

    プログラムを書き直していて以下の様なエラーが出てしまいます。 以前sqrt関数を書いたときは以下の様なエラーは出てこなかったのですが、最近やたらFunctionのエラーがよく出ます。コンパイルに問題があるのでしょうか?自分のコンパイルを調べるにはどうしたらわかるのでしょうか?よろしくお願いします。 In file init.f90:52 rf = sqrt((nx-5)**2+(ny-5)**2+(nz-5)**2) 1 Error: Type of argument 'x' in call to 'sqrt' at (1) should be REAL(4), not INTEGER(4) In file init.f90:52 rf = sqrt((nx-5)**2+(ny-5)**2+(nz-5)**2) 1 Error: Function 'sqrt' at (1) has no implicit type