First defined here collect2 exe error ld returned 1 exit status

The collect2: error: ld returned 1 exit status error is fixed by shutting down the program running in the background. Read this complete guide to learn more.

Why is the collect error ld returned exit status happeningThe collect2: error: ld returned 1 exit status error message is easily fixed by removing an existing executable file inside your document. It is possible to remove the existing file that is running in the background by accessing the thread tools inside your system. The complete process is easy to do and only consists of a couple of steps.

If you want to become an expert at fixing this undefined reference in your program, keep reading this complete guide that contains all the details.

Why Is the collect2: Error: Ld Returned 1 Exit Status Happening?

This specific collect2: error: ld returned 1 exit status error message appears due to previous errors in your document, especially when working with C++. It represents one of the most common errors web developers face but it is also one of the easiest ones to fix. In other words, this error is there to indicate that the linking step in the process of creating faced certain problems.

This is going to create an undefined reference because the exit status is more than the value of zero. You can run multiple steps to create a search thread that is going to eliminate the problem. We are going to list and explain the various methods you can use to fix this error in your document. Continue reading the following section of this article to learn more about the debugging process.

How To Fix This Error Inside Your Program

The easiest and most common method of fixing this error requires you to completely delete the existing executable file that is running in the background of your program. However, as is the case with most other bugs, this solution might not work for everyone and every single time. Lucky for you, programming languages allow users to fix an error in multiple ways, in case any of the previous ones does not work.

This is called a process of debugging, where you are trying to completely remove an error you have encountered in your program. No matter how serious the error may be, the debugging process always starts with an inspection of the problem. After that, locate where the error is coming from and apply all the necessary changes to the code.

Let us now learn something more about the ways of debugging this error.

– Listing All the Possible Methods for Debugging This Error

In this part of the guide, we are going to list the possible methods for debugging and also briefly explain their function. Let us take a deep dive at the following list that shows the most common ways of fixing this error:

  • Deleting the existing executable file inside your program: The file may have failed because it is locked in a different location, such as an antivirus.
  • It is possible to try and rename that specific executable file in your program. Then, you are supposed to restructure the contents, and you are done. Renaming the file helps the program to create an additional executable file.
  • In case none of this works, you should try restarting your computer and redo the first step. This solution shows that debugging does not always have to be complicated.

In theory, this is all it takes to completely remove this error from your syntax. However, it is always best to learn from examples. That is why in the following section of this article, we are going to show you example codes to easily fix this error.

– A Common Error in the Gem Native Extension

Many web developers face certain problems once working with extensions for their browsers. One such bug appears when you are trying to install a gem inside the native extension on your browser.

The reason why we are explaining the native extension is that the collect2 error usually appears during the process of installing a gem. To better understand what this means, you should take a look at the complete syntax.

Take a closer look at the following code that is going to initiate the collect2 error:

Building a proper native extension.  This might take a while…

ERROR:  Error installing json:
ERROR: Failed to generate gem native extension.
/home/foobar/.rvm/ruby-2.4.7/bin/ruby -r ./siteconf134617815-3312439-1i9lahdrj.rb extconf.rb
creating Makefile
make “DESTDIR=” clean
make “DESTDIR=”
compiling generator.c
linking shared-object json/ext/generator.so
/usr/bin/ld: cannot find -lgmp
collect2: error: ld returned 1 exit status
make: *** [generator.so] Error 1
make failed, exit code 2

Gem files will remain installed in /home/foobar/.rvm/gems/ruby-2.4.7/gems/json-1.8.3 for inspection.

Results logged to /home/foobar/.rvm/gems/ruby-2.4.7/extensions/x86_64-linux/2.2.0/json-1.8.3/gem_make.out

As you can see, this is the complete code for the collect2 error inside your program. There is certainly something you can do to the syntax to debug this error and make the program functional again. Indeed, we are going to change some things in the library and this is going to completely remove the error. Take a look at the following section of this article to learn more.

– Using the Debugging Library Syntax for the collect2 Error

As previously explained, you are supposed to change certain things inside the library to fix this error. For this, you are going to need the gmp function to locate the correct files and return the incorrect status. Open the code with the cache search gmp function and include all the additional tools inside.

The following syntax shows how to properly use the gmp function to fix this error:

$ apt-cache search gmp
libgmp-dev – Multiprecision arithmetic library developers tools
libgmp10 – Multiprecision arithmetic library
libgmp10-doc – Multiprecision arithmetic library example code
libgmp3-dev – Multiprecision arithmetic library developers tools
libgmpxx4ldbl – Multiprecision arithmetic library (C++ bindings)
[…]

Be aware that the syntax may be subject to changes. As this example shows, the annoying collect2 error does not have to be complicated to locate and fix. However, pay attention to the exact location of the gmp function because this may sometimes be the difference between a correctly and incorrectly executed code. Let us now learn other things about this common error in your program.

– Facing This Error in Dev C++

As previously explained, the collect2 error may usually appear once working with Dev C++. It refers to a specific reference to a name where the linker cannot define the way it looks based on the object files. This also applies to all the libraries that make up your document.

Lucky for you, fixing the error is done in the same manner as previously taught. All you have to do is to follow the steps discussed in this article and the problem is going to disappear. To learn more about this error, continue reading the FAQ section of this article.

FAQs

Here are the answers to some of your questions regarding this error.

– What Is collect2 Exe?

Collect2 represents a utility that web developers use to arrange certain initialization functions during the start time. In other words, it is used to link the program and the adequate functions, while creating a table inside a temporary file. Then, it is going to create a second link with the program but include a different file.

– What Does Error 1d Returned 1 Exit Status Mean?

The returned 1 status refers to an error in your document that is created due to previous errors. It is used as an indicator to point out that certain linking steps during the building process have bugs. To fix the error, you are supposed to refer to all the previous functions and locate the part of the program that is operating incorrectly.

– How To Combine Two Files in C++?

You can start combining two files in C++ by creating two separate source files on your server. The process of combining two C++ files is important because you can combine two different programs and functions. Since the collect2 error usually appears during this process, it is important to understand how the files are merged together.

There are several steps you are supposed to closely follow, as shown in the following list:

  1. Create two separate C++ source files on your server.
  2. Both files should be saved inside the same location on the server.
  3. Open the Command Prompt tool and run the various commands from your files.
  4. The tool is going to merge the two separate source files together and comply their functions.
  5. Install the C++ Complier Program to run the newly-created file without any bugs.

This is all it takes to create a complex C++ file without facing any collect2 errors in your server. You can use this method for any two C++ files.

This section wraps everything important you were supposed to know about the collect2 error in your document. Let us now summarize the details.

Final Conclusion and Further Notes

This specific exit status error message is easily fixed by removing an existing executable file inside your document. Let us take a deep dive at the following list that contains all the important details from this article:

  • The collect2 error is easily fixed by shutting down a program that is running in the background
  • Web developers usually face this problem once working with Dev C++ and other files
  • The Gem native extension usually displays this error alongside the complete syntax but it can be easily fixed
  • It is important to know the meaning of collect2 to debug the error more efficiently
  • It is possible to merge two C++ source files in five basic steps without caring about this error

How to fix collect error ld returned exit status errorWeb developers are constantly struggling with the collect2 error inside their syntax and are unable to debug it. Lucky for you, now you know all the details to remove this error from your document without affecting the rest of the syntax.

  • Author
  • Recent Posts

Position is Everything

Position Is Everything: Your Go-To Resource for Learn & Build: CSS,JavaScript,HTML,PHP,C++ and MYSQL.

Position is Everything

Содержание

  1. collect2.exe: error: ld returned 1 exit status — SKR Mini E3 2.0 / Ender 3 Pro #352
  2. Comments
  3. Description
  4. Linking .piobuildSTM32F103RC_btt_512Kfirmware.elf .pio/build/STM32F103RC_btt_512K/src/src/HAL/shared/eeprom_if_i2c.cpp.o: In function eeprom_write_byte(unsigned char*, unsigned char)’: C:Marlinbuild/MarlinsrcHALshared/eeprom_if_i2c.cpp:52: multiple definition of eeprom_write_byte(unsigned char*, unsigned char)’ .pio/build/STM32F103RC_btt_512K/src/src/HAL/shared/eeprom_i2c.cpp.o:C:Marlinbuild/MarlinsrcHALshared/eeprom_i2c.cpp:52: first defined here .pio/build/STM32F103RC_btt_512K/src/src/HAL/shared/eeprom_if_i2c.cpp.o: In function eeprom_read_byte(unsigned char*)’: C:Marlinbuild/MarlinsrcHALshared/eeprom_if_i2c.cpp:66: multiple definition of eeprom_read_byte(unsigned char*)’ .pio/build/STM32F103RC_btt_512K/src/src/HAL/shared/eeprom_i2c.cpp.o:C:Marlinbuild/MarlinsrcHALshared/eeprom_i2c.cpp:97: first defined here .pio/build/STM32F103RC_btt_512K/src/src/HAL/shared/persistent_store_api.cpp.o:C:Marlinbuild/MarlinsrcHALshared/persistent_store_api.h:53: multiple definition of `persistentStore’ .pio/build/STM32F103RC_btt_512K/src/src/HAL/shared/eeprom_api.cpp.o:C:Marlinbuild/MarlinsrcHALshared/eeprom_api.h:71: first defined here collect2.exe: error: ld returned 1 exit status *** [.piobuildSTM32F103RC_btt_512Kfirmware.elf] Error 1
  5. Steps to reproduce
  6. Additional Information
  7. Qt ошибка: collect2: error: ld returned 1 exit status
  8. Cygwin compilation error — collect2: error: ld returned 1 exit status #212
  9. Comments
  10. Footer
  11. First defined here collect2 exe error ld returned 1 exit status
  12. mironyuk
  13. Вложения
  14. Эдуард Анисимов
  15. mironyuk
  16. 03-05.7z
  17. Эдуард Анисимов
  18. mironyuk
  19. Эдуард Анисимов
  20. mironyuk
  21. Эдуард Анисимов
  22. mironyuk
  23. Эдуард Анисимов
  24. collect2.exe: error: ld returned 1 exit status #226
  25. Comments

collect2.exe: error: ld returned 1 exit status — SKR Mini E3 2.0 / Ender 3 Pro #352

Description

Firmware will not complete compilation ending with a «collect2.exe: error: ld returned 1 exit status

When compiling, the process almost completes but fails during creation of the firmware file.

Linking .piobuildSTM32F103RC_btt_512Kfirmware.elf
.pio/build/STM32F103RC_btt_512K/src/src/HAL/shared/eeprom_if_i2c.cpp.o: In function eeprom_write_byte(unsigned char*, unsigned char)’: C:Marlinbuild/MarlinsrcHALshared/eeprom_if_i2c.cpp:52: multiple definition of eeprom_write_byte(unsigned char*, unsigned char)’
.pio/build/STM32F103RC_btt_512K/src/src/HAL/shared/eeprom_i2c.cpp.o:C:Marlinbuild/MarlinsrcHALshared/eeprom_i2c.cpp:52: first defined here
.pio/build/STM32F103RC_btt_512K/src/src/HAL/shared/eeprom_if_i2c.cpp.o: In function eeprom_read_byte(unsigned char*)’: C:Marlinbuild/MarlinsrcHALshared/eeprom_if_i2c.cpp:66: multiple definition of eeprom_read_byte(unsigned char*)’
.pio/build/STM32F103RC_btt_512K/src/src/HAL/shared/eeprom_i2c.cpp.o:C:Marlinbuild/MarlinsrcHALshared/eeprom_i2c.cpp:97: first defined here
.pio/build/STM32F103RC_btt_512K/src/src/HAL/shared/persistent_store_api.cpp.o:C:Marlinbuild/MarlinsrcHALshared/persistent_store_api.h:53: multiple definition of `persistentStore’
.pio/build/STM32F103RC_btt_512K/src/src/HAL/shared/eeprom_api.cpp.o:C:Marlinbuild/MarlinsrcHALshared/eeprom_api.h:71: first defined here
collect2.exe: error: ld returned 1 exit status
*** [.piobuildSTM32F103RC_btt_512Kfirmware.elf] Error 1

Steps to reproduce

  1. Customize configuration.h, and configuration_adv.h
  2. Compile using correct build environment

Expected behavior
I expect the process to complete.

Actual behavior
The process ends during the firmware generation process at the end.

Additional Information

The text was updated successfully, but these errors were encountered:

Источник

Qt ошибка: collect2: error: ld returned 1 exit status

Kubuntu LTS 18.04 новая, Qt 5.11

Всем привет! Поставил новую Kubuntu и Qt, сделал новый проект, только с MainWindow. Сначала ругался линковщик, вылечил установив

и еще время от времени вылезает такая ошибка

Ошибка где-то выше должна быть. Полный выхлоп дай.

Покажи что выдает.

Зачем от рута запускал креатор? Делай теперь

Сделал. Ничего не выдает В некоторых проектах были проблемы с девайсами, система не давала работать с ними без прав. Запускал и без рута, ошибка остается

Дай полный вывод с ошибкой.

Извиняюсь, надо было сразу дать инфу из консоли сборки

Народ, я нашел ответ, кому интересно почитать или различается система, здесь: http://doc.qt.io/qt-5/linux.html , а кому некогда, для Debian/Ubuntu (apt-get):

Cпасибо за помощь

Причина в том, что Qt 5 раздулся, разжирел, у него сильно усложнился деплой и теперь он требует OpenGL там, где он нахер не нужен.

Если ты попробуешь заюзать Qt 4, то оно просто соберётся. Так как зависимости от OpenGL там нет.

Все верно, недавно ставил Qt на Lubuntu.

Из соображения — лишь бы было,

поставил, вроде, версию 5.4. Оно там не требовалось.

Источник

Cygwin compilation error — collect2: error: ld returned 1 exit status #212

Hello,
I want to compile SDK under Windows 8.1 using Cygwin

I use make STANDALONE=n and I still get collect2: error: ld returned 1 exit status error
Last lines from build.log

List of packages:

Any ideas how to fix this?

The text was updated successfully, but these errors were encountered:

This looks similar, mayby it helps? crosstool-ng/crosstool-ng#321

OK, this was a good tip. I found also other issues (I will request pull when I get SDK running on Cygwin), but now I cannot compile lx106-hal.

This can be connected with my 2 errors during xtensa-lx106-elf compilation? Because I got:

I had same issues.

For the first one, add —disable-tui to the gdb flags
For the second one, either use the patch I have supplied or, even better, switch to gcc5.2.0 and the problem will go away.

@davydnorris as I write before — I succesfully compile cross-gdb (also by adding -disable-tui). Now I’d like to compile libhal using your workaround, but alter ‘make clean’ file gcc/config.host is deleted, so I don’t know how to recompile all SDK.

So you have two options:

  • use my patch by saving it to a file in local-patches/gcc/4.8.5 where it will be automatically applied
  • use ct-ng menuconfig and change gcc to 5.2.0

I started with the first one but then changed to gcc5.2.0 (actually 5.4.0 now)

@davydnorris thanks! Now whole project compile without problems. I use GCC 4.8.5 with your patch, maybe in future crosstool-NG will switch to 5.4.0 version.
I added pull request with my findings to esp-open-sdk and crosstool-NG. I also pull request your patch for crosstool-NG (of course with information about author) — I hope that you don’t mind :).

© 2023 GitHub, Inc.

You can’t perform that action at this time.

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.

Источник

First defined here collect2 exe error ld returned 1 exit status

mironyuk

Marlin 2.0.8, COREXY, 3D TOUCH
все работало нормально. Не знаю, что сделал ,но ошибка при компиляции вылезает не зависимо от
-компа
-смены прошивки вплоть до чистой или родной заводской
-перезагрузки компа
-удаления полного VC и установки заново

В общем, мумукаюсь уже два дня, начинаю беситься.
Наверняка кто-то тоже сталкивался с такой проблемой, отзовитесь.
Прошивку прицепил.

Вложения

Эдуард Анисимов

mironyuk

03-05.7z

Эдуард Анисимов

mironyuk

я не программист, от слова Далеко, извините. Что я должен сделать с этим ромом? ну, и с предупреждениями?
Спасибо.

предупреждения и раньше были (это желтым, я понимаю), может не столько, как сейчас, но все работало. Вот начал автоуровень приделывать и кое что подкорректировал в прошиве, может и не туда ткнул где-то.

попробую вот так

Эдуард Анисимов

mironyuk

если под железкой понимается комп, то я делал на другом компе и тоже самое происходит

достал старую прошивку, предупреждений нет, переполнения ром тоже нет, но появилось новое чего то там в файле .ld

Эдуард Анисимов

А обновления PlatformIO перед этим не было?
Я столкнулся с тем, что писал на старом, на компе, где нет интернета. И всё работало.
Дома обновился и всё перестало работать.

А почему не пишете под CubeIDE?

А судя по логу, ему скрипт для F103VC не нравится.

mironyuk

я сносил два раза VC полностью и устанавливал, но вроде не писал мне VC что обновляет Платформио.
А почему не пишете под CubeIDE?\ я даже не знаю, что это, я далек от понимания языка С и пр. Просто обновил плату на 32 бит, за ней потянулся Марлин 2.0, ну и далее вопрос чем компилить, увидел VC и вперед.
А судя по логу, ему скрипт для F103VC не нравится. \ ну это «вдруг» сейчас ему не нравится, а всегда нравился, вроде.

ааааа, со старой прошивой сам баран — перенес ее в новую папку и обозвал кирилицей папку АРХИВ. блин, сам на эти грабли уже наступал. Так вот, когда АРХИВ переименовал в STORAGE, то все скомпилировалось!! Таакс, значит дело не в VC. Надо, наверное, сравнить построчно обе прошивы и найти разницу, в этой разнице и кроется ошибка или опять же русская буква закралась в команду.

Эдуард Анисимов

Вот про эту возможность я всегда забываю. Так как никогда ни пользователя, ни каталог для проекта не создаю кириллицей.
И в логах ошибки ничего не было. Поэтому и забыл.

А сравнивать построчно удобно TotalCommander. Файловый менеджер с кучей фич в максимальной комплектации.

Источник

collect2.exe: error: ld returned 1 exit status #226

collect2.exe: error: ld returned 1 exit status

The text was updated successfully, but these errors were encountered:

Please post the complete build log.

I have the same issue, under windows 10/go version go1.7.1 windows/amd64.
Just type the following command in dos prompt:

then it result in following error:

Download MinGW-W64 .This could solve the problem.I just solved it.Add it to the path.

Hey,I have same problem,this is my build log:
(with go1.8.1 and windows 10,using MinGW-W64)

I’m starting to wonder why some MinGW-w64s seem to not take other MinGW-w64 binaries.

I found a way to solve this problem: install MinGW-W64 with MinGW-W64 online-installer

version 7.1 passed

Here is a simple solution for Windows

  • Download MinGW Distro from nuwen.net, as of Jul 7, 2017 it is mingw-15.0.exe, gcc 7.1.0.
  • Install it and add [path_to_install]MinGWbin to environment variable PATH.
  • Now run go get github.com/andlabs/ui
  • Build the sample code from Getting Started page.
    ** (Update) Build go build -ldflags -H=windowsgui ui.go
    ** After strip -s ui.go , it is 2,117KB
    ** Dependency walker shows it depends on COMCTL32.DLL, D2D1.DLL, DWRITE.DLL, GDI32.DLL, KERNEL32.DLL, MSVCRT.DLL, OLE32.DLL, USER32.DLL, USP10.DLL, UXTHEME.DLL and WINMM.DLL WS2_32.DLL. Looks good.

The only issue I got now is, launching it will always open a console window.
Edit: The issue above can be solved by adding flag go build -ldflags -H=windowsgui ui.go , solution found from #90.

@limingjie
go build -ldflags=»-H windowsgui»
This will not open a console window after building.

Thank you @rffanlab! I also found this solution in #90.

Guys, I was just running a code compiling using Arduino compiler and ran into following problem-

Arduino: 1.8.4 (Windows 7), Board: «Arduino/Genuino Uno»

1.YADAppDataLocalTempccFPCXTd.ltrans0.ltrans.o: In function `setup’:

D:UsersDr. YADUNATH SINGHDocumentsArduinoany/any.ino:23: undefined reference to `LedControl::shutdown(int, bool)’

D:UsersDr. YADUNATH SINGHDocumentsArduinoany/any.ino:25: undefined reference to `LedControl::setIntensity(int, int)’

D:UsersDr. YADUNATH SINGHDocumentsArduinoany/any.ino:27: undefined reference to `LedControl::clearDisplay(int)’

1.YADAppDataLocalTempccFPCXTd.ltrans0.ltrans.o: In function `writeArduinoOnMatrix’:

D:UsersDr. YADUNATH SINGHDocumentsArduinoany/any.ino:46: undefined reference to `LedControl::setRow(int, int, unsigned char)’

D:UsersDr. YADUNATH SINGHDocumentsArduinoany/any.ino:47: undefined reference to `LedControl::setRow(int, int, unsigned char)’

D:UsersDr. YADUNATH SINGHDocumentsArduinoany/any.ino:48: undefined reference to `LedControl::setRow(int, int, unsigned char)’

D:UsersDr. YADUNATH SINGHDocumentsArduinoany/any.ino:49: undefined reference to `LedControl::setRow(int, int, unsigned char)’

D:UsersDr. YADUNATH SINGHDocumentsArduinoany/any.ino:50: undefined reference to `LedControl::setRow(int, int, unsigned char)’

1.YADAppDataLocalTempccFPCXTd.ltrans0.ltrans.o:D:UsersDr. YADUNATH SINGHDocumentsArduinoany/any.ino:52: more undefined references to `LedControl::setRow(int, int, unsigned char)’ follow

1.YADAppDataLocalTempccFPCXTd.ltrans0.ltrans.o: In function `columns’:

D:UsersDr. YADUNATH SINGHDocumentsArduinoany/any.ino:126: undefined reference to `LedControl::setColumn(int, int, unsigned char)’

D:UsersDr. YADUNATH SINGHDocumentsArduinoany/any.ino:128: undefined reference to `LedControl::setColumn(int, int, unsigned char)’

D:UsersDr. YADUNATH SINGHDocumentsArduinoany/any.ino:131: undefined reference to `LedControl::setColumn(int, int, unsigned char)’

D:UsersDr. YADUNATH SINGHDocumentsArduinoany/any.ino:133: undefined reference to `LedControl::setColumn(int, int, unsigned char)’

1.YADAppDataLocalTempccFPCXTd.ltrans0.ltrans.o: In function `single’:

D:UsersDr. YADUNATH SINGHDocumentsArduinoany/any.ino:147: undefined reference to `LedControl::setLed(int, int, int, bool)’

D:UsersDr. YADUNATH SINGHDocumentsArduinoany/any.ino:150: undefined reference to `LedControl::setLed(int, int, int, bool)’

D:UsersDr. YADUNATH SINGHDocumentsArduinoany/any.ino:152: undefined reference to `LedControl::setLed(int, int, int, bool)’

1.YADAppDataLocalTempccFPCXTd.ltrans0.ltrans.o: In function `__static_initialization_and_destruction_0′:

D:UsersDr. YADUNATH SINGHDocumentsArduinoany/any.ino:13: undefined reference to `LedControl::LedControl(int, int, int, int)’

collect2.exe: error: ld returned 1 exit status
exit status 1

Error compiling for board Arduino/Genuino Uno.

This report would have more information with
«Show verbose output during compilation»
option enabled in File -> Preferences.

Please, help me regarding this problem.
Thank you.

Источник

Please answer these questions before submitting your issue. Thanks!

What version of Go are you using (go version)?

go version go1.7 windows/amd64

What operating system and processor architecture are you using (go env)?

set GOARCH=amd64
set GOBIN=
set GOEXE=.exe
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOOS=windows
set GOPATH=C:Go_workspace
set GORACE=
set GOROOT=C:Go
set GOTOOLDIR=C:Gopkgtoolwindows_amd64
set CC=gcc
set GOGCCFLAGS=-m64 -mthreads -fmessage-length=0 -fdebug-prefix-map=C:UsershishaAppDataLocalTempgo-build226207278=/tmp/go-build -gno-record-gcc-switches
set CXX=g++
set CGO_ENABLED=1

What did you do?

i am using iris framework and gorm every thing was ok until using gorm

├───controllers
├───models
├───static
│   ├───css
│   │   └───images
│   │       └───prettyPhoto
│   │           ├───dark_rounded
│   │           ├───dark_square
│   │           ├───default
│   │           ├───facebook
│   │           ├───light_rounded
│   │           └───light_square
│   ├───fonts
│   ├───img
│   │   ├───clients
│   │   ├───portfolio
│   │   └───team
│   └───js
└───templates

main.go :

package main


import (
    "mywebsite/controllers"
    "mywebsite/models"

    "github.com/kataras/go-template/django"
    "github.com/kataras/iris"
)

func main() {
    iris.UseTemplate(django.New()).Directory("templates", ".html")
    iris.StaticServe("./static", "/public")
    iris.Handle("GET", "/", controllers.MainHandler{})
    models.DB_init()
    iris.Listen(":8080")
}

models.go :

package models

import (
    "time"

    "github.com/jinzhu/gorm"
    _ "github.com/jinzhu/gorm/dialects/sqlite"
)

type User struct {
    gorm.Model
    FirstName string `gorm:"size:25"`
    LastName  string `gorm:"size:25"`
    Email     string `gorm:"type:varchar(60);unique"`
    Password  string
    IsAdmin   bool
    LastLogin time.Time
    Posts     []Post `gorm:"ForeignKey:UserID;"`
}
type Post struct {
    gorm.Model
    Title   string `gorm:"type:varchar(60)"`
    Content string `gorm:"type:text"`
    UserID  uint
}

//Init Function Initialize database and Migrate Scheme
func DB_init() {
    db, err := gorm.Open("sqlite3", "db.db")
    defer db.Close()
    if err != nil {
        panic("Failed to Connect to Database")
    }
    db.AutoMigrate(&User{}, &Post{})
}

controllers :

package controllers

import "github.com/kataras/iris"

type MainHandler struct {
}

func (c MainHandler) Serve(ctx *iris.Context) {
    ctx.MustRender("home.html", map[string]interface{}{"message": "Hi Our Visitor"}, iris.RenderOptions{"gzip": true})
}

What did you expect to see?

C:Go_workspacesrcmywebsite>iris run main.go
         _____      _
        |_   _|    (_)
          | |  ____ _  ___
          | | | __|| |/ __|
         _| |_| |  | |__ 
        |_____|_|  |_||___/ 4.2.7

Mon, 19 Sep 2016 04:50:46 GMT: Running at 0.0.0.0:8080

What did you see instead?

go run "c:Go_workspacesrcmywebsitemain.go"
# command-line-arguments
C:Gopkgtoolwindows_amd64link.exe: running gcc failed: exit status 1
C:UsershishaAppDataLocalTempgo-link-101492155go.o:(.text+0x920260): multiple definition of `r2r1kp'
C:UsershishaAppDataLocalTempgo-link-101492155go.o:(.text+0x920270): first defined here
C:UsershishaAppDataLocalTempgo-link-101492155go.o:(.text+0x9202a0): multiple definition of `r4r3kp'
C:UsershishaAppDataLocalTempgo-link-101492155go.o:(.text+0x920290): first defined here
C:UsershishaAppDataLocalTempgo-link-101492155go.o:(.text+0x91eae0): multiple definition of `r5kp'
C:UsershishaAppDataLocalTempgo-link-101492155go.o:(.text+0x91ead8): first defined here
C:UsershishaAppDataLocalTempgo-link-101492155go.o:(.text+0x920360): multiple definition of `rupolykp'
C:UsershishaAppDataLocalTempgo-link-101492155go.o:(.text+0x920350): first defined here
collect2.exe: error: ld returned 1 exit status
iris run main.go
# command-line-arguments
C:Gopkgtoolwindows_amd64link.exe: running gcc failed: exit status 1
C:UsershishaAppDataLocalTempgo-link-217894499go.o:(.text+0x920260): multiple definition of `r2r1kp'
C:UsershishaAppDataLocalTempgo-link-217894499go.o:(.text+0x920270): first defined here
C:UsershishaAppDataLocalTempgo-link-217894499go.o:(.text+0x9202a0): multiple definition of `r4r3kp'
C:UsershishaAppDataLocalTempgo-link-217894499go.o:(.text+0x920290): first defined here
C:UsershishaAppDataLocalTempgo-link-217894499go.o:(.text+0x91eae0): multiple definition of `r5kp'
C:UsershishaAppDataLocalTempgo-link-217894499go.o:(.text+0x91ead8): first defined here
C:UsershishaAppDataLocalTempgo-link-217894499go.o:(.text+0x920360): multiple definition of `rupolykp'
C:UsershishaAppDataLocalTempgo-link-217894499go.o:(.text+0x920350): first defined here
collect2.exe: error: ld returned 1 exit status


Error: Failed to build the program.

@gopherbot

I am trying some library files for esp8266. I created hpp and .cpp files. But i try to compile program i got this error on VSCode.
collect2.exe: error: ld returned 1 exit status
*** [.piobuildhuzzahfirmware.elf] Error 1
I put files in src folder but still got this. What are points that i missed?

Building in release mode
Linking .piobuildhuzzahfirmware.elf
c:/users/dogan/.platformio/packages/toolchain-xtensa/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: .piobuildhuzzahsrcmain.cpp.o: in function `Neotimer::Neotimer()':
main.cpp:(.text._ZN8NeotimerC2Ev+0x0): multiple definition of `Neotimer::Neotimer()'; .piobuildhuzzahsrccommunication.cpp.o:communication.cpp:(.text._ZN8NeotimerC2Ev+0x0): first defined here
c:/users/dogan/.platformio/packages/toolchain-xtensa/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: .piobuildhuzzahsrcmain.cpp.o: in function `Neotimer::Neotimer()':
main.cpp:(.text._ZN8NeotimerC2Ev+0x0): multiple definition of `Neotimer::Neotimer()'; .piobuildhuzzahsrccommunication.cpp.o:communication.cpp:(.text._ZN8NeotimerC2Ev+0x0): first defined here
c:/users/dogan/.platformio/packages/toolchain-xtensa/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: .piobuildhuzzahsrcmain.cpp.o: in function `Neotimer::Neotimer(unsigned long)':
main.cpp:(.text._ZN8NeotimerC2Em+0x0): multiple definition of `Neotimer::Neotimer(unsigned long)'; .piobuildhuzzahsrccommunication.cpp.o:communication.cpp:(.text._ZN8NeotimerC2Em+0x0): first defined here
c:/users/dogan/.platformio/packages/toolchain-xtensa/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: .piobuildhuzzahsrcmain.cpp.o: in function `Neotimer::Neotimer(unsigned long)':
main.cpp:(.text._ZN8NeotimerC2Em+0x0): multiple definition of `Neotimer::Neotimer(unsigned long)'; .piobuildhuzzahsrccommunication.cpp.o:communication.cpp:(.text._ZN8NeotimerC2Em+0x0): first defined here
c:/users/dogan/.platformio/packages/toolchain-xtensa/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: .piobuildhuzzahsrcmain.cpp.o: in function `Neotimer::~Neotimer()':
main.cpp:(.text._ZN8NeotimerD2Ev+0x0): multiple definition of `Neotimer::~Neotimer()'; .piobuildhuzzahsrccommunication.cpp.o:communication.cpp:(.text._ZN8NeotimerD2Ev+0x0): first defined here
c:/users/dogan/.platformio/packages/toolchain-xtensa/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: .piobuildhuzzahsrcmain.cpp.o: in function `Neotimer::~Neotimer()':
main.cpp:(.text._ZN8NeotimerD2Ev+0x0): multiple definition of `Neotimer::~Neotimer()'; .piobuildhuzzahsrccommunication.cpp.o:communication.cpp:(.text._ZN8NeotimerD2Ev+0x0): first defined here
c:/users/dogan/.platformio/packages/toolchain-xtensa/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: .piobuildhuzzahsrcmain.cpp.o: in function `Neotimer::init()':
main.cpp:(.text._ZN8Neotimer4initEv+0x0): multiple definition of `Neotimer::init()'; .piobuildhuzzahsrccommunication.cpp.o:communication.cpp:(.text._ZN8Neotimer4initEv+0x0): first defined here
c:/users/dogan/.platformio/packages/toolchain-xtensa/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: .piobuildhuzzahsrcmain.cpp.o: in function `Neotimer::repeatReset()':
main.cpp:(.text._ZN8Neotimer11repeatResetEv+0x0): multiple definition of `Neotimer::repeatReset()'; .piobuildhuzzahsrccommunication.cpp.o:communication.cpp:(.text._ZN8Neotimer11repeatResetEv+0x0): first defined here
c:/users/dogan/.platformio/packages/toolchain-xtensa/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: .piobuildhuzzahsrcmain.cpp.o: in function `Neotimer::done()':
main.cpp:(.text._ZN8Neotimer4doneEv+0x4): multiple definition of `Neotimer::done()'; .piobuildhuzzahsrccommunication.cpp.o:communication.cpp:(.text._ZN8Neotimer4doneEv+0x4): first defined here
c:/users/dogan/.platformio/packages/toolchain-xtensa/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: .piobuildhuzzahsrcmain.cpp.o: in function `Neotimer::set(unsigned long)':
main.cpp:(.text._ZN8Neotimer3setEm+0x0): multiple definition of `Neotimer::set(unsigned long)'; .piobuildhuzzahsrccommunication.cpp.o:communication.cpp:(.text._ZN8Neotimer3setEm+0x0): first defined here
c:/users/dogan/.platformio/packages/toolchain-xtensa/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: .piobuildhuzzahsrcmain.cpp.o: in function `Neotimer::get()':
main.cpp:(.text._ZN8Neotimer3getEv+0x0): multiple definition of `Neotimer::get()'; .piobuildhuzzahsrccommunication.cpp.o:communication.cpp:(.text._ZN8Neotimer3getEv+0x0): first defined here
c:/users/dogan/.platformio/packages/toolchain-xtensa/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: .piobuildhuzzahsrcmain.cpp.o: in function `Neotimer::stop()':
main.cpp:(.text._ZN8Neotimer4stopEv+0x4): multiple definition of `Neotimer::stop()'; .piobuildhuzzahsrccommunication.cpp.o:communication.cpp:(.text._ZN8Neotimer4stopEv+0x4): first defined here
c:/users/dogan/.platformio/packages/toolchain-xtensa/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: .piobuildhuzzahsrcmain.cpp.o: in function `Neotimer::reset()':
main.cpp:(.text._ZN8Neotimer5resetEv+0x8): multiple definition of `Neotimer::reset()'; .piobuildhuzzahsrccommunication.cpp.o:communication.cpp:(.text._ZN8Neotimer5resetEv+0x8): first defined here
c:/users/dogan/.platformio/packages/toolchain-xtensa/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: .piobuildhuzzahsrcmain.cpp.o: in function `Neotimer::repeat()':
main.cpp:(.text._ZN8Neotimer6repeatEv+0xc): multiple definition of `Neotimer::repeat()'; .piobuildhuzzahsrccommunication.cpp.o:communication.cpp:(.text._ZN8Neotimer6repeatEv+0xc): first defined here
c:/users/dogan/.platformio/packages/toolchain-xtensa/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: .piobuildhuzzahsrcmain.cpp.o: in function `Neotimer::repeat(int)':
main.cpp:(.text._ZN8Neotimer6repeatEi+0x8): multiple definition of `Neotimer::repeat(int)'; .piobuildhuzzahsrccommunication.cpp.o:communication.cpp:(.text._ZN8Neotimer6repeatEi+0x8): first defined here
c:/users/dogan/.platformio/packages/toolchain-xtensa/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: .piobuildhuzzahsrcmain.cpp.o: in function `Neotimer::repeat(int, unsigned long)':
main.cpp:(.text._ZN8Neotimer6repeatEim+0x4): multiple definition of `Neotimer::repeat(int, unsigned long)'; .piobuildhuzzahsrccommunication.cpp.o:communication.cpp:(.text._ZN8Neotimer6repeatEim+0x4): first defined here
c:/users/dogan/.platformio/packages/toolchain-xtensa/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: .piobuildhuzzahsrcmain.cpp.o: in function `Neotimer::start()':
main.cpp:(.text._ZN8Neotimer5startEv+0x4): multiple definition of `Neotimer::start()'; .piobuildhuzzahsrccommunication.cpp.o:communication.cpp:(.text._ZN8Neotimer5startEv+0x4): first defined here
c:/users/dogan/.platformio/packages/toolchain-xtensa/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: .piobuildhuzzahsrcmain.cpp.o: in function `Neotimer::debounce(bool)':
main.cpp:(.text._ZN8Neotimer8debounceEb+0x8): multiple definition of `Neotimer::debounce(bool)'; .piobuildhuzzahsrccommunication.cpp.o:communication.cpp:(.text._ZN8Neotimer8debounceEb+0x8): first defined here
c:/users/dogan/.platformio/packages/toolchain-xtensa/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: .piobuildhuzzahsrcmain.cpp.o: in function `Neotimer::restart()':
main.cpp:(.text._ZN8Neotimer7restartEv+0x4): multiple definition of `Neotimer::restart()'; .piobuildhuzzahsrccommunication.cpp.o:communication.cpp:(.text._ZN8Neotimer7restartEv+0x4): first defined here
c:/users/dogan/.platformio/packages/toolchain-xtensa/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: .piobuildhuzzahsrcmain.cpp.o: in function `Neotimer::waiting()':
main.cpp:(.text._ZN8Neotimer7waitingEv+0x4): multiple definition of `Neotimer::waiting()'; .piobuildhuzzahsrccommunication.cpp.o:communication.cpp:(.text._ZN8Neotimer7waitingEv+0x4): first defined here
c:/users/dogan/.platformio/packages/toolchain-xtensa/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: .piobuildhuzzahsrcmain.cpp.o: in function `Neotimer::started()':
main.cpp:(.text._ZN8Neotimer7startedEv+0x0): multiple definition of `Neotimer::started()'; .piobuildhuzzahsrccommunication.cpp.o:communication.cpp:(.text._ZN8Neotimer7startedEv+0x0): first defined here

Sorry, i am new on stackexchange community so i can do basic mistakes about usage.

Now, i am adding my main.cpp,communication.cpp and communication.h files. As i said before, i didnt included neotimer and deleted. I used to add this library to my project, PIO library interface. I am thinking this problem coming from this. Great thanks for your patient and advises.

communication.cpp:

#include "communication.h"
#include "database.h"
#include "management.h"
#include "wifi.h"


String GetCommand(String data, char separator, int index)
{
  int found = 0;
  int strIndex[] = {0, -1};
  int maxIndex = data.length() - 1;

  for (int i = 0; i <= maxIndex && found <= index; i++)
   {
    if (data.charAt(i) == separator || i == maxIndex) 
    {
      found++;
      strIndex[0] = strIndex[1] + 1;
      strIndex[1] = (i == maxIndex) ? i + 1 : i;
    }
  }
  return found > index ? data.substring(strIndex[0], strIndex[1]) : "";
}

void checkStream(WiFiServer tcpServer,WiFiClient tcpClient, Neotimer timer,boolean pulseCheck)
{


 // WiFiClient _tcpClient;
  tcpClient.setTimeout(200);
  tcpClient  = tcpServer.available();

  if(tcpClient && tcpClient.connected())
  {
    Serial.println("Timer Off");
    timer.stop();
    String requestStr = tcpClient.readStringUntil('r');
      if(requestStr.length()>=8)
      {
        tcpClient.print(ParseStream(requestStr));
        pulseCheck = false;
        delay(3000);
         String requestSplitStr = GetCommand(requestStr, ' ', 0);
         if(requestSplitStr == "ayg_set_modem_info")
         {
          Serial.println("Device is going to sleep now!");
          Sleep();
         }
      }  
  }
  else
  { 
    return;
  }
}

String ParseStream(String content)
{
  String requestSplitStr = GetCommand(content, ' ', 0);
  if(requestSplitStr == "ayg_set_modem_info")
  {
    String ssid = GetCommand(content, ' ', 1);
    String pass = GetCommand(content, ' ', 2); 
    Serial.println("SSID,PASS TAKING");
    delay(200); 
    ClearEP();
    boolean resSsid = WriteEPSsid(ssid);
    boolean resPass = WriteEPPass(pass);
    Aprint("SSID: "+ReadEPSsid());
    Aprint("Pass: "+ReadEPPass()); 
    //_tcpClient.flush();
    if(resPass)
    {
      if(STATest())
      {
        return JsonResult("true");

      }
      else
      {
        return JsonResult("false");
      }

    }
    else
    {
      return JsonResult("false");
    }

  }

  else if(requestSplitStr == "ayg_get_vbatt")
  {
    return JsonResult(GetBattery());
   // _tcpClient.flush();
   // _tcpClient.stop();
  }

communication.h

#ifndef communication_h
#define communication_h
#if ARDUINO > 100
#include "Arduino.h"
#else
#include "WProgram.h"
#endif
#include <WiFiServer.h>
#include <WiFiClient.h>
#include <neotimer.h>
#include "ArduinoJson.h"

//VARIABLES


    String GetCommand(String data, char seperator, int index);
    String ParseStream(String content);
    void checkStream(WiFiServer tcpServer,WiFiClient tcpClient, Neotimer timer,boolean pulseCheck);
    String JsonResult(String result);


#endif

main.cpp:

#include <stdlib.h>
#include <HX711.h>
#include <Arduino.h>
#include <ESP8266WebServer.h>

#include <string.h>
#include "communication.h"
#include <management.h>
#include <wifi.h>
#include <database.h>






#define DOUT 13 // D7
#define SCK 15 // D8
#define led1 5 // D1- Color?
#define led2 4 // D2-Color?
#define led3 0 // D3-Color?
#define led4 2 // D4 Color?
#define led5 14 // D5 Color_?
#define button 12 //Button-D5
#define VERSION "1.0"
#define CALIBRATIONWEIGHT 5.0
#define LPG  12.2

struct rst_info *rtc_info = system_get_rst_info();
ADC_MODE(ADC_VCC);
WiFiServer _tcpServer(41400);
WiFiClient _tcpClient;
//HTTPClient http;
HX711 scale;


/*Scale Values*/
float tareValFromclient;
float calibration_factor = 26845.0;
float grossWeight;
char sGrossWeight[10];
int ledPercentage;
/*Sleep Values*/
bool sleepPulseCheck=false;


/*Timers and Intervals*/
/*const unsigned long sleepInterval = 200000; // Seconds to sleep
const unsigned long scaleInterval = 2000; // Interval for scaling tank
const unsigned long ledInterval = 200;
Neotimer sleepTimer(sleepInterval);
Neotimer scaleTimer(scaleInterval);
Neotimer ledTimer(ledInterval);*/

#pragma region PROTOYPES
/*PROTOTYPES*/
void Initialize();
String checkTankTare();
void powerUpScale();
void powerDownScale();
bool Tare();
void getGrossWeight(float *fGross, char*sGross);
String getDeviceTare();
float calculateFirstNetWeight();
float getNetWeight();
int calculatePercentage();
void ledDrivePercentage(int percentage);
String calibrateScale();
#pragma endregion

/*---------------------------------------*/

void setup() {
  ESP.eraseConfig();
  Initialize();
  Serial.println("started");
}

void loop() {
  //Serial.printf("connected:%dn", WiFi.softAPgetStationNum()); // bağlı client sayısı
 calibrateScale();
// checkStream(_tcpServer,_tcpClient,/*sleepTimer*/sleepPulseCheck);
 ledDrivePercentage(calculatePercentage());
 WriteEPGross(sGrossWeight);




 if(sleepPulseCheck == false)
 {
   sleepPulseCheck = true;
  // sleepTimer.start();
   Serial.println("Sleep Fired");


 }
}

Вс, 07/05/2017 — 20:17

#1

T.Rook

Offline

Зарегистрирован: 05.03.2016

полностью скетч и ошибку покажите.

Еще раз проверьте выбор платы и порта в IDE

  • Войдите на сайт для отправки комментариев

Вс, 07/05/2017 — 20:31

#2

Jeka_M

Jeka_M аватар

Offline

Зарегистрирован: 06.07.2014

Полностью ошибку приведите. Скопируйте сюда текст и вставьте.

  • Войдите на сайт для отправки комментариев

Вс, 07/05/2017 — 20:35

#3

qwone

qwone аватар

Offline

Зарегистрирован: 03.07.2016

Скорее чел ну очень зеленый. У него IDE стоит на UNO , а он пихает Nano.

  • Войдите на сайт для отправки комментариев

Вс, 07/05/2017 — 20:48

#4

T.Rook

Offline

Зарегистрирован: 05.03.2016

Кажется, это была агония. Предлагаю консилиум на этом закрыть. Расходимся.

  • Войдите на сайт для отправки комментариев

Вс, 07/05/2017 — 20:54

#5

meganom

Offline

Зарегистрирован: 07.05.2017

Скетч для проверки I2C переходника для LCD 16×2

#include <Wire.h> 

#include <LiquidCrystal_I2C.h>

// Set the LCD address to 0x27 for a 16 chars and 2 line display

LiquidCrystal_I2C lcd(0x27, 16, 2);

void setup()

{

  // initialize the LCD

  lcd.begin();

  // Turn on the blacklight and print a message.

  lcd.backlight();

  lcd.print(«Hello, world!»);

}

void loop()

{

  // Do nothing here…

}

  • Войдите на сайт для отправки комментариев

Вс, 07/05/2017 — 20:58

#6

andriano

andriano аватар

Offline

Зарегистрирован: 20.06.2015

meganom, первопричина Ваших проблем в том, что Вы читать очень не любите.

  • Войдите на сайт для отправки комментариев

Вс, 07/05/2017 — 21:01

#7

meganom

Offline

Зарегистрирован: 07.05.2017

Arduino: 1.8.2 (Windows 8.1), Плата:»Arduino Nano, ATmega328″

D:ArduinoArduino-LiquidCrystal-I2C-libraryArduino-LiquidCrystal-I2C-library-masterexamplesHelloWorldHelloWorld.ino:4:31: fatal error: LiquidCrystal_I2C.h: No such file or directory

 #include <LiquidCrystal_I2C.h>

                               ^

compilation terminated.

exit status 1

Ошибка компиляции для платы Arduino Nano.

  • Войдите на сайт для отправки комментариев

Вс, 07/05/2017 — 21:04

#8

T.Rook

Offline

Зарегистрирован: 05.03.2016

  • Войдите на сайт для отправки комментариев

Вс, 07/05/2017 — 21:06

#9

meganom

Offline

Зарегистрирован: 07.05.2017

да установил 

Arduino: 1.8.2 (Windows 8.1), Плата:»Arduino Nano, ATmega328″

Изменены опции сборки, пересобираем все

D:ArduinoArduino-LiquidCrystal-I2C-libraryArduino-LiquidCrystal-I2C-library-masterexamplesHelloWorldHelloWorld.ino:4:31: fatal error: LiquidCrystal_I2C.h: No such file or directory

 #include <LiquidCrystal_I2C.h>

                               ^

compilation terminated.

Несколько библиотек найдено для «LiquidCrystal.h»

 Используется: C:UsersихихиихDocumentsArduinolibrariesLiquidCrystal

Не используется: D:Program Files (x86)ArduinolibrariesLiquidCrystal

exit status 1

Ошибка компиляции для платы Arduino Nano.

  • Войдите на сайт для отправки комментариев

Вс, 07/05/2017 — 21:09

#10

meganom

Offline

Зарегистрирован: 07.05.2017

может я что то не так устанавливаю , мне после работы с мк на си. тяжело понять структуру скетча , я думал, загрузил скетч и используй , я так понял нужно подключать еще библиотеки , но как правильно это сделать я не пойму

  • Войдите на сайт для отправки комментариев

Вс, 07/05/2017 — 21:09

#11

T.Rook

Offline

Зарегистрирован: 05.03.2016

meganom пишет:

да установил 

Arduino: 1.8.2 (Windows 8.1), Плата:»Arduino Nano, ATmega328″

Изменены опции сборки, пересобираем все

D:ArduinoArduino-LiquidCrystal-I2C-libraryArduino-LiquidCrystal-I2C-library-masterexamplesHelloWorldHelloWorld.ino:4:31: fatal error: LiquidCrystal_I2C.h: No such file or directory

 #include <LiquidCrystal_I2C.h>

                               ^

compilation terminated.

Несколько библиотек найдено для «LiquidCrystal.h»

 Используется: C:UsersихихиихDocumentsArduinolibrariesLiquidCrystal

Не используется: D:Program Files (x86)ArduinolibrariesLiquidCrystal

exit status 1

Ошибка компиляции для платы Arduino Nano.

Давайте удалим все тут: C:UsersихихиихDocumentsArduinolibrariesLiquidCrystal

  • Войдите на сайт для отправки комментариев

Вс, 07/05/2017 — 21:10

#12

meganom

Offline

Зарегистрирован: 07.05.2017

  • Войдите на сайт для отправки комментариев

Вс, 07/05/2017 — 21:10

#13

T.Rook

Offline

Зарегистрирован: 05.03.2016

meganom пишет:

может я что то не так устанавливаю , мне после работы с мк на си. тяжело понять структуру скетча , я думал, загрузил скетч и используй , я так понял нужно подключать еще библиотеки , но как правильно это сделать я не пойму

Начальные знания тут: Среда разработки

  • Войдите на сайт для отправки комментариев

Вс, 07/05/2017 — 21:11

#14

andriano

andriano аватар

Offline

Зарегистрирован: 20.06.2015

meganom, установить нужно только одну. Это не тот случай, когда чем больше, тем лучше.

  • Войдите на сайт для отправки комментариев

Вс, 07/05/2017 — 21:37

#15

meganom

Offline

Зарегистрирован: 07.05.2017

И так, я скачал скетч, открываю его. Вижу что в начале есть подключение двух библиотек

#include <Wire.h>

#include <LiquidCrystal_I2C.h>

Wire.h  почему-то написана красным шрифтом а LiquidCrystal_I2C.h черным , что это значит я не понял, но скорей всего это значит что одна библиотека подключена а вторая нет . Дальше мне последовательность действий не понятна. Как правильно подключить библиотеку LiquidCrystal_I2C.h  и Wire.h ? Я так понимаю, что  они должны находится в папке library среды ардуино , и при начале компиляции проекта среда лезет в эту папку и подтягивает эти библиотеки если их нет то выдаёт ошибку .Мне не понятно где брать недостающую библиотеку и как правильно ее подключить к проекту .По идеи недостающая библиотека есть в папке с скетчем который я скачал . а проектах ардуино есть только два типа файлов , сам скетч и .h файл ? Сколько типов файлов нужно подключать к проекту ? 

  • Войдите на сайт для отправки комментариев

Вс, 07/05/2017 — 21:47

#16

Клапауций 112

Клапауций 112 аватар

Offline

Зарегистрирован: 01.03.2017

meganom пишет:

И так, я скачал скетч…

вот на этом месте закрывай этот форум и трахай мосг автору скетча.

  • Войдите на сайт для отправки комментариев

Вс, 07/05/2017 — 21:51

#17

toc

Offline

Зарегистрирован: 09.02.2013

>> Пару дней как пользуюсь платкой arduino nano.
>> Какой скетч не возьму , везде пишет- Ошибка компиляции для платы Arduino Nano.

meganom, дайте результат компиляции скетча Blink

  • Войдите на сайт для отправки комментариев

Вс, 07/05/2017 — 21:54

#18

T.Rook

Offline

Зарегистрирован: 05.03.2016

meganom пишет:

 Сколько типов файлов нужно подключать к проекту ? 

Если коротко, то библиотека:  h — заголовочный файл (обычно указывают в include), cpp — реализация.

По include и другие конструкции языка таки следует почитать.

  • Войдите на сайт для отправки комментариев

Вс, 07/05/2017 — 22:10

#19

meganom

Offline

Зарегистрирован: 07.05.2017

T.Rook пишет:

meganom пишет:

 Сколько типов файлов нужно подключать к проекту ? 

Если коротко, то библиотека:  h — заголовочный файл (обычно указывают в include), cpp — реализация.

По include и другие конструкции языка таки следует почитать.

Это я все знаю . Объясните мне, куда положить или как подключить эти библиотеки  если они у меня есть 

  • Войдите на сайт для отправки комментариев

Вс, 07/05/2017 — 22:17

#20

meganom

Offline

Зарегистрирован: 07.05.2017

подключил библиотеку .выпало еще больше ошибок 

Arduino: 1.8.2 (Windows 8.1), Плата:»Arduino Nano, ATmega328″

librariesArduino-LiquidCrystal-I2C-library-masterLiquidCrystal_I2C.cpp.o (symbol from plugin): In function `LiquidCrystal_I2C::LiquidCrystal_I2C(unsigned char, unsigned char, unsigned char, unsigned char)’:

(.text+0x0): multiple definition of `LiquidCrystal_I2C::LiquidCrystal_I2C(unsigned char, unsigned char, unsigned char, unsigned char)’

sketchLiquidCrystal_I2C.cpp.o (symbol from plugin):(.text+0x0): first defined here

librariesArduino-LiquidCrystal-I2C-library-masterLiquidCrystal_I2C.cpp.o (symbol from plugin): In function `LiquidCrystal_I2C::LiquidCrystal_I2C(unsigned char, unsigned char, unsigned char, unsigned char)’:

(.text+0x0): multiple definition of `LiquidCrystal_I2C::LiquidCrystal_I2C(unsigned char, unsigned char, unsigned char, unsigned char)’

sketchLiquidCrystal_I2C.cpp.o (symbol from plugin):(.text+0x0): first defined here

librariesArduino-LiquidCrystal-I2C-library-masterLiquidCrystal_I2C.cpp.o (symbol from plugin): In function `LiquidCrystal_I2C::LiquidCrystal_I2C(unsigned char, unsigned char, unsigned char, unsigned char)’:

(.text+0x0): multiple definition of `LiquidCrystal_I2C::getBacklight()’

sketchLiquidCrystal_I2C.cpp.o (symbol from plugin):(.text+0x0): first defined here

librariesArduino-LiquidCrystal-I2C-library-masterLiquidCrystal_I2C.cpp.o (symbol from plugin): In function `LiquidCrystal_I2C::LiquidCrystal_I2C(unsigned char, unsigned char, unsigned char, unsigned char)’:

(.text+0x0): multiple definition of `LiquidCrystal_I2C::expanderWrite(unsigned char)’

sketchLiquidCrystal_I2C.cpp.o (symbol from plugin):(.text+0x0): first defined here

librariesArduino-LiquidCrystal-I2C-library-masterLiquidCrystal_I2C.cpp.o (symbol from plugin): In function `LiquidCrystal_I2C::LiquidCrystal_I2C(unsigned char, unsigned char, unsigned char, unsigned char)’:

(.text+0x0): multiple definition of `LiquidCrystal_I2C::noBacklight()’

sketchLiquidCrystal_I2C.cpp.o (symbol from plugin):(.text+0x0): first defined here

librariesArduino-LiquidCrystal-I2C-library-masterLiquidCrystal_I2C.cpp.o (symbol from plugin): In function `LiquidCrystal_I2C::LiquidCrystal_I2C(unsigned char, unsigned char, unsigned char, unsigned char)’:

(.text+0x0): multiple definition of `LiquidCrystal_I2C::backlight()’

sketchLiquidCrystal_I2C.cpp.o (symbol from plugin):(.text+0x0): first defined here

librariesArduino-LiquidCrystal-I2C-library-masterLiquidCrystal_I2C.cpp.o (symbol from plugin): In function `LiquidCrystal_I2C::LiquidCrystal_I2C(unsigned char, unsigned char, unsigned char, unsigned char)’:

(.text+0x0): multiple definition of `LiquidCrystal_I2C::pulseEnable(unsigned char)’

sketchLiquidCrystal_I2C.cpp.o (symbol from plugin):(.text+0x0): first defined here

librariesArduino-LiquidCrystal-I2C-library-masterLiquidCrystal_I2C.cpp.o (symbol from plugin): In function `LiquidCrystal_I2C::LiquidCrystal_I2C(unsigned char, unsigned char, unsigned char, unsigned char)’:

(.text+0x0): multiple definition of `LiquidCrystal_I2C::write4bits(unsigned char)’

sketchLiquidCrystal_I2C.cpp.o (symbol from plugin):(.text+0x0): first defined here

librariesArduino-LiquidCrystal-I2C-library-masterLiquidCrystal_I2C.cpp.o (symbol from plugin): In function `LiquidCrystal_I2C::LiquidCrystal_I2C(unsigned char, unsigned char, unsigned char, unsigned char)’:

(.text+0x0): multiple definition of `LiquidCrystal_I2C::send(unsigned char, unsigned char)’

sketchLiquidCrystal_I2C.cpp.o (symbol from plugin):(.text+0x0): first defined here

librariesArduino-LiquidCrystal-I2C-library-masterLiquidCrystal_I2C.cpp.o (symbol from plugin): In function `LiquidCrystal_I2C::LiquidCrystal_I2C(unsigned char, unsigned char, unsigned char, unsigned char)’:

(.text+0x0): multiple definition of `LiquidCrystal_I2C::clear()’

sketchLiquidCrystal_I2C.cpp.o (symbol from plugin):(.text+0x0): first defined here

librariesArduino-LiquidCrystal-I2C-library-masterLiquidCrystal_I2C.cpp.o (symbol from plugin): In function `LiquidCrystal_I2C::LiquidCrystal_I2C(unsigned char, unsigned char, unsigned char, unsigned char)’:

(.text+0x0): multiple definition of `LiquidCrystal_I2C::home()’

sketchLiquidCrystal_I2C.cpp.o (symbol from plugin):(.text+0x0): first defined here

librariesArduino-LiquidCrystal-I2C-library-masterLiquidCrystal_I2C.cpp.o (symbol from plugin): In function `LiquidCrystal_I2C::LiquidCrystal_I2C(unsigned char, unsigned char, unsigned char, unsigned char)’:

(.text+0x0): multiple definition of `LiquidCrystal_I2C::setCursor(unsigned char, unsigned char)’

sketchLiquidCrystal_I2C.cpp.o (symbol from plugin):(.text+0x0): first defined here

librariesArduino-LiquidCrystal-I2C-library-masterLiquidCrystal_I2C.cpp.o (symbol from plugin): In function `LiquidCrystal_I2C::LiquidCrystal_I2C(unsigned char, unsigned char, unsigned char, unsigned char)’:

(.text+0x0): multiple definition of `LiquidCrystal_I2C::noDisplay()’

sketchLiquidCrystal_I2C.cpp.o (symbol from plugin):(.text+0x0): first defined here

librariesArduino-LiquidCrystal-I2C-library-masterLiquidCrystal_I2C.cpp.o (symbol from plugin): In function `LiquidCrystal_I2C::LiquidCrystal_I2C(unsigned char, unsigned char, unsigned char, unsigned char)’:

(.text+0x0): multiple definition of `LiquidCrystal_I2C::display()’

sketchLiquidCrystal_I2C.cpp.o (symbol from plugin):(.text+0x0): first defined here

librariesArduino-LiquidCrystal-I2C-library-masterLiquidCrystal_I2C.cpp.o (symbol from plugin): In function `LiquidCrystal_I2C::LiquidCrystal_I2C(unsigned char, unsigned char, unsigned char, unsigned char)’:

(.text+0x0): multiple definition of `LiquidCrystal_I2C::noCursor()’

sketchLiquidCrystal_I2C.cpp.o (symbol from plugin):(.text+0x0): first defined here

librariesArduino-LiquidCrystal-I2C-library-masterLiquidCrystal_I2C.cpp.o (symbol from plugin): In function `LiquidCrystal_I2C::LiquidCrystal_I2C(unsigned char, unsigned char, unsigned char, unsigned char)’:

(.text+0x0): multiple definition of `LiquidCrystal_I2C::cursor()’

sketchLiquidCrystal_I2C.cpp.o (symbol from plugin):(.text+0x0): first defined here

librariesArduino-LiquidCrystal-I2C-library-masterLiquidCrystal_I2C.cpp.o (symbol from plugin): In function `LiquidCrystal_I2C::LiquidCrystal_I2C(unsigned char, unsigned char, unsigned char, unsigned char)’:

(.text+0x0): multiple definition of `LiquidCrystal_I2C::noBlink()’

sketchLiquidCrystal_I2C.cpp.o (symbol from plugin):(.text+0x0): first defined here

librariesArduino-LiquidCrystal-I2C-library-masterLiquidCrystal_I2C.cpp.o (symbol from plugin): In function `LiquidCrystal_I2C::LiquidCrystal_I2C(unsigned char, unsigned char, unsigned char, unsigned char)’:

(.text+0x0): multiple definition of `LiquidCrystal_I2C::blink()’

sketchLiquidCrystal_I2C.cpp.o (symbol from plugin):(.text+0x0): first defined here

librariesArduino-LiquidCrystal-I2C-library-masterLiquidCrystal_I2C.cpp.o (symbol from plugin): In function `LiquidCrystal_I2C::LiquidCrystal_I2C(unsigned char, unsigned char, unsigned char, unsigned char)’:

(.text+0x0): multiple definition of `LiquidCrystal_I2C::scrollDisplayLeft()’

sketchLiquidCrystal_I2C.cpp.o (symbol from plugin):(.text+0x0): first defined here

librariesArduino-LiquidCrystal-I2C-library-masterLiquidCrystal_I2C.cpp.o (symbol from plugin): In function `LiquidCrystal_I2C::LiquidCrystal_I2C(unsigned char, unsigned char, unsigned char, unsigned char)’:

(.text+0x0): multiple definition of `LiquidCrystal_I2C::scrollDisplayRight()’

sketchLiquidCrystal_I2C.cpp.o (symbol from plugin):(.text+0x0): first defined here

librariesArduino-LiquidCrystal-I2C-library-masterLiquidCrystal_I2C.cpp.o (symbol from plugin): In function `LiquidCrystal_I2C::LiquidCrystal_I2C(unsigned char, unsigned char, unsigned char, unsigned char)’:

(.text+0x0): multiple definition of `LiquidCrystal_I2C::leftToRight()’

sketchLiquidCrystal_I2C.cpp.o (symbol from plugin):(.text+0x0): first defined here

librariesArduino-LiquidCrystal-I2C-library-masterLiquidCrystal_I2C.cpp.o (symbol from plugin): In function `LiquidCrystal_I2C::LiquidCrystal_I2C(unsigned char, unsigned char, unsigned char, unsigned char)’:

(.text+0x0): multiple definition of `LiquidCrystal_I2C::rightToLeft()’

sketchLiquidCrystal_I2C.cpp.o (symbol from plugin):(.text+0x0): first defined here

librariesArduino-LiquidCrystal-I2C-library-masterLiquidCrystal_I2C.cpp.o (symbol from plugin): In function `LiquidCrystal_I2C::LiquidCrystal_I2C(unsigned char, unsigned char, unsigned char, unsigned char)’:

(.text+0x0): multiple definition of `LiquidCrystal_I2C::autoscroll()’

sketchLiquidCrystal_I2C.cpp.o (symbol from plugin):(.text+0x0): first defined here

librariesArduino-LiquidCrystal-I2C-library-masterLiquidCrystal_I2C.cpp.o (symbol from plugin): In function `LiquidCrystal_I2C::LiquidCrystal_I2C(unsigned char, unsigned char, unsigned char, unsigned char)’:

(.text+0x0): multiple definition of `LiquidCrystal_I2C::noAutoscroll()’

sketchLiquidCrystal_I2C.cpp.o (symbol from plugin):(.text+0x0): first defined here

librariesArduino-LiquidCrystal-I2C-library-masterLiquidCrystal_I2C.cpp.o (symbol from plugin): In function `LiquidCrystal_I2C::LiquidCrystal_I2C(unsigned char, unsigned char, unsigned char, unsigned char)’:

(.text+0x0): multiple definition of `LiquidCrystal_I2C::createChar(unsigned char, unsigned char*)’

sketchLiquidCrystal_I2C.cpp.o (symbol from plugin):(.text+0x0): first defined here

librariesArduino-LiquidCrystal-I2C-library-masterLiquidCrystal_I2C.cpp.o (symbol from plugin): In function `LiquidCrystal_I2C::LiquidCrystal_I2C(unsigned char, unsigned char, unsigned char, unsigned char)’:

(.text+0x0): multiple definition of `LiquidCrystal_I2C::begin()’

sketchLiquidCrystal_I2C.cpp.o (symbol from plugin):(.text+0x0): first defined here

librariesArduino-LiquidCrystal-I2C-library-masterLiquidCrystal_I2C.cpp.o (symbol from plugin): In function `LiquidCrystal_I2C::LiquidCrystal_I2C(unsigned char, unsigned char, unsigned char, unsigned char)’:

(.text+0x0): multiple definition of `LiquidCrystal_I2C::load_custom_character(unsigned char, unsigned char*)’

sketchLiquidCrystal_I2C.cpp.o (symbol from plugin):(.text+0x0): first defined here

librariesArduino-LiquidCrystal-I2C-library-masterLiquidCrystal_I2C.cpp.o (symbol from plugin): In function `LiquidCrystal_I2C::LiquidCrystal_I2C(unsigned char, unsigned char, unsigned char, unsigned char)’:

(.text+0x0): multiple definition of `LiquidCrystal_I2C::setBacklight(unsigned char)’

sketchLiquidCrystal_I2C.cpp.o (symbol from plugin):(.text+0x0): first defined here

librariesArduino-LiquidCrystal-I2C-library-masterLiquidCrystal_I2C.cpp.o (symbol from plugin): In function `LiquidCrystal_I2C::LiquidCrystal_I2C(unsigned char, unsigned char, unsigned char, unsigned char)’:

(.text+0x0): multiple definition of `LiquidCrystal_I2C::printstr(char const*)’

sketchLiquidCrystal_I2C.cpp.o (symbol from plugin):(.text+0x0): first defined here

collect2.exe: error: ld returned 1 exit status

exit status 1

Ошибка компиляции для платы Arduino Nano.

Этот отчёт будет иметь больше информации с

включенной опцией Файл -> Настройки ->

«Показать подробный вывод во время компиляции»

  • Войдите на сайт для отправки комментариев

Вс, 07/05/2017 — 22:27

#21

T.Rook

Offline

Зарегистрирован: 05.03.2016

meganom пишет:

T.Rook пишет:

meganom пишет:

 Сколько типов файлов нужно подключать к проекту ? 

Если коротко, то библиотека:  h — заголовочный файл (обычно указывают в include), cpp — реализация.

По include и другие конструкции языка таки следует почитать.

Это я все знаю . Объясните мне, куда положить или как подключить эти библиотеки  если они у меня есть 

1. в каталог libraries. Распаковать в каталог и этого достаточно.

2. Давать кучу ошибок без скеча — подумай, как люди у которых ты спрашиваешь будут анализировать и что?

3. По поводу «collect2.exe: error: ld returned 1 exit status» — недавно на форуме было, поищите.

  • Войдите на сайт для отправки комментариев

Вс, 07/05/2017 — 22:29

#22

meganom

Offline

Зарегистрирован: 07.05.2017

T.Rook пишет:

meganom пишет:

T.Rook пишет:

meganom пишет:

 Сколько типов файлов нужно подключать к проекту ? 

Если коротко, то библиотека:  h — заголовочный файл (обычно указывают в include), cpp — реализация.

По include и другие конструкции языка таки следует почитать.

Это я все знаю . Объясните мне, куда положить или как подключить эти библиотеки  если они у меня есть 

1. в каталог libraries. Распаковать в каталог и этого достаточно.

2. Давать кучу ошибок без скеча — подумай, как люди у которых ты спрашиваешь будут анализировать и что?

1 Где это каталог находится?

2 В каком виде нужен скетч? Тут можно прикреплять файлы?

  • Войдите на сайт для отправки комментариев

Вс, 07/05/2017 — 22:30

#23

ua6em

ua6em аватар

Онлайн

Зарегистрирован: 17.08.2016

ТС точно не читатель, ТС писатель

  • Войдите на сайт для отправки комментариев

Вс, 07/05/2017 — 22:35

#24

T.Rook

Offline

Зарегистрирован: 05.03.2016

  • Войдите на сайт для отправки комментариев

Чт, 25/05/2017 — 18:50

#25

FrostDad

Offline

Зарегистрирован: 25.05.2017

Здраствуйте, у меня анологичная проблема.

скетч: /*   Данный скетч делает следующее: передатчик (TX) отправляет массив
 *   данных, который генерируется согласно показаниям с кнопки и с
 *   двух потенциомтеров. Приёмник (RX) получает массив, и записывает
 *   данные на реле, сервомашинку и генерирует ШИМ сигнал на транзистор.
    by AlexGyver 2016
*/

#include <SPI.h>
#include «nRF24L01.h»
#include «RF24.h»

RF24 radio(9,10); // «создать» модуль на пинах 9 и 10 Для Уно
//RF24 radio(9,53); // для Меги

byte address[][6] = {«1Node»,»2Node»,»3Node»,»4Node»,»5Node»,»6Node»};  //возможные номера труб

void setup(){
  Serial.begin(9600); //открываем порт для связи с ПК
  radio.begin(); //активировать модуль
  radio.setAutoAck(1);         //режим подтверждения приёма, 1 вкл 0 выкл
  radio.setRetries(0,15);     //(время между попыткой достучаться, число попыток)
  radio.enableAckPayload();    //разрешить отсылку данных в ответ на входящий сигнал
  radio.setPayloadSize(32);     //размер пакета, в байтах

  radio.openReadingPipe(1,address[0]);      //хотим слушать трубу 0
  radio.setChannel(0x60);  //выбираем канал (в котором нет шумов!)

  radio.setPALevel (RF24_PA_MAX); //уровень мощности передатчика. На выбор RF24_PA_MIN, RF24_PA_LOW, RF24_PA_HIGH, RF24_PA_MAX
  radio.setDataRate (RF24_250KBPS); //скорость обмена. На выбор RF24_2MBPS, RF24_1MBPS, RF24_250KBPS
  //должна быть одинакова на приёмнике и передатчике!
  //при самой низкой скорости имеем самую высокую чувствительность и дальность!!

 
  radio.powerUp(); //начать работу
  radio.startListening();  //начинаем слушать эфир, мы приёмный модуль
}

void loop() {
    byte pipeNo, gotByte;                          
    while( radio.available(&pipeNo)){    // слушаем эфир со всех труб
      radio.read( &gotByte, sizeof(gotByte) );         // чиатем входящий сигнал

      Serial.print(«Recieved: «); Serial.println(gotByte);
   }
}

ошибка:Arduino: 1.8.2 (Windows 7), Плата:»Arduino Nano, ATmega328″

C:ДаняардуиносчетчискечиNRF24L01sketch_may25aNRF24L01sketch_may25a.ino:9:22: fatal error: nRF24L01.h: No such file or directory

compilation terminated.

exit status 1
Ошибка компиляции для платы Arduino Nano.

Прочитав данную тему, так и не разобрался в чем дело,прошу помощи.

  • Войдите на сайт для отправки комментариев

Чт, 25/05/2017 — 19:15

#26

Jeka_M

Jeka_M аватар

Offline

Зарегистрирован: 06.07.2014

  • Войдите на сайт для отправки комментариев

Чт, 25/05/2017 — 19:20

#27

qwone

qwone аватар

Offline

Зарегистрирован: 03.07.2016

(анекдот)
  Сотый раз Чунгачгук наступал на грабли и не мог никак понять, что же бъет его по лбу. Надо открыть тему на каком нибудь форуме. Но решить на каком форуме открыть эту тему Чунгачгук не смог. Наверно надо на форуме "Охота и рыбалка". Ведь Чунгачгук счил себя опытным охотником, а не каким-то садоводом.

  • Войдите на сайт для отправки комментариев

Сб, 27/05/2017 — 15:58

#28

vovan_UA

Offline

Зарегистрирован: 27.05.2017

A у меня вот такую ошибку выдает после попытки залития скеча  через XLoader то что ниже ошибка в адруино ид при том что не имеет значения  что закидывать сразу вопрос можно ли это вылечить как то  как я вижу это ошибка при проверке  

Скетч использует 21464 байт (69%) памяти устройства. Всего доступно 30720 байт.

Глобальные переменные используют 977 байт (47%) динамической памяти, оставляя 1071 байт для локальных переменных. Максимум: 2048 байт.

avrdude: verification error, first mismatch at byte 0x0042

         0xf1 != 0x1d

avrdude: verification error; content mismatch

avrdude: verification error; content mismatch

  • Войдите на сайт для отправки комментариев

Вс, 28/05/2017 — 13:56

#29

DAFdriver

Offline

Зарегистрирован: 12.08.2016

В ардуино я новичек . Появился форум (понарамный ксв-метр) . Решил собрать. И сразу проблемка — неполучается прошить arduino nano . 

 Там несколько скетчей и ни один не мгу залить , другие библиотеки (примеры)грузятся и работают. Помогите плиз .

                                                       Вот скетч :

/***************************************************************************

 *  Name    : DDS_Sweeper.BAS                                                *

 *  Author  : Beric Dunn (K6BEZ)                                             *

 *  Notice  : Copyright (c) 2013  CC-BY-SA                                   *

 *          : Creative Commons Attribution-ShareAlike 3.0 Unported License   *

 *  Date    : 9/26/2013                                                      *

 *  Version : 1.0                                                            *

 *  Notes   : Written using for the Arduino Micro                            *

 *          :   Pins:                                                        *

 *          :   A0 — Reverse Detector Analog in                              *

 *          :   A1 — Forward Detector Analog in                              *

 *          : Modified by Norbert Redeker (DG7EAO) 07/2014                   *

 *          : TFT Display mit ILI9341 Chip, SPI, 240 x 320                   *

 ***************************************************************************/

#include <SPI.h>

#include «Ucglib.h»

#include «rusFont.h»

// Define Pins used to control AD9850 DDS

const int FQ_UD=11;

const int SDAT=10;

const int SCLK=12;

const int RESET=9;

// Variablen für Display

double vswrArray[110]; //Array für SWR

int z = 0;            // Index für Array

double SwrFreq = 14;  // Variable für Freq. mit SWR Min.

double SwrMin = 100;   // Variable für SWR Min.

double Freq1 = 1;     // Freq. Links unterste Zeile Display

double Freq2 = 15;    // Freq. Mitte unterste Zeile Display

double Freq3 = 30;    // Freq. Mitte unterste Zeile Display

unsigned long milliold = 0;  //Millisekunden für Entprellung Interrupt

unsigned long millinew = 0;  //Millisekunden für Entprellung Interrupt

int flag = 0;                // wir auf 1 gesetzt bei Interrupt, in void Loop perform_sweep

double counter = 0;          // Zähler um erste Interrupts zu ignorieren

// Variablen für Messung

double Fstart_MHz = 1;  // Start Frequency for sweep

double Fstop_MHz = 30;  // Stop Frequency for sweep

double current_freq_MHz; // Temp variable used during sweep

long serial_input_number; // Used to build number from serial stream

int num_steps = 100; // Number of steps to use in the sweep

char incoming_char; // Character read from serial stream

//Konstruktor für Display

Ucglib_ST7735_18x128x160_SWSPI ucg(/*sclk=*/ 12, /*data=*/ 10, /*cd=*/ 6 , /*cs=*/ 5, /*reset=*/ 4);

// the setup routine runs once when you press reset:

void setup() {

  // Voltmetr

  analogReference(INTERNAL);

  float Vbat = (analogRead(A5) * 1.1) / 1023.0;

  float Vin = Vbat / (69.8 / (783.0 + 69.8)); // R2/(R1+R2)

  // Schreibe Info Text auf Display

  ucg.begin(UCG_FONT_MODE_SOLID);

  ucg.clearScreen();

  ucg.setRotate90();

  ucg.setFont(ucg_font_9x15_tf);

  ucg.setColor(255, 255, 255); 

  ucg.setPrintPos(10,20);

  ucg.print(«Arduino Antenna»);

  ucg.setPrintPos(25,40);

  ucg.print(«SWR Analyzer»);

  ucg.setPrintPos(35,60);

  ucg.print(«1-30 MHz»);

  ucg.setPrintPos(20,80);

  ucg.print(«Komsomolsk 2017»);

  ucg.setPrintPos(5,128);

  ucg.print(«BAT»);

  ucg.setPrintPos(40,128);

  ucg.print(Vin, 1);

  // Configiure DDS control pins for digital output

  pinMode(FQ_UD,OUTPUT);

  pinMode(SCLK,OUTPUT);

  pinMode(SDAT,OUTPUT);

  pinMode(RESET,OUTPUT);

  //Tasten Interrupt an PIN 2

  pinMode(2,OUTPUT);

  digitalWrite(2, HIGH);

  attachInterrupt(0, key2, FALLING);

  unsigned long milliold = millis();

  //Tasten Interrupt an PIN 3

  pinMode(3,OUTPUT);

  digitalWrite(3, HIGH);

  attachInterrupt(1, key3, FALLING);

  //milliold = millis();

  // Configure LED pin for digital output

  pinMode(13,OUTPUT);

  // Set up analog inputs on A0 and A1, internal reference voltage

  pinMode(A0,INPUT);

  pinMode(A1,INPUT);

  analogReference(INTERNAL);

  // initialize serial communication at 57600 baud

  Serial.begin(57600);

  // Reset the DDS

  digitalWrite(RESET,HIGH);

  digitalWrite(RESET,LOW);

  //Initialise the incoming serial number to zero

  serial_input_number=0;

}

// the loop routine runs over and over again forever:

void loop() {

  //Check for character

  if(Serial.available()>0){

    incoming_char = Serial.read();

    switch(incoming_char){

    case ‘0’:

    case ‘1’:

    case ‘2’:

    case ‘3’:

    case ‘4’:

    case ‘5’:

    case ‘6’:

    case ‘7’:

    case ‘8’:

    case ‘9’:

      serial_input_number=serial_input_number*10+(incoming_char-‘0’);

      break;

    case ‘A’:

      //Turn frequency into FStart

      Fstart_MHz = ((double)serial_input_number)/1000000;

      serial_input_number=0;

      break;

    case ‘B’:

      //Turn frequency into FStop

      Fstop_MHz = ((double)serial_input_number)/1000000;

      serial_input_number=0;

      break;

    case ‘C’:

      //Turn frequency into FStart and set DDS output to single frequency

      Fstart_MHz = ((double)serial_input_number)/1000000;

      //SetDDSFreq(Fstart_MHz);

      SetDDSFreq(Fstart_MHz * 1000000);

      delay(100);

      SetDDSFreq(Fstart_MHz * 1000000);

      serial_input_number=0;    

      break;

    case ‘N’:

      // Set number of steps in the sweep

      num_steps = serial_input_number;

      serial_input_number=0;

      break;

    case ‘S’:    

    case ‘s’:    

      Perform_sweep();

      break;

    case ‘?’:

      // Report current configuration to PC    

      Serial.print(«Start Freq:»);

      Serial.println(Fstart_MHz*1000000);

      Serial.print(«Stop Freq:»);

      Serial.println(Fstop_MHz*1000000);

      Serial.print(«Num Steps:»);

      Serial.println(num_steps);

      break;

    }

    Serial.flush();     

  } 

  //Perform Sweep nach Interrupt PIN2 oder 3

  // ingnoriere Startup Interrupts durch counter

  if (flag == 1 && counter >2) 

  {

    flag = 0;

    Perform_sweep(); 

  }

}

void Perform_sweep(){

  double FWD=0;

  double REV=0;

  double VSWR;

  double Fstep_MHz = (Fstop_MHz-Fstart_MHz)/num_steps;

  z = 0;

  SwrMin = 100;

  ucg.clearScreen();

  ucg.setFont(ucg_font_9x15_tf);

  ucg.setColor(255, 0, 100); 

  ucg.setPrintPos(35,60);

  ucg.print(«Analiz KSW»);

  // Start loop 

  for(int i=0;i<=num_steps;i++){

    // Calculate current frequency

    current_freq_MHz = Fstart_MHz + i*Fstep_MHz;

    // Set DDS to current frequency

    SetDDSFreq(current_freq_MHz*1000000);

    // Wait a little for settling

    //delay(10);

    delay(100);

    // Read the forward and reverse voltages

    REV = analogRead(A0);

    FWD = analogRead(A1);

    //Offset Korrektur

    REV = REV-1;

    if(REV>=FWD){

      REV = FWD-1;

    }

    if (REV <1) {

      REV = 1;

    }

    VSWR = (FWD+REV)/(FWD-REV);

    //Skalieren für Ausgabe

    VSWR = VSWR * 1000;

    // Send current line back to PC over serial bus

    Serial.print(current_freq_MHz*1000000);

    Serial.print(«,0,»);

    Serial.print(VSWR);

    Serial.print(«,»);

    Serial.print(FWD);

    Serial.print(«,»);

    Serial.println(REV);

    // Übergebe SWR an Array

    // ERmittele Freq bei niedrigsten SWR

    vswrArray[z] = VSWR/1000;

    if (vswrArray[z] > 10) vswrArray[z] = 10;

    if (vswrArray[z] < SwrMin && vswrArray[z] > 1) 

    {

      SwrMin = vswrArray[z];

      SwrFreq = current_freq_MHz;

    }    

    z = z + 1;

  }

  // Send «End» to PC to indicate end of sweep

  Serial.println(«End»);

  Serial.flush(); 

  ucg.clearScreen();

  //Zeichne Grid

  CreateGrid();

  ucg.setColor(76, 255, 0);

  // Draw Line

  double last = 10;

  double xx = 6;

  double j = 1;

  for (int i = 1 ;i < 103; i++){

    xx = vswrArray[i];

    ucg.drawLine(j,105-last*9, j+1, 105-xx*9);

    ucg.drawLine(j+1,105-last*9, j+2, 105-xx*9);

    j = j + 1.5;

    last = xx;  

  }     

}

// Setze DDS Frequenz

void SetDDSFreq(double Freq_Hz){

  // Calculate the DDS word — from AD9850 Datasheet

  int32_t f = Freq_Hz * 4294967295/125000000;

  // Send one byte at a time

  for (int b=0;b<4;b++,f>>=8){

    send_byte(f & 0xFF);

  }

  // 5th byte needs to be zeros

  send_byte(0);

  // Strobe the Update pin to tell DDS to use values

  digitalWrite(FQ_UD,HIGH);

  digitalWrite(FQ_UD,LOW);

}

// Sende Daten an DDS

void send_byte(byte data_to_send){

  // Bit bang the byte over the SPI bus

  for (int i=0; i<8; i++,data_to_send>>=1){

    // Set Data bit on output pin

    digitalWrite(SDAT,data_to_send & 0x01);

    // Strobe the clock pin

    digitalWrite(SCLK,HIGH);

    digitalWrite(SCLK,LOW);

  }

}

//Zeichne Grid auf TFT Display  

void CreateGrid()

{

  //ucg.clearScreen();

  double maxSwr = 10;

  ucg.setFont(ucg_font_9x15_tf);

  ucg.drawHLine(0,60,155);

  ucg.drawHLine(0,98,155);

  ucg.drawVLine(39,15,90);

  ucg.drawVLine(78,15,90);

  ucg.drawVLine(117,15,90);

  ucg.setPrintPos(0, 118);

  ucg.print(Freq1,3);

  ucg.setPrintPos(65, 118);

  ucg.print(Freq2,3);

  ucg.setPrintPos(130, 118);

  ucg.print(Freq3,3);

  ucg.setPrintPos(1, 11);

  ucg.print(«SWR»);

  ucg.setPrintPos(30, 11);

  ucg.print(SwrMin,2);

  ucg.setPrintPos(65, 11);

  ucg.print(«>»);

  ucg.setPrintPos(75, 11);

  ucg.print(maxSwr,2);

  ucg.setPrintPos(125, 11);

  ucg.print(SwrFreq,3);

  ucg.drawRFrame(0,15,155,90, 1);

}  

// Interrupt Service Routine

// Abfrage Low an Pin 2

void key2()

{

  //ignoriere Startup Interrupts > counter 

  counter = counter + 1; 

  //Entprellen mit millis()

  millinew = millis();

  if (millinew — milliold < 1000)

  {

    milliold = millinew;

    return; 

  }

  milliold = millinew;

  Fstart_MHz = 1;  // Start Frequency for sweep

  Fstop_MHz = 30;  // Stop Frequency for sweep

  num_steps = 102; // Steps

  Freq1 = 1;       // Unterste Zeile Display Freq. Links

  Freq2 = 15;      // Unterste Zeile Display Freq. Mitte

  Freq3 = 30;      // Unterste Zeile Display Freq. Recht

  //Perform_sweep();

  flag = 1;

}

// Interrupt Service Routine

// Abfrage Low an Pin 3

void key3()

{

  //ignoriere Startup Interrupts > counter 

  counter = counter + 1;  

  //Entprellen mit millis()

  millinew = millis();

  if (millinew — milliold < 1000)

  {

    milliold = millinew;

    return; 

  }

  milliold = millinew;

  int x = SwrFreq + 0.5; //Runde auf Mhz

  Fstart_MHz = x-1;  // Start Frequency for sweep

  Fstop_MHz = x+1;   // Stop Frequency for sweep

  num_steps = 102;  // Steps

  Freq1 = x-1;      // Unterste Zeile Display Freq. Links

  Freq2 = x;        // Unterste Zeile Display Freq. Mitte

  Freq3 = x+1;      // Unterste Zeile Display Freq. Rechts

  //Perform_sweep();

  flag = 1;

}

                         плюс Русский текст , он в том — же скетче :

const ucg_fntpgm_uint8_t my14x10rus[4157] UCG_SECTION(«.progmem.my14x10») = {

  0,11,15,0,255,14,3,35,6,248,32,255,0,15,255,14,

  0,0,0,0,8,0,0,2,14,14,4,1,0,64,192,192,

  192,192,192,192,192,192,128,0,64,192,128,6,5,5,7,0,

  9,68,204,204,204,136,10,14,28,11,0,0,8,128,8,128,

  17,0,17,0,127,192,17,0,17,0,34,0,34,0,255,128,

  34,0,34,0,68,0,68,0,9,14,28,10,0,0,8,0,

  8,0,59,128,123,0,200,0,200,0,232,0,107,0,11,128,

  9,128,9,128,111,0,238,0,8,0,8,14,14,9,0,0,

  97,179,214,102,12,12,24,24,48,48,102,107,205,134,9,14,

  28,10,0,0,56,0,124,0,108,0,108,0,108,0,56,0,

  56,128,109,128,199,0,194,0,199,0,237,128,124,128,56,0,

  2,5,5,3,0,10,128,192,192,192,64,5,14,14,6,0,

  0,24,48,96,96,192,192,192,192,192,192,96,96,48,24,5,

  14,14,6,0,0,192,96,48,48,24,24,24,24,24,24,56,

  48,96,192,7,7,7,8,0,4,146,214,124,16,124,214,146,

  8,10,10,10,0,1,8,24,24,24,127,254,24,24,24,16,

  4,6,6,5,0,0,112,96,96,64,192,192,8,2,2,9,

  0,5,127,254,3,3,3,4,0,0,224,160,224,8,14,14,

  9,0,0,3,3,6,6,12,12,24,24,48,48,96,96,192,

  192,9,14,28,10,0,0,62,0,127,0,227,128,197,128,197,

  128,197,128,201,128,201,128,209,128,209,128,209,128,227,128,127,

  0,62,0,9,14,28,10,0,0,12,0,28,0,60,0,124,

  0,8,0,4,0,12,0,12,0,8,0,4,0,12,0,12,

  0,127,128,255,128,9,14,28,10,0,0,126,0,255,0,195,

  128,193,128,1,128,3,128,63,0,126,0,224,0,192,0,192,

  0,192,0,223,128,191,0,9,14,28,10,0,0,126,0,255,

  0,195,128,1,128,1,128,3,0,58,0,119,0,3,128,1,

  128,1,128,3,128,255,0,126,0,9,14,28,10,0,0,2,

  0,6,0,14,0,30,0,62,0,118,0,230,0,198,0,251,

  128,247,0,6,0,6,0,6,0,4,0,9,14,28,10,0,

  0,127,128,127,128,96,0,96,0,96,0,110,0,111,0,3,

  128,1,128,1,128,1,128,195,0,255,0,124,0,9,14,28,

  10,0,0,31,0,127,0,96,0,192,0,192,0,192,0,222,

  0,223,0,195,128,193,128,193,128,227,0,127,0,60,0,9,

  14,28,10,0,0,127,128,255,128,0,0,3,0,3,0,6,

  0,6,0,12,0,12,0,24,0,24,0,48,0,48,0,32,

  0,9,14,28,10,0,0,58,0,119,0,227,128,193,128,193,

  128,99,0,54,0,111,0,227,128,193,128,193,128,227,128,119,

  0,46,0,9,14,28,10,0,0,60,0,255,0,231,0,195,

  128,193,128,193,128,225,128,253,128,125,128,1,128,3,128,7,

  0,127,0,252,0,3,11,11,4,0,2,224,160,224,0,0,

  0,0,0,224,160,224,4,13,13,5,0,0,112,80,112,0,

  0,0,0,0,112,80,112,96,192,9,11,22,10,0,1,1,

  128,3,128,15,0,28,0,120,0,224,0,120,0,28,0,15,

  0,3,128,1,128,9,6,12,10,0,4,127,128,255,0,0,

  0,0,0,127,128,255,0,9,11,22,10,0,1,192,0,224,

  0,120,0,60,0,15,0,3,128,15,0,60,0,120,0,224,

  0,192,0,8,14,14,9,0,0,116,238,135,3,3,6,14,

  56,48,48,0,0,48,48,9,11,22,10,0,1,62,0,65,

  0,128,128,154,128,166,128,162,128,162,128,166,128,155,0,64,

  0,63,128,9,14,28,10,0,0,252,0,254,0,199,0,195,

  128,193,128,193,128,193,128,253,128,253,128,193,128,193,128,193,

  128,193,128,129,0,9,14,28,10,0,0,94,0,223,0,195,

  128,193,128,193,128,195,128,255,0,255,0,195,128,193,128,193,

  128,195,128,223,0,190,0,9,14,28,10,0,0,14,0,63,

  0,115,128,97,128,192,0,192,0,192,0,192,0,192,0,192,

  0,96,0,112,0,63,128,15,0,9,14,28,10,0,0,238,

  0,111,0,99,128,97,128,97,128,97,128,97,128,97,128,97,

  128,97,128,97,128,99,128,111,0,238,0,9,14,28,10,0,

  0,95,128,223,0,192,0,192,0,192,0,192,0,223,0,222,

  0,192,0,192,0,192,0,192,0,223,128,191,0,9,14,28,

  10,0,0,95,128,223,0,192,0,192,0,192,0,192,0,223,

  0,222,0,192,0,192,0,192,0,192,0,192,0,128,0,9,

  14,28,10,0,0,63,128,127,128,225,128,192,0,192,0,192,

  0,192,0,207,128,223,128,193,128,193,128,225,128,127,128,62,

  0,9,14,28,10,0,0,129,0,193,128,193,128,193,128,193,

  128,193,128,223,128,223,128,193,128,193,128,193,128,193,128,193,

  128,64,128,8,14,14,10,1,0,254,127,24,24,24,24,24,

  24,24,24,24,24,254,127,9,14,28,10,0,0,31,128,63,

  128,1,128,1,128,1,128,1,128,1,128,1,128,1,128,1,

  128,1,128,195,128,255,0,62,0,9,14,28,10,0,0,65,

  128,195,128,199,0,206,0,220,0,216,0,216,0,216,0,216,

  0,220,0,206,0,199,0,195,128,65,128,9,14,28,10,0,

  0,64,0,192,0,192,0,192,0,192,0,192,0,192,0,192,

  0,192,0,192,0,192,0,192,0,255,128,255,0,9,14,28,

  10,0,0,193,128,227,128,247,128,247,128,213,128,193,128,213,

  128,221,128,221,128,201,128,193,128,193,128,193,128,129,0,9,

  14,28,10,0,0,225,0,225,128,241,128,241,128,249,128,217,

  128,221,128,205,128,205,128,197,128,197,128,193,128,193,128,128,

  128,9,14,28,10,0,0,46,0,111,0,227,128,193,128,193,

  128,193,128,193,128,193,128,193,128,193,128,193,128,227,128,123,

  0,58,0,9,14,28,10,0,0,254,0,255,0,195,128,193,

  128,193,128,195,128,223,0,222,0,192,0,192,0,192,0,192,

  0,192,0,128,0,10,15,30,10,0,255,46,0,111,0,227,

  128,193,128,193,128,193,128,193,128,193,128,193,128,193,128,193,

  128,227,0,123,128,58,192,0,192,9,14,28,10,0,0,126,

  0,255,0,195,128,193,128,193,128,195,128,223,0,220,0,206,

  0,199,0,195,128,193,128,193,128,129,0,9,14,28,10,0,

  0,62,0,127,0,224,0,192,0,192,0,224,0,118,0,27,

  0,3,128,1,128,1,128,3,128,255,128,127,0,9,14,28,

  10,0,0,255,0,127,128,0,0,12,0,12,0,12,0,12,

  0,12,0,12,0,12,0,12,0,12,0,12,0,4,0,9,

  14,28,10,0,0,64,128,193,128,193,128,193,128,193,128,193,

  128,193,128,193,128,193,128,193,128,193,128,99,0,127,0,62,

  0,9,14,28,10,0,0,227,128,99,0,99,0,99,0,34,

  0,54,0,54,0,54,0,20,0,28,0,28,0,28,0,8,

  0,8,0,10,14,28,11,0,0,64,64,192,192,192,192,192,

  192,192,192,192,192,204,192,204,192,204,192,222,192,222,192,211,

  192,193,192,128,192,9,14,28,10,0,0,193,128,193,128,193,

  128,99,0,99,0,50,0,56,0,28,0,14,0,103,0,99,

  0,193,128,193,128,193,128,10,14,28,10,0,0,192,192,192,

  192,97,128,97,128,51,0,63,0,30,0,12,0,8,0,4,

  0,12,0,12,0,12,0,8,0,9,14,28,10,0,0,127,

  128,255,128,1,128,3,128,7,0,6,0,4,0,16,0,48,

  0,112,0,224,0,192,0,255,128,255,0,5,14,14,6,0,

  0,248,192,192,192,192,192,192,192,192,192,192,192,192,248,9,

  14,28,10,0,0,192,0,96,0,96,0,48,0,48,0,24,

  0,24,0,12,0,12,0,6,0,6,0,3,0,3,0,1,

  128,5,14,14,6,0,0,248,24,24,24,24,24,24,24,24,

  24,24,24,24,248,9,6,12,10,0,8,8,0,28,0,54,

  0,99,0,193,128,128,128,10,1,2,10,0,255,255,192,4,

  3,3,5,0,12,224,96,48,8,11,11,9,0,0,124,127,

  3,3,59,123,227,195,199,255,123,9,13,26,10,0,0,64,

  0,192,0,192,0,192,0,192,0,222,0,223,0,195,128,193,

  128,193,128,195,0,255,0,222,0,8,11,11,9,0,0,30,

  63,115,224,192,192,192,224,240,127,30,9,13,26,10,0,0,

  0,128,1,128,1,128,1,128,1,128,61,128,125,128,225,128,

  193,128,193,128,227,128,127,128,61,128,8,11,11,9,0,0,

  60,126,231,195,195,223,222,192,227,127,62,7,13,13,8,0,

  0,62,124,96,96,252,248,96,96,96,96,96,96,32,8,13,

  13,9,0,0,63,127,227,195,195,195,227,123,51,3,3,127,

  254,8,13,13,9,0,0,64,192,192,192,222,223,195,195,195,

  195,195,195,130,2,13,13,3,0,0,64,192,128,64,192,192,

  192,192,192,192,192,192,128,5,14,14,6,0,255,16,24,24,

  8,48,120,24,24,24,24,24,24,120,240,8,13,13,9,0,

  0,64,192,192,198,198,204,216,216,216,204,198,199,131,2,14,

  14,3,0,0,64,192,192,192,192,192,192,192,192,192,192,192,

  192,128,9,11,22,10,0,0,91,0,219,128,201,128,201,128,

  201,128,201,128,201,128,201,128,201,128,193,128,129,0,8,11,

  11,9,0,0,94,223,195,195,195,195,195,195,195,195,130,8,

  11,11,9,0,0,52,118,227,195,195,195,195,195,227,118,52,

  8,11,11,9,0,0,252,254,199,195,199,222,220,192,192,192,

  128,9,13,26,9,0,255,63,0,127,0,227,0,195,0,195,

  0,195,0,251,0,123,0,3,0,3,0,3,128,3,128,3,

  128,7,11,11,8,0,0,92,222,224,224,192,192,192,192,192,

  192,128,8,11,11,9,0,0,62,127,192,192,240,102,15,3,

  3,254,124,6,13,13,7,0,0,32,96,96,252,248,96,96,

  96,96,96,96,124,60,8,11,11,9,0,0,65,195,195,195,

  195,195,195,195,227,123,58,8,11,11,9,0,0,129,129,195,

  195,102,102,102,36,60,24,24,9,11,22,10,0,0,128,128,

  193,128,201,128,201,128,201,128,201,128,193,128,221,128,247,128,

  227,128,65,0,8,11,11,9,0,0,195,102,102,52,24,24,

  24,52,102,102,195,8,12,12,9,0,255,193,227,99,102,110,

  44,12,24,24,48,240,224,8,11,11,9,0,0,127,255,7,

  6,12,0,48,96,224,255,254,7,14,14,8,0,0,14,28,

  24,24,24,48,224,224,48,24,24,24,28,14,2,16,16,5,

  1,255,192,192,192,192,192,192,192,192,192,192,192,192,192,192,

  192,192,8,14,14,9,0,0,224,112,24,24,24,12,7,7,

  12,24,24,24,112,224,10,5,10,11,0,4,48,192,120,192,

  204,192,199,128,195,0,5,13,13,6,0,1,248,136,136,136,

  136,136,136,136,136,136,136,136,248,8,11,11,9,0,0,252,

  254,199,195,199,222,220,192,192,192,128,8,11,11,9,0,0,

  30,63,115,224,192,192,192,224,240,127,30,8,11,11,9,0,

  0,127,254,24,24,24,24,24,24,24,24,16,8,12,12,9,

  0,255,193,227,99,102,110,44,12,24,24,48,240,224,8,12,

  12,9,0,255,126,255,219,219,219,219,90,24,24,24,24,16,

  8,11,11,9,0,0,195,102,102,52,24,24,24,52,102,102,

  195,8,12,12,9,0,255,132,198,198,198,198,198,198,198,198,

  254,255,3,8,11,11,9,0,0,65,195,195,195,231,127,63,

  3,3,3,2,8,11,11,9,0,0,130,195,195,211,219,219,

  219,219,219,203,255,8,12,12,9,0,255,130,195,195,211,219,

  219,219,219,218,200,255,3,8,11,11,9,0,0,192,224,96,

  96,108,110,103,99,103,126,124,8,11,11,9,0,0,130,195,

  195,195,219,221,207,199,207,253,251,8,11,11,9,0,0,64,

  192,192,192,220,222,199,195,199,254,252,8,11,11,9,0,0,

  124,254,198,3,27,59,3,3,6,254,120,9,11,22,10,0,

  0,71,0,207,128,205,128,205,128,221,128,221,128,205,128,205,

  128,205,128,207,128,135,0,8,11,11,9,0,0,63,127,227,

  195,227,123,59,51,51,115,226,9,14,28,10,0,0,252,0,

  254,0,199,0,195,128,193,128,193,128,193,128,253,128,253,128,

  193,128,193,128,193,128,193,128,129,0,9,14,28,10,0,0,

  223,128,223,0,192,0,192,0,192,0,192,0,222,0,223,0,

  195,128,193,128,193,128,195,128,255,0,254,0,9,14,28,10,

  0,0,94,0,223,0,195,128,193,128,193,128,195,128,255,0,

  255,0,195,128,193,128,193,128,195,128,223,0,190,0,9,14,

  28,10,0,0,223,0,223,128,192,0,192,0,192,0,192,0,

  192,0,192,0,192,0,192,0,192,0,192,0,192,0,128,0,

  9,14,28,10,0,0,11,0,27,0,59,0,115,0,99,0,

  99,0,99,0,99,0,99,0,99,0,123,0,251,128,193,128,

  193,128,9,14,28,10,0,0,95,128,223,0,192,0,192,0,

  192,0,192,0,223,0,222,0,192,0,192,0,192,0,192,0,

  223,128,191,0,10,14,28,11,0,0,64,64,192,192,196,192,

  204,192,204,192,109,128,109,128,109,128,109,128,204,192,204,192,

  204,192,200,192,128,128,9,14,28,10,0,0,122,0,251,0,

  131,128,1,128,1,128,3,0,58,0,123,0,3,128,1,128,

  1,128,131,128,251,0,120,0,9,14,28,10,0,0,67,128,

  195,128,199,128,199,128,199,128,205,128,205,128,205,128,217,128,

  217,128,217,128,209,128,209,128,193,0,9,14,28,10,0,0,

  91,128,219,128,215,128,199,128,199,128,205,128,205,128,205,128,

  217,128,217,128,217,128,209,128,209,128,193,0,9,14,28,10,

  0,0,65,128,195,128,199,0,206,0,220,0,216,0,216,0,

  216,0,216,0,220,0,206,0,199,0,195,128,65,128,9,14,

  28,10,0,0,220,0,222,0,199,0,195,128,193,128,193,128,

  193,128,193,128,193,128,193,128,193,128,193,128,193,128,193,128,

  9,14,28,10,0,0,193,128,227,128,247,128,247,128,213,128,

  193,128,213,128,221,128,221,128,201,128,193,128,193,128,193,128,

  129,0,9,14,28,10,0,0,129,0,193,128,193,128,193,128,

  193,128,193,128,223,128,223,128,193,128,193,128,193,128,193,128,

  193,128,64,128,9,14,28,10,0,0,46,0,111,0,227,128,

  193,128,193,128,193,128,193,128,193,128,193,128,193,128,193,128,

  227,128,123,0,58,0,9,14,28,10,0,0,223,128,223,128,

  193,128,193,128,193,128,193,128,193,128,193,128,193,128,193,128,

  193,128,193,128,193,128,129,0,9,14,28,10,0,0,254,0,

  255,0,195,128,193,128,193,128,195,128,223,0,222,0,192,0,

  192,0,192,0,192,0,192,0,128,0,9,14,28,10,0,0,

  14,0,63,0,115,128,97,128,192,0,192,0,192,0,192,0,

  192,0,192,0,96,0,112,0,63,128,15,0,9,14,28,10,

  0,0,255,0,127,128,0,0,12,0,12,0,12,0,12,0,

  12,0,12,0,12,0,12,0,12,0,12,0,4,0,9,14,

  28,10,0,0,129,0,193,128,193,128,193,128,193,128,125,128,

  61,128,1,128,1,128,1,128,193,128,225,128,127,0,62,0,

  10,14,28,11,0,0,63,0,127,128,237,192,204,192,204,192,

  237,192,109,128,45,0,12,0,12,0,12,0,12,0,12,0,

  4,0,9,14,28,10,0,0,193,128,193,128,193,128,99,0,

  99,0,50,0,56,0,28,0,14,0,103,0,99,0,193,128,

  193,128,193,128,10,15,30,10,0,255,130,0,195,0,195,0,

  195,0,195,0,195,0,195,0,195,0,195,0,195,0,195,0,

  195,0,223,0,223,128,1,192,9,14,28,10,0,0,129,0,

  193,128,193,128,193,128,193,128,193,128,225,128,125,128,61,128,

  1,128,1,128,1,128,1,128,0,128,10,14,28,11,0,0,

  128,128,192,192,192,192,192,192,200,192,204,192,204,192,204,192,

  204,192,204,192,196,192,192,64,223,128,95,192,11,15,30,11,

  0,255,128,128,192,192,192,192,192,192,200,192,204,192,204,192,

  204,192,204,192,204,192,196,192,192,64,223,128,95,192,0,224,

  9,14,28,10,0,0,224,0,224,0,96,0,96,0,96,0,

  96,0,110,0,111,0,99,128,97,128,97,128,99,128,127,0,

  62,0,10,14,28,11,0,0,128,128,192,192,192,192,192,192,

  192,192,192,192,220,192,222,192,199,64,195,64,195,64,199,64,

  254,192,124,192,9,14,28,10,0,0,128,0,192,0,192,0,

  192,0,192,0,192,0,222,0,223,0,195,128,193,128,193,128,

  195,128,255,0,254,0,9,14,28,10,0,0,62,0,127,0,

  227,128,193,128,193,128,1,128,29,128,29,128,1,128,1,128,

  193,128,227,128,127,0,62,0,10,14,28,11,0,0,71,0,

  207,128,221,192,216,192,216,192,216,192,248,192,248,192,216,192,

  216,192,216,192,221,192,207,128,135,0,9,14,28,10,0,0,

  63,128,127,128,225,128,193,128,193,128,225,128,125,128,61,128,

  29,128,57,128,113,128,225,128,193,128,129,0,8,11,11,9,

  0,0,124,127,3,3,59,123,227,195,199,255,123,8,11,11,

  9,0,0,7,31,56,112,102,207,195,195,231,126,60,8,11,

  11,9,0,0,92,222,198,198,220,222,195,195,199,222,188,8,

  11,11,9,0,0,254,255,192,192,192,192,192,192,192,192,128,

  10,11,22,11,0,0,31,128,31,128,25,128,49,128,49,128,

  49,128,1,128,127,192,255,192,192,192,192,192,8,11,11,9,

  0,0,60,126,231,195,195,223,222,192,227,127,62,9,11,22,

  10,0,0,64,128,201,128,201,128,107,0,54,0,54,0,107,

  0,201,128,201,128,201,128,129,0,8,11,11,9,0,0,116,

  246,195,7,126,62,6,3,7,254,124,8,11,11,9,0,0,

  65,195,195,199,207,223,219,211,195,195,130,8,11,11,9,0,

  0,89,219,211,199,207,223,219,211,195,195,130,8,11,11,9,

  0,0,71,207,204,220,216,216,216,220,206,199,67,8,11,11,

  9,0,0,27,59,115,227,195,195,195,195,195,195,195,9,11,

  22,10,0,0,65,0,227,128,247,128,247,128,213,128,213,128,

  213,128,213,128,193,128,193,128,129,0,8,11,11,9,0,0,

  65,195,195,251,251,195,195,195,195,195,130,8,11,11,9,0,

  0,52,118,227,195,195,195,195,195,227,118,52,8,11,11,9,

  0,0,95,223,195,195,195,195,195,195,195,195,130,255,255,255,

  255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,

  255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,

  255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,               255,255,255,255,255,255,255,255,255,255,255,255,255};

   За ранее благодарен.

  • Войдите на сайт для отправки комментариев

Вс, 28/05/2017 — 13:59

#30

ua6em

ua6em аватар

Онлайн

Зарегистрирован: 17.08.2016

 /***************************************************************************
 *  Name    : DDS_Sweeper.BAS                                                *
 *  Author  : Beric Dunn (K6BEZ)                                             *
 *  Notice  : Copyright (c) 2013  CC-BY-SA                                   *
 *          : Creative Commons Attribution-ShareAlike 3.0 Unported License   *
 *  Date    : 9/26/2013                                                      *
 *  Version : 1.0                                                            *
 *  Notes   : Written using for the Arduino Micro                            *
 *          :   Pins:                                                        *
 *          :   A0 - Reverse Detector Analog in                              *
 *          :   A1 - Forward Detector Analog in                              *
 *          : Modified by Norbert Redeker (DG7EAO) 07/2014                   *
 *          : TFT Display mit ILI9341 Chip, SPI, 240 x 320                   *
 *          : usglib Grafik Bibliothek   https://code.google.com/p/ucglib/   *
 ***************************************************************************/
 
#include <SPI.h>
#include "Ucglib.h"
#include "rusFont.h"
 
// Define Pins used to control AD9850 DDS
 
const int FQ_UD=11;
const int SDAT=10;
const int SCLK=12;
const int RESET=9;
 
// Variablen für Display
double vswrArray[110]; //Array für SWR
int z = 0;            // Index für Array
double SwrFreq = 14;  // Variable für Freq. mit SWR Min.
double SwrMin = 100;   // Variable für SWR Min.
double Freq1 = 1;     // Freq. Links unterste Zeile Display
double Freq2 = 15;    // Freq. Mitte unterste Zeile Display
double Freq3 = 30;    // Freq. Mitte unterste Zeile Display
unsigned long milliold = 0;  //Millisekunden für Entprellung Interrupt
unsigned long millinew = 0;  //Millisekunden für Entprellung Interrupt
int flag = 0;                // wir auf 1 gesetzt bei Interrupt, in void Loop perform_sweep
double counter = 0;          // Zähler um erste Interrupts zu ignorieren
 
// Variablen für Messung
double Fstart_MHz = 1;  // Start Frequency for sweep
double Fstop_MHz = 30;  // Stop Frequency for sweep
double current_freq_MHz; // Temp variable used during sweep
long serial_input_number; // Used to build number from serial stream
int num_steps = 100; // Number of steps to use in the sweep
char incoming_char; // Character read from serial stream
 
 
//Konstruktor für Display
Ucglib_ST7735_18x128x160_SWSPI ucg(/*sclk=*/ 12, /*data=*/ 10, /*cd=*/ 6 , /*cs=*/ 5, /*reset=*/ 4);
 
 
// the setup routine runs once when you press reset:
void setup() {
 
  // Voltmetr
  analogReference(INTERNAL);
  float Vbat = (analogRead(A5) * 1.1) / 1023.0;
  float Vin = Vbat / (69.8 / (783.0 + 69.8)); // R2/(R1+R2)
 
  // Schreibe Info Text auf Display
  ucg.begin(UCG_FONT_MODE_SOLID);
  ucg.clearScreen();
 
  ucg.setRotate90();
  ucg.setFont(ucg_font_9x15_tf);
  ucg.setColor(255, 255, 255); 
 
  ucg.setPrintPos(10,20);
  ucg.print("Arduino Antenna");
  ucg.setPrintPos(25,40);
  ucg.print("SWR Analyzer");
  ucg.setPrintPos(35,60);
  ucg.print("1-30 MHz");
  ucg.setPrintPos(20,80);
  ucg.print("Komsomolsk 2017");
  ucg.setPrintPos(5,128);
  ucg.print("BAT");
  ucg.setPrintPos(40,128);
  ucg.print(Vin, 1);
 
 
  // Configiure DDS control pins for digital output
  pinMode(FQ_UD,OUTPUT);
  pinMode(SCLK,OUTPUT);
  pinMode(SDAT,OUTPUT);
  pinMode(RESET,OUTPUT);
 
  //Tasten Interrupt an PIN 2
  pinMode(2,OUTPUT);
  digitalWrite(2, HIGH);
  attachInterrupt(0, key2, FALLING);
  unsigned long milliold = millis();
 
  //Tasten Interrupt an PIN 3
  pinMode(3,OUTPUT);
  digitalWrite(3, HIGH);
  attachInterrupt(1, key3, FALLING);
  //milliold = millis();
 
  // Configure LED pin for digital output
  pinMode(13,OUTPUT);
 
 
  // Set up analog inputs on A0 and A1, internal reference voltage
  pinMode(A0,INPUT);
  pinMode(A1,INPUT);
  analogReference(INTERNAL);
 
  // initialize serial communication at 57600 baud
  Serial.begin(57600);
 
 
  // Reset the DDS
  digitalWrite(RESET,HIGH);
  digitalWrite(RESET,LOW);
 
  //Initialise the incoming serial number to zero
  serial_input_number=0;
 
}
 
// the loop routine runs over and over again forever:
void loop() {
 
 
  //Check for character
  if(Serial.available()>0){
    incoming_char = Serial.read();
    switch(incoming_char){
    case '0':
    case '1':
    case '2':
    case '3':
    case '4':
    case '5':
    case '6':
    case '7':
    case '8':
    case '9':
      serial_input_number=serial_input_number*10+(incoming_char-'0');
      break;
    case 'A':
      //Turn frequency into FStart
      Fstart_MHz = ((double)serial_input_number)/1000000;
      serial_input_number=0;
      break;
    case 'B':
      //Turn frequency into FStop
      Fstop_MHz = ((double)serial_input_number)/1000000;
      serial_input_number=0;
      break;
    case 'C':
      //Turn frequency into FStart and set DDS output to single frequency
      Fstart_MHz = ((double)serial_input_number)/1000000;
      //SetDDSFreq(Fstart_MHz);
      SetDDSFreq(Fstart_MHz * 1000000);
      delay(100);
      SetDDSFreq(Fstart_MHz * 1000000);
      serial_input_number=0;    
      break;
    case 'N':
      // Set number of steps in the sweep
      num_steps = serial_input_number;
      serial_input_number=0;
      break;
    case 'S':    
    case 's':    
      Perform_sweep();
      break;
    case '?':
      // Report current configuration to PC    
      Serial.print("Start Freq:");
      Serial.println(Fstart_MHz*1000000);
      Serial.print("Stop Freq:");
      Serial.println(Fstop_MHz*1000000);
      Serial.print("Num Steps:");
      Serial.println(num_steps);
      break;
    }
    Serial.flush();     
  } 
 
  //Perform Sweep nach Interrupt PIN2 oder 3
  // ingnoriere Startup Interrupts durch counter
  if (flag == 1 && counter >2) 
  {
    flag = 0;
    Perform_sweep(); 
 
  }
}
 
 
void Perform_sweep(){
  double FWD=0;
  double REV=0;
  double VSWR;
  double Fstep_MHz = (Fstop_MHz-Fstart_MHz)/num_steps;
 
  z = 0;
  SwrMin = 100;
 
  ucg.clearScreen();
  ucg.setFont(ucg_font_9x15_tf);
  ucg.setColor(255, 0, 100); 
  ucg.setPrintPos(35,60);
  ucg.print("Analiz KSW");
 
  // Start loop 
  for(int i=0;i<=num_steps;i++){
    // Calculate current frequency
    current_freq_MHz = Fstart_MHz + i*Fstep_MHz;
    // Set DDS to current frequency
    SetDDSFreq(current_freq_MHz*1000000);
    // Wait a little for settling
    //delay(10);
    delay(100);
    // Read the forward and reverse voltages
    REV = analogRead(A0);
    FWD = analogRead(A1);
 
    //Offset Korrektur
    REV = REV-1;
 
    if(REV>=FWD){
      REV = FWD-1;
    }
 
    if (REV <1) {
      REV = 1;
    }
 
    VSWR = (FWD+REV)/(FWD-REV);
 
    //Skalieren für Ausgabe
    VSWR = VSWR * 1000;
 
 
    // Send current line back to PC over serial bus
    Serial.print(current_freq_MHz*1000000);
    Serial.print(",0,");
    Serial.print(VSWR);
    Serial.print(",");
    Serial.print(FWD);
    Serial.print(",");
    Serial.println(REV);
 
 
    // Übergebe SWR an Array
    // ERmittele Freq bei niedrigsten SWR
    vswrArray[z] = VSWR/1000;
 
    if (vswrArray[z] > 10) vswrArray[z] = 10;
 
    if (vswrArray[z] < SwrMin && vswrArray[z] > 1) 
    {
      SwrMin = vswrArray[z];
      SwrFreq = current_freq_MHz;
 
    }    
 
    z = z + 1;
 
  }
 
  // Send "End" to PC to indicate end of sweep
  Serial.println("End");
  Serial.flush(); 
  ucg.clearScreen();
  //Zeichne Grid
  CreateGrid();
 
 
  ucg.setColor(76, 255, 0);
 
  // Draw Line
 
  double last = 10;
  double xx = 6;
  double j = 1;
 
  for (int i = 1 ;i < 103; i++){
    xx = vswrArray[i];
 
 
    ucg.drawLine(j,105-last*9, j+1, 105-xx*9);
    ucg.drawLine(j+1,105-last*9, j+2, 105-xx*9);
 
    j = j + 1.5;
    last = xx;  
  }     
}
 
// Setze DDS Frequenz
void SetDDSFreq(double Freq_Hz){
  // Calculate the DDS word - from AD9850 Datasheet
  int32_t f = Freq_Hz * 4294967295/125000000;
  // Send one byte at a time
  for (int b=0;b<4;b++,f>>=8){
    send_byte(f & 0xFF);
  }
  // 5th byte needs to be zeros
  send_byte(0);
  // Strobe the Update pin to tell DDS to use values
  digitalWrite(FQ_UD,HIGH);
  digitalWrite(FQ_UD,LOW);
}
 
// Sende Daten an DDS
void send_byte(byte data_to_send){
  // Bit bang the byte over the SPI bus
  for (int i=0; i<8; i++,data_to_send>>=1){
    // Set Data bit on output pin
    digitalWrite(SDAT,data_to_send & 0x01);
    // Strobe the clock pin
    digitalWrite(SCLK,HIGH);
    digitalWrite(SCLK,LOW);
  }
}
 
 
//Zeichne Grid auf TFT Display  
void CreateGrid()
{
  //ucg.clearScreen();
 
  double maxSwr = 10;
  ucg.setFont(ucg_font_9x15_tf);
  ucg.drawHLine(0,60,155);
  ucg.drawHLine(0,98,155);
 
 
  ucg.drawVLine(39,15,90);
  ucg.drawVLine(78,15,90);
  ucg.drawVLine(117,15,90);
 
 
  ucg.setPrintPos(0, 118);
  ucg.print(Freq1,3);
 
  ucg.setPrintPos(65, 118);
  ucg.print(Freq2,3);
 
  ucg.setPrintPos(130, 118);
  ucg.print(Freq3,3);
 
  ucg.setPrintPos(1, 11);
  ucg.print("SWR");
 
  ucg.setPrintPos(30, 11);
  ucg.print(SwrMin,2);
 
  ucg.setPrintPos(65, 11);
  ucg.print(">");
 
  ucg.setPrintPos(75, 11);
  ucg.print(maxSwr,2);
 
  ucg.setPrintPos(125, 11);
  ucg.print(SwrFreq,3);
 
  ucg.drawRFrame(0,15,155,90, 1);
 
}  
 
// Interrupt Service Routine
// Abfrage Low an Pin 2
void key2()
{
  //ignoriere Startup Interrupts > counter 
  counter = counter + 1; 
 
  //Entprellen mit millis()
  millinew = millis();
 
  if (millinew - milliold < 1000)
  {
    milliold = millinew;
    return; 
  }
 
  milliold = millinew;
 
  Fstart_MHz = 1;  // Start Frequency for sweep
  Fstop_MHz = 30;  // Stop Frequency for sweep
  num_steps = 102; // Steps
  Freq1 = 1;       // Unterste Zeile Display Freq. Links
  Freq2 = 15;      // Unterste Zeile Display Freq. Mitte
  Freq3 = 30;      // Unterste Zeile Display Freq. Recht
 
  //Perform_sweep();
  flag = 1;
 
}
 
// Interrupt Service Routine
// Abfrage Low an Pin 3
void key3()
{
  //ignoriere Startup Interrupts > counter 
  counter = counter + 1;  
 
  //Entprellen mit millis()
  millinew = millis();
 
  if (millinew - milliold < 1000)
  {
    milliold = millinew;
    return; 
  }
 
  milliold = millinew;
 
  int x = SwrFreq + 0.5; //Runde auf Mhz
 
  Fstart_MHz = x-1;  // Start Frequency for sweep
  Fstop_MHz = x+1;   // Stop Frequency for sweep
  num_steps = 102;  // Steps
 
  Freq1 = x-1;      // Unterste Zeile Display Freq. Links
  Freq2 = x;        // Unterste Zeile Display Freq. Mitte
  Freq3 = x+1;      // Unterste Zeile Display Freq. Rechts
 
  //Perform_sweep();
  flag = 1;
 
}
 
 
 
  плюс Русский текст , он в том - же скетче- const ucg_fntpgm_uint8_t my14x10rus[4157] UCG_SECTION(".progmem.my14x10") = {
  0,11,15,0,255,14,3,35,6,248,32,255,0,15,255,14,
  0,0,0,0,8,0,0,2,14,14,4,1,0,64,192,192,
  192,192,192,192,192,192,128,0,64,192,128,6,5,5,7,0,
  9,68,204,204,204,136,10,14,28,11,0,0,8,128,8,128,
  17,0,17,0,127,192,17,0,17,0,34,0,34,0,255,128,
  34,0,34,0,68,0,68,0,9,14,28,10,0,0,8,0,
  8,0,59,128,123,0,200,0,200,0,232,0,107,0,11,128,
  9,128,9,128,111,0,238,0,8,0,8,14,14,9,0,0,
  97,179,214,102,12,12,24,24,48,48,102,107,205,134,9,14,
  28,10,0,0,56,0,124,0,108,0,108,0,108,0,56,0,
  56,128,109,128,199,0,194,0,199,0,237,128,124,128,56,0,
  2,5,5,3,0,10,128,192,192,192,64,5,14,14,6,0,
  0,24,48,96,96,192,192,192,192,192,192,96,96,48,24,5,
  14,14,6,0,0,192,96,48,48,24,24,24,24,24,24,56,
  48,96,192,7,7,7,8,0,4,146,214,124,16,124,214,146,
  8,10,10,10,0,1,8,24,24,24,127,254,24,24,24,16,
  4,6,6,5,0,0,112,96,96,64,192,192,8,2,2,9,
  0,5,127,254,3,3,3,4,0,0,224,160,224,8,14,14,
  9,0,0,3,3,6,6,12,12,24,24,48,48,96,96,192,
  192,9,14,28,10,0,0,62,0,127,0,227,128,197,128,197,
  128,197,128,201,128,201,128,209,128,209,128,209,128,227,128,127,
  0,62,0,9,14,28,10,0,0,12,0,28,0,60,0,124,
  0,8,0,4,0,12,0,12,0,8,0,4,0,12,0,12,
  0,127,128,255,128,9,14,28,10,0,0,126,0,255,0,195,
  128,193,128,1,128,3,128,63,0,126,0,224,0,192,0,192,
  0,192,0,223,128,191,0,9,14,28,10,0,0,126,0,255,
  0,195,128,1,128,1,128,3,0,58,0,119,0,3,128,1,
  128,1,128,3,128,255,0,126,0,9,14,28,10,0,0,2,
  0,6,0,14,0,30,0,62,0,118,0,230,0,198,0,251,
  128,247,0,6,0,6,0,6,0,4,0,9,14,28,10,0,
  0,127,128,127,128,96,0,96,0,96,0,110,0,111,0,3,
  128,1,128,1,128,1,128,195,0,255,0,124,0,9,14,28,
  10,0,0,31,0,127,0,96,0,192,0,192,0,192,0,222,
  0,223,0,195,128,193,128,193,128,227,0,127,0,60,0,9,
  14,28,10,0,0,127,128,255,128,0,0,3,0,3,0,6,
  0,6,0,12,0,12,0,24,0,24,0,48,0,48,0,32,
  0,9,14,28,10,0,0,58,0,119,0,227,128,193,128,193,
  128,99,0,54,0,111,0,227,128,193,128,193,128,227,128,119,
  0,46,0,9,14,28,10,0,0,60,0,255,0,231,0,195,
  128,193,128,193,128,225,128,253,128,125,128,1,128,3,128,7,
  0,127,0,252,0,3,11,11,4,0,2,224,160,224,0,0,
  0,0,0,224,160,224,4,13,13,5,0,0,112,80,112,0,
  0,0,0,0,112,80,112,96,192,9,11,22,10,0,1,1,
  128,3,128,15,0,28,0,120,0,224,0,120,0,28,0,15,
  0,3,128,1,128,9,6,12,10,0,4,127,128,255,0,0,
  0,0,0,127,128,255,0,9,11,22,10,0,1,192,0,224,
  0,120,0,60,0,15,0,3,128,15,0,60,0,120,0,224,
  0,192,0,8,14,14,9,0,0,116,238,135,3,3,6,14,
  56,48,48,0,0,48,48,9,11,22,10,0,1,62,0,65,
  0,128,128,154,128,166,128,162,128,162,128,166,128,155,0,64,
  0,63,128,9,14,28,10,0,0,252,0,254,0,199,0,195,
  128,193,128,193,128,193,128,253,128,253,128,193,128,193,128,193,
  128,193,128,129,0,9,14,28,10,0,0,94,0,223,0,195,
  128,193,128,193,128,195,128,255,0,255,0,195,128,193,128,193,
  128,195,128,223,0,190,0,9,14,28,10,0,0,14,0,63,
  0,115,128,97,128,192,0,192,0,192,0,192,0,192,0,192,
  0,96,0,112,0,63,128,15,0,9,14,28,10,0,0,238,
  0,111,0,99,128,97,128,97,128,97,128,97,128,97,128,97,
  128,97,128,97,128,99,128,111,0,238,0,9,14,28,10,0,
  0,95,128,223,0,192,0,192,0,192,0,192,0,223,0,222,
  0,192,0,192,0,192,0,192,0,223,128,191,0,9,14,28,
  10,0,0,95,128,223,0,192,0,192,0,192,0,192,0,223,
  0,222,0,192,0,192,0,192,0,192,0,192,0,128,0,9,
  14,28,10,0,0,63,128,127,128,225,128,192,0,192,0,192,
  0,192,0,207,128,223,128,193,128,193,128,225,128,127,128,62,
  0,9,14,28,10,0,0,129,0,193,128,193,128,193,128,193,
  128,193,128,223,128,223,128,193,128,193,128,193,128,193,128,193,
  128,64,128,8,14,14,10,1,0,254,127,24,24,24,24,24,
  24,24,24,24,24,254,127,9,14,28,10,0,0,31,128,63,
  128,1,128,1,128,1,128,1,128,1,128,1,128,1,128,1,
  128,1,128,195,128,255,0,62,0,9,14,28,10,0,0,65,
  128,195,128,199,0,206,0,220,0,216,0,216,0,216,0,216,
  0,220,0,206,0,199,0,195,128,65,128,9,14,28,10,0,
  0,64,0,192,0,192,0,192,0,192,0,192,0,192,0,192,
  0,192,0,192,0,192,0,192,0,255,128,255,0,9,14,28,
  10,0,0,193,128,227,128,247,128,247,128,213,128,193,128,213,
  128,221,128,221,128,201,128,193,128,193,128,193,128,129,0,9,
  14,28,10,0,0,225,0,225,128,241,128,241,128,249,128,217,
  128,221,128,205,128,205,128,197,128,197,128,193,128,193,128,128,
  128,9,14,28,10,0,0,46,0,111,0,227,128,193,128,193,
  128,193,128,193,128,193,128,193,128,193,128,193,128,227,128,123,
  0,58,0,9,14,28,10,0,0,254,0,255,0,195,128,193,
  128,193,128,195,128,223,0,222,0,192,0,192,0,192,0,192,
  0,192,0,128,0,10,15,30,10,0,255,46,0,111,0,227,
  128,193,128,193,128,193,128,193,128,193,128,193,128,193,128,193,
  128,227,0,123,128,58,192,0,192,9,14,28,10,0,0,126,
  0,255,0,195,128,193,128,193,128,195,128,223,0,220,0,206,
  0,199,0,195,128,193,128,193,128,129,0,9,14,28,10,0,
  0,62,0,127,0,224,0,192,0,192,0,224,0,118,0,27,
  0,3,128,1,128,1,128,3,128,255,128,127,0,9,14,28,
  10,0,0,255,0,127,128,0,0,12,0,12,0,12,0,12,
  0,12,0,12,0,12,0,12,0,12,0,12,0,4,0,9,
  14,28,10,0,0,64,128,193,128,193,128,193,128,193,128,193,
  128,193,128,193,128,193,128,193,128,193,128,99,0,127,0,62,
  0,9,14,28,10,0,0,227,128,99,0,99,0,99,0,34,
  0,54,0,54,0,54,0,20,0,28,0,28,0,28,0,8,
  0,8,0,10,14,28,11,0,0,64,64,192,192,192,192,192,
  192,192,192,192,192,204,192,204,192,204,192,222,192,222,192,211,
  192,193,192,128,192,9,14,28,10,0,0,193,128,193,128,193,
  128,99,0,99,0,50,0,56,0,28,0,14,0,103,0,99,
  0,193,128,193,128,193,128,10,14,28,10,0,0,192,192,192,
  192,97,128,97,128,51,0,63,0,30,0,12,0,8,0,4,
  0,12,0,12,0,12,0,8,0,9,14,28,10,0,0,127,
  128,255,128,1,128,3,128,7,0,6,0,4,0,16,0,48,
  0,112,0,224,0,192,0,255,128,255,0,5,14,14,6,0,
  0,248,192,192,192,192,192,192,192,192,192,192,192,192,248,9,
  14,28,10,0,0,192,0,96,0,96,0,48,0,48,0,24,
  0,24,0,12,0,12,0,6,0,6,0,3,0,3,0,1,
  128,5,14,14,6,0,0,248,24,24,24,24,24,24,24,24,
  24,24,24,24,248,9,6,12,10,0,8,8,0,28,0,54,
  0,99,0,193,128,128,128,10,1,2,10,0,255,255,192,4,
  3,3,5,0,12,224,96,48,8,11,11,9,0,0,124,127,
  3,3,59,123,227,195,199,255,123,9,13,26,10,0,0,64,
  0,192,0,192,0,192,0,192,0,222,0,223,0,195,128,193,
  128,193,128,195,0,255,0,222,0,8,11,11,9,0,0,30,
  63,115,224,192,192,192,224,240,127,30,9,13,26,10,0,0,
  0,128,1,128,1,128,1,128,1,128,61,128,125,128,225,128,
  193,128,193,128,227,128,127,128,61,128,8,11,11,9,0,0,
  60,126,231,195,195,223,222,192,227,127,62,7,13,13,8,0,
  0,62,124,96,96,252,248,96,96,96,96,96,96,32,8,13,
  13,9,0,0,63,127,227,195,195,195,227,123,51,3,3,127,
  254,8,13,13,9,0,0,64,192,192,192,222,223,195,195,195,
  195,195,195,130,2,13,13,3,0,0,64,192,128,64,192,192,
  192,192,192,192,192,192,128,5,14,14,6,0,255,16,24,24,
  8,48,120,24,24,24,24,24,24,120,240,8,13,13,9,0,
  0,64,192,192,198,198,204,216,216,216,204,198,199,131,2,14,
  14,3,0,0,64,192,192,192,192,192,192,192,192,192,192,192,
  192,128,9,11,22,10,0,0,91,0,219,128,201,128,201,128,
  201,128,201,128,201,128,201,128,201,128,193,128,129,0,8,11,
  11,9,0,0,94,223,195,195,195,195,195,195,195,195,130,8,
  11,11,9,0,0,52,118,227,195,195,195,195,195,227,118,52,
  8,11,11,9,0,0,252,254,199,195,199,222,220,192,192,192,
  128,9,13,26,9,0,255,63,0,127,0,227,0,195,0,195,
  0,195,0,251,0,123,0,3,0,3,0,3,128,3,128,3,
  128,7,11,11,8,0,0,92,222,224,224,192,192,192,192,192,
  192,128,8,11,11,9,0,0,62,127,192,192,240,102,15,3,
  3,254,124,6,13,13,7,0,0,32,96,96,252,248,96,96,
  96,96,96,96,124,60,8,11,11,9,0,0,65,195,195,195,
  195,195,195,195,227,123,58,8,11,11,9,0,0,129,129,195,
  195,102,102,102,36,60,24,24,9,11,22,10,0,0,128,128,
  193,128,201,128,201,128,201,128,201,128,193,128,221,128,247,128,
  227,128,65,0,8,11,11,9,0,0,195,102,102,52,24,24,
  24,52,102,102,195,8,12,12,9,0,255,193,227,99,102,110,
  44,12,24,24,48,240,224,8,11,11,9,0,0,127,255,7,
  6,12,0,48,96,224,255,254,7,14,14,8,0,0,14,28,
  24,24,24,48,224,224,48,24,24,24,28,14,2,16,16,5,
  1,255,192,192,192,192,192,192,192,192,192,192,192,192,192,192,
  192,192,8,14,14,9,0,0,224,112,24,24,24,12,7,7,
  12,24,24,24,112,224,10,5,10,11,0,4,48,192,120,192,
  204,192,199,128,195,0,5,13,13,6,0,1,248,136,136,136,
  136,136,136,136,136,136,136,136,248,8,11,11,9,0,0,252,
  254,199,195,199,222,220,192,192,192,128,8,11,11,9,0,0,
  30,63,115,224,192,192,192,224,240,127,30,8,11,11,9,0,
  0,127,254,24,24,24,24,24,24,24,24,16,8,12,12,9,
  0,255,193,227,99,102,110,44,12,24,24,48,240,224,8,12,
  12,9,0,255,126,255,219,219,219,219,90,24,24,24,24,16,
  8,11,11,9,0,0,195,102,102,52,24,24,24,52,102,102,
  195,8,12,12,9,0,255,132,198,198,198,198,198,198,198,198,
  254,255,3,8,11,11,9,0,0,65,195,195,195,231,127,63,
  3,3,3,2,8,11,11,9,0,0,130,195,195,211,219,219,
  219,219,219,203,255,8,12,12,9,0,255,130,195,195,211,219,
  219,219,219,218,200,255,3,8,11,11,9,0,0,192,224,96,
  96,108,110,103,99,103,126,124,8,11,11,9,0,0,130,195,
  195,195,219,221,207,199,207,253,251,8,11,11,9,0,0,64,
  192,192,192,220,222,199,195,199,254,252,8,11,11,9,0,0,
  124,254,198,3,27,59,3,3,6,254,120,9,11,22,10,0,
  0,71,0,207,128,205,128,205,128,221,128,221,128,205,128,205,
  128,205,128,207,128,135,0,8,11,11,9,0,0,63,127,227,
  195,227,123,59,51,51,115,226,9,14,28,10,0,0,252,0,
  254,0,199,0,195,128,193,128,193,128,193,128,253,128,253,128,
  193,128,193,128,193,128,193,128,129,0,9,14,28,10,0,0,
  223,128,223,0,192,0,192,0,192,0,192,0,222,0,223,0,
  195,128,193,128,193,128,195,128,255,0,254,0,9,14,28,10,
  0,0,94,0,223,0,195,128,193,128,193,128,195,128,255,0,
  255,0,195,128,193,128,193,128,195,128,223,0,190,0,9,14,
  28,10,0,0,223,0,223,128,192,0,192,0,192,0,192,0,
  192,0,192,0,192,0,192,0,192,0,192,0,192,0,128,0,
  9,14,28,10,0,0,11,0,27,0,59,0,115,0,99,0,
  99,0,99,0,99,0,99,0,99,0,123,0,251,128,193,128,
  193,128,9,14,28,10,0,0,95,128,223,0,192,0,192,0,
  192,0,192,0,223,0,222,0,192,0,192,0,192,0,192,0,
  223,128,191,0,10,14,28,11,0,0,64,64,192,192,196,192,
  204,192,204,192,109,128,109,128,109,128,109,128,204,192,204,192,
  204,192,200,192,128,128,9,14,28,10,0,0,122,0,251,0,
  131,128,1,128,1,128,3,0,58,0,123,0,3,128,1,128,
  1,128,131,128,251,0,120,0,9,14,28,10,0,0,67,128,
  195,128,199,128,199,128,199,128,205,128,205,128,205,128,217,128,
  217,128,217,128,209,128,209,128,193,0,9,14,28,10,0,0,
  91,128,219,128,215,128,199,128,199,128,205,128,205,128,205,128,
  217,128,217,128,217,128,209,128,209,128,193,0,9,14,28,10,
  0,0,65,128,195,128,199,0,206,0,220,0,216,0,216,0,
  216,0,216,0,220,0,206,0,199,0,195,128,65,128,9,14,
  28,10,0,0,220,0,222,0,199,0,195,128,193,128,193,128,
  193,128,193,128,193,128,193,128,193,128,193,128,193,128,193,128,
  9,14,28,10,0,0,193,128,227,128,247,128,247,128,213,128,
  193,128,213,128,221,128,221,128,201,128,193,128,193,128,193,128,
  129,0,9,14,28,10,0,0,129,0,193,128,193,128,193,128,
  193,128,193,128,223,128,223,128,193,128,193,128,193,128,193,128,
  193,128,64,128,9,14,28,10,0,0,46,0,111,0,227,128,
  193,128,193,128,193,128,193,128,193,128,193,128,193,128,193,128,
  227,128,123,0,58,0,9,14,28,10,0,0,223,128,223,128,
  193,128,193,128,193,128,193,128,193,128,193,128,193,128,193,128,
  193,128,193,128,193,128,129,0,9,14,28,10,0,0,254,0,
  255,0,195,128,193,128,193,128,195,128,223,0,222,0,192,0,
  192,0,192,0,192,0,192,0,128,0,9,14,28,10,0,0,
  14,0,63,0,115,128,97,128,192,0,192,0,192,0,192,0,
  192,0,192,0,96,0,112,0,63,128,15,0,9,14,28,10,
  0,0,255,0,127,128,0,0,12,0,12,0,12,0,12,0,
  12,0,12,0,12,0,12,0,12,0,12,0,4,0,9,14,
  28,10,0,0,129,0,193,128,193,128,193,128,193,128,125,128,
  61,128,1,128,1,128,1,128,193,128,225,128,127,0,62,0,
  10,14,28,11,0,0,63,0,127,128,237,192,204,192,204,192,
  237,192,109,128,45,0,12,0,12,0,12,0,12,0,12,0,
  4,0,9,14,28,10,0,0,193,128,193,128,193,128,99,0,
  99,0,50,0,56,0,28,0,14,0,103,0,99,0,193,128,
  193,128,193,128,10,15,30,10,0,255,130,0,195,0,195,0,
  195,0,195,0,195,0,195,0,195,0,195,0,195,0,195,0,
  195,0,223,0,223,128,1,192,9,14,28,10,0,0,129,0,
  193,128,193,128,193,128,193,128,193,128,225,128,125,128,61,128,
  1,128,1,128,1,128,1,128,0,128,10,14,28,11,0,0,
  128,128,192,192,192,192,192,192,200,192,204,192,204,192,204,192,
  204,192,204,192,196,192,192,64,223,128,95,192,11,15,30,11,
  0,255,128,128,192,192,192,192,192,192,200,192,204,192,204,192,
  204,192,204,192,204,192,196,192,192,64,223,128,95,192,0,224,
  9,14,28,10,0,0,224,0,224,0,96,0,96,0,96,0,
  96,0,110,0,111,0,99,128,97,128,97,128,99,128,127,0,
  62,0,10,14,28,11,0,0,128,128,192,192,192,192,192,192,
  192,192,192,192,220,192,222,192,199,64,195,64,195,64,199,64,
  254,192,124,192,9,14,28,10,0,0,128,0,192,0,192,0,
  192,0,192,0,192,0,222,0,223,0,195,128,193,128,193,128,
  195,128,255,0,254,0,9,14,28,10,0,0,62,0,127,0,
  227,128,193,128,193,128,1,128,29,128,29,128,1,128,1,128,
  193,128,227,128,127,0,62,0,10,14,28,11,0,0,71,0,
  207,128,221,192,216,192,216,192,216,192,248,192,248,192,216,192,
  216,192,216,192,221,192,207,128,135,0,9,14,28,10,0,0,
  63,128,127,128,225,128,193,128,193,128,225,128,125,128,61,128,
  29,128,57,128,113,128,225,128,193,128,129,0,8,11,11,9,
  0,0,124,127,3,3,59,123,227,195,199,255,123,8,11,11,
  9,0,0,7,31,56,112,102,207,195,195,231,126,60,8,11,
  11,9,0,0,92,222,198,198,220,222,195,195,199,222,188,8,
  11,11,9,0,0,254,255,192,192,192,192,192,192,192,192,128,
  10,11,22,11,0,0,31,128,31,128,25,128,49,128,49,128,
  49,128,1,128,127,192,255,192,192,192,192,192,8,11,11,9,
  0,0,60,126,231,195,195,223,222,192,227,127,62,9,11,22,
  10,0,0,64,128,201,128,201,128,107,0,54,0,54,0,107,
  0,201,128,201,128,201,128,129,0,8,11,11,9,0,0,116,
  246,195,7,126,62,6,3,7,254,124,8,11,11,9,0,0,
  65,195,195,199,207,223,219,211,195,195,130,8,11,11,9,0,
  0,89,219,211,199,207,223,219,211,195,195,130,8,11,11,9,
  0,0,71,207,204,220,216,216,216,220,206,199,67,8,11,11,
  9,0,0,27,59,115,227,195,195,195,195,195,195,195,9,11,
  22,10,0,0,65,0,227,128,247,128,247,128,213,128,213,128,
  213,128,213,128,193,128,193,128,129,0,8,11,11,9,0,0,
  65,195,195,251,251,195,195,195,195,195,130,8,11,11,9,0,
  0,52,118,227,195,195,195,195,195,227,118,52,8,11,11,9,
  0,0,95,223,195,195,195,195,195,195,195,195,130,255,255,255,
  255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
  255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
  255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255, 
  255,255,255,255,255,255,255,255,255,255,255,255,255};

Выкладывать надо по правилам форума

  • Войдите на сайт для отправки комментариев

Вс, 28/05/2017 — 14:36

#31

DAFdriver

Offline

Зарегистрирован: 12.08.2016

Извиняюсь это мое первое сообщение.

  • Войдите на сайт для отправки комментариев

Вс, 28/05/2017 — 19:27

#32

Jeka_M

Jeka_M аватар

Offline

Зарегистрирован: 06.07.2014

DAFdriver пишет:

И сразу проблемка — неполучается прошить arduino nano . 

Информации недостаточно. Расшифруйте подробно ваше «неполучается прошить».

  • Войдите на сайт для отправки комментариев

Вс, 28/05/2017 — 19:42

#33

DAFdriver

Offline

Зарегистрирован: 12.08.2016

          Пишет ошибка компиляции

Arduino: 1.8.1 (Windows 7), Плата:»Arduino Nano, ATmega328″

C:Program Files (x86)ArduinolibrariesDDS_sweeper1_TFT_ST7735_128x160_v4_hwspiDDS_sweeper1_TFT_ST7735_128x160_v4_hwspi.ino:18:20: fatal error: Ucglib.h: No such file or directory

 #include «Ucglib.h»

                    ^

compilation terminated.

exit status 1

Ошибка компиляции для платы Arduino Nano.

Этот отчёт будет иметь больше информации с

включенной опцией Файл -> Настройки ->

«Показать подробный вывод во время компиляции»

       вот сподключеной ардуиной 

  Arduino: 1.8.1 (Windows 7), Плата:»Arduino Nano, ATmega328″

C:Program Files (x86)ArduinolibrariesDDS_sweeper1_TFT_ST7735_128x160_v4_hwspiDDS_sweeper1_TFT_ST7735_128x160_v4_hwspi.ino:18:20: fatal error: Ucglib.h: No such file or directory

 #include «Ucglib.h»

                    ^

compilation terminated.

exit status 1

Ошибка компиляции для платы Arduino Nano.

Неверная библиотека найдена в C:Program Files (x86)Arduinolibrariesad9850adafuilt: C:Program Files (x86)Arduinolibrariesad9850adafuilt

Неверная библиотека найдена в C:Program Files (x86)ArduinolibrariesTFT-Shield-Example-Code-master: C:Program Files (x86)ArduinolibrariesTFT-Shield-Example-Code-master

Неверная библиотека найдена в C:Program Files (x86)ArduinolibrariesTFT_Touch_Shield: C:Program Files (x86)ArduinolibrariesTFT_Touch_Shield

Неверная библиотека найдена в C:Program Files (x86)ArduinolibrariesTSCalibration: C:Program Files (x86)ArduinolibrariesTSCalibration

Неверная библиотека найдена в C:Program Files (x86)Arduinolibrariesad9850adafuilt: C:Program Files (x86)Arduinolibrariesad9850adafuilt

Неверная библиотека найдена в C:Program Files (x86)ArduinolibrariesTFT-Shield-Example-Code-master: C:Program Files (x86)ArduinolibrariesTFT-Shield-Example-Code-master

Неверная библиотека найдена в C:Program Files (x86)ArduinolibrariesTFT_Touch_Shield: C:Program Files (x86)ArduinolibrariesTFT_Touch_Shield

Неверная библиотека найдена в C:Program Files (x86)ArduinolibrariesTSCalibration: C:Program Files (x86)ArduinolibrariesTSCalibration

Этот отчёт будет иметь больше информации с

включенной опцией Файл -> Настройки ->

«Показать подробный вывод во время компиляции»

  • Войдите на сайт для отправки комментариев

Вс, 28/05/2017 — 19:41

#34

vovan_UA

Offline

Зарегистрирован: 27.05.2017

ну а с моими ошибками кто подскажет что делать если это возможно конечно

Скетч использует 21464 байт (69%) памяти устройства. Всего доступно 30720 байт.

Глобальные переменные используют 977 байт (47%) динамической памяти, оставляя 1071 байт для локальных переменных. Максимум: 2048 байт.

avrdude: verification error, first mismatch at byte 0x0042

         0xf1 != 0x1d

avrdude: verification error; content mismatch

avrdude: verification error; content mismatch

  • Войдите на сайт для отправки комментариев

Вс, 28/05/2017 — 20:40

#35

T.Rook

Offline

Зарегистрирован: 05.03.2016

DAFdriver пишет:

  DDS_sweeper1_TFT_ST7735_128x160_v4_hwspi.ino:18:20: fatal error: Ucglib.h: No such file or directory

 #include «Ucglib.h»

нет бибиотеки (или не найдена) Ucglib.h. Т.к. в скетче написано «Ucglib.h» то библтотека ожидается в каталоге файла «.ino». Если библиотека лежит в libraries, то исправьте на:  #include <Ucglib.h>

  • Войдите на сайт для отправки комментариев

Вс, 28/05/2017 — 20:49

#36

T.Rook

Offline

Зарегистрирован: 05.03.2016

vovan_UA пишет:

ну а с моими ошибками кто подскажет что делать если это возможно конечно

avrdude: verification error, first mismatch at byte 0x0042

         0xf1 != 0x1d

Если Вы полностью исключаете сбои по питанию (и ресету), и ошибка всегда на одном месте (на разных скетчах) «first mismatch at byte 0x0042» — то в мусор :(

UPD: хотя ВОТ написано что подобное было из-за драйвера

  • Войдите на сайт для отправки комментариев

Вс, 28/05/2017 — 20:54

#37

vovan_UA

Offline

Зарегистрирован: 27.05.2017

Да вот как раз ошибка всегда на одном месте а так врди загрузка проходит нормально единственое при проверке и возникает эта ошибка а загрузчик не мог слететь случайно или это уже самой памяти гаплык просто это пошло после ппытки загрузить скетч при помощи XLoader хотя рание было все нормально 

  • Войдите на сайт для отправки комментариев

Вс, 28/05/2017 — 21:04

#38

T.Rook

Offline

Зарегистрирован: 05.03.2016

vovan_UA пишет:

Да вот как раз ошибка всегда на одном месте а так врди загрузка проходит нормально единственое при проверке и возникает эта ошибка а загрузчик не мог слететь случайно или это уже самой памяти гаплык просто это пошло после ппытки загрузить скетч при помощи XLoader хотя рание было все нормально 

Это легко проверить: пробовали  перезаписать загрузчик?

  • Войдите на сайт для отправки комментариев

Вс, 28/05/2017 — 21:15

#39

qwone

qwone аватар

Offline

Зарегистрирован: 03.07.2016

DAFdriver

Ucglib.h: No such file or directory         // нет файла в директории
 
 #include "Ucglib.h"
 
                    ^   //<--а вот вам стрелочкой компилятор показывает
 
compilation terminated.

Нельзя же быть таким безголовым

  • Войдите на сайт для отправки комментариев

Вс, 28/05/2017 — 21:15

#40

DAFdriver

Offline

Зарегистрирован: 12.08.2016

Так что на чтои где исправить.Я в этом деле зеленый бегемот.

  • Войдите на сайт для отправки комментариев

Вс, 28/05/2017 — 21:22

#41

qwone

qwone аватар

Offline

Зарегистрирован: 03.07.2016

#include "Ucglib.h"    //<-это можно найти здесь https://code.google.com/p/ucglib/   *
#include "rusFont.h"    //<- а вот это хер знает где
   и не беритесь за сложные проекты это вам не игры на планшет заливать

  • Войдите на сайт для отправки комментариев

Вс, 28/05/2017 — 21:47

#42

DAFdriver

Offline

Зарегистрирован: 12.08.2016

  Спасибо буду пытаться. На счет игр мне 56лет ,я ими не занимаюсь . Занимаюсь настройкой CI-Bi антенн и ремонтом радиостанций , устанавливааю  и обслуживаю пожарные , охранные сигнализации и видео наблюдение. Там приходится пршивать датчики и приборы , нотам все проще .

  • Войдите на сайт для отправки комментариев

Вс, 28/05/2017 — 21:58

#43

vovan_UA

Offline

Зарегистрирован: 27.05.2017

T.Rook пишет:

Это легко проверить: пробовали  перезаписать загрузчик?

Не пробовал просто незнаю как с таким столкнулся в первые а из самой среды не получается выдает ошибку пробовал и при помощи USBASP он ее вобще отказывается видить а этот PL2303HX видит ну так же выдает шибку а как ещо просто незна есть ещо в наличие R3 MEGA328P ATMEGA16U2 со сьемной микрухой ну вот как к нему правильно подключится найти не могу 

  • Войдите на сайт для отправки комментариев

Пнд, 29/05/2017 — 00:48

#44

T.Rook

Offline

Зарегистрирован: 05.03.2016

vovan_UA пишет:

Не пробовал просто незнаю как с таким столкнулся в первые а из самой среды не получается выдает ошибку пробовал и при помощи USBASP он ее вобще отказывается видить а этот PL2303HX видит ну так же выдает шибку а как ещо просто незна есть ещо в наличие R3 MEGA328P ATMEGA16U2 со сьемной микрухой ну вот как к нему правильно подключится найти не могу 

Легко гуглится по «arduino isp программатор».

В качестве немного бредовой идеи на «поискать и почитать много непонятного»: если вылетела одна ячейка, то, наверное. можно натйти опции компиляции HEX файла, что бы рабочий код начинался после сбойного адреса.  Может кто подскажет vovan_UA?

  • Войдите на сайт для отправки комментариев

Пнд, 29/05/2017 — 07:30

#45

vovan_UA

Offline

Зарегистрирован: 27.05.2017

T.Rook пишет:

UPD: хотя ВОТ написано что подобное было из-за драйвера

Ну с драйверами тут все в порядке прост у меня таких платок несколько и в другую все записалось без проблем а с этой непонятка такая и такое ощущение что прсто предыдущая прошивка сидит внутри и невкаку не хочет затираться 

  • Войдите на сайт для отправки комментариев

Пнд, 29/05/2017 — 08:57

#46

ua6em

ua6em аватар

Онлайн

Зарегистрирован: 17.08.2016

qwone пишет:

#include "rusFont.h"    //<- а вот это хер знает где

А это разве не оно?
Добавить в проект файлик с этим имененм и содержимое в этот файл разместить, или я что-то путаю???
 

const ucg_fntpgm_uint8_t my14x10rus[4157] UCG_SECTION(«.progmem.my14x10») = {

  0,11,15,0,255,14,3,35,6,248,32,255,0,15,255,14,……………………………….

Файлик «rusFont.h» — файлик должен лежать в каталоге со скетчем

const ucg_fntpgm_uint8_t my14x10rus[4157] UCG_SECTION(".progmem.my14x10") = {
  0,11,15,0,255,14,3,35,6,248,32,255,0,15,255,14,
  0,0,0,0,8,0,0,2,14,14,4,1,0,64,192,192,
  192,192,192,192,192,192,128,0,64,192,128,6,5,5,7,0,
  9,68,204,204,204,136,10,14,28,11,0,0,8,128,8,128,
  17,0,17,0,127,192,17,0,17,0,34,0,34,0,255,128,
  34,0,34,0,68,0,68,0,9,14,28,10,0,0,8,0,
  8,0,59,128,123,0,200,0,200,0,232,0,107,0,11,128,
  9,128,9,128,111,0,238,0,8,0,8,14,14,9,0,0,
  97,179,214,102,12,12,24,24,48,48,102,107,205,134,9,14,
  28,10,0,0,56,0,124,0,108,0,108,0,108,0,56,0,
  56,128,109,128,199,0,194,0,199,0,237,128,124,128,56,0,
  2,5,5,3,0,10,128,192,192,192,64,5,14,14,6,0,
  0,24,48,96,96,192,192,192,192,192,192,96,96,48,24,5,
  14,14,6,0,0,192,96,48,48,24,24,24,24,24,24,56,
  48,96,192,7,7,7,8,0,4,146,214,124,16,124,214,146,
  8,10,10,10,0,1,8,24,24,24,127,254,24,24,24,16,
  4,6,6,5,0,0,112,96,96,64,192,192,8,2,2,9,
  0,5,127,254,3,3,3,4,0,0,224,160,224,8,14,14,
  9,0,0,3,3,6,6,12,12,24,24,48,48,96,96,192,
  192,9,14,28,10,0,0,62,0,127,0,227,128,197,128,197,
  128,197,128,201,128,201,128,209,128,209,128,209,128,227,128,127,
  0,62,0,9,14,28,10,0,0,12,0,28,0,60,0,124,
  0,8,0,4,0,12,0,12,0,8,0,4,0,12,0,12,
  0,127,128,255,128,9,14,28,10,0,0,126,0,255,0,195,
  128,193,128,1,128,3,128,63,0,126,0,224,0,192,0,192,
  0,192,0,223,128,191,0,9,14,28,10,0,0,126,0,255,
  0,195,128,1,128,1,128,3,0,58,0,119,0,3,128,1,
  128,1,128,3,128,255,0,126,0,9,14,28,10,0,0,2,
  0,6,0,14,0,30,0,62,0,118,0,230,0,198,0,251,
  128,247,0,6,0,6,0,6,0,4,0,9,14,28,10,0,
  0,127,128,127,128,96,0,96,0,96,0,110,0,111,0,3,
  128,1,128,1,128,1,128,195,0,255,0,124,0,9,14,28,
  10,0,0,31,0,127,0,96,0,192,0,192,0,192,0,222,
  0,223,0,195,128,193,128,193,128,227,0,127,0,60,0,9,
  14,28,10,0,0,127,128,255,128,0,0,3,0,3,0,6,
  0,6,0,12,0,12,0,24,0,24,0,48,0,48,0,32,
  0,9,14,28,10,0,0,58,0,119,0,227,128,193,128,193,
  128,99,0,54,0,111,0,227,128,193,128,193,128,227,128,119,
  0,46,0,9,14,28,10,0,0,60,0,255,0,231,0,195,
  128,193,128,193,128,225,128,253,128,125,128,1,128,3,128,7,
  0,127,0,252,0,3,11,11,4,0,2,224,160,224,0,0,
  0,0,0,224,160,224,4,13,13,5,0,0,112,80,112,0,
  0,0,0,0,112,80,112,96,192,9,11,22,10,0,1,1,
  128,3,128,15,0,28,0,120,0,224,0,120,0,28,0,15,
  0,3,128,1,128,9,6,12,10,0,4,127,128,255,0,0,
  0,0,0,127,128,255,0,9,11,22,10,0,1,192,0,224,
  0,120,0,60,0,15,0,3,128,15,0,60,0,120,0,224,
  0,192,0,8,14,14,9,0,0,116,238,135,3,3,6,14,
  56,48,48,0,0,48,48,9,11,22,10,0,1,62,0,65,
  0,128,128,154,128,166,128,162,128,162,128,166,128,155,0,64,
  0,63,128,9,14,28,10,0,0,252,0,254,0,199,0,195,
  128,193,128,193,128,193,128,253,128,253,128,193,128,193,128,193,
  128,193,128,129,0,9,14,28,10,0,0,94,0,223,0,195,
  128,193,128,193,128,195,128,255,0,255,0,195,128,193,128,193,
  128,195,128,223,0,190,0,9,14,28,10,0,0,14,0,63,
  0,115,128,97,128,192,0,192,0,192,0,192,0,192,0,192,
  0,96,0,112,0,63,128,15,0,9,14,28,10,0,0,238,
  0,111,0,99,128,97,128,97,128,97,128,97,128,97,128,97,
  128,97,128,97,128,99,128,111,0,238,0,9,14,28,10,0,
  0,95,128,223,0,192,0,192,0,192,0,192,0,223,0,222,
  0,192,0,192,0,192,0,192,0,223,128,191,0,9,14,28,
  10,0,0,95,128,223,0,192,0,192,0,192,0,192,0,223,
  0,222,0,192,0,192,0,192,0,192,0,192,0,128,0,9,
  14,28,10,0,0,63,128,127,128,225,128,192,0,192,0,192,
  0,192,0,207,128,223,128,193,128,193,128,225,128,127,128,62,
  0,9,14,28,10,0,0,129,0,193,128,193,128,193,128,193,
  128,193,128,223,128,223,128,193,128,193,128,193,128,193,128,193,
  128,64,128,8,14,14,10,1,0,254,127,24,24,24,24,24,
  24,24,24,24,24,254,127,9,14,28,10,0,0,31,128,63,
  128,1,128,1,128,1,128,1,128,1,128,1,128,1,128,1,
  128,1,128,195,128,255,0,62,0,9,14,28,10,0,0,65,
  128,195,128,199,0,206,0,220,0,216,0,216,0,216,0,216,
  0,220,0,206,0,199,0,195,128,65,128,9,14,28,10,0,
  0,64,0,192,0,192,0,192,0,192,0,192,0,192,0,192,
  0,192,0,192,0,192,0,192,0,255,128,255,0,9,14,28,
  10,0,0,193,128,227,128,247,128,247,128,213,128,193,128,213,
  128,221,128,221,128,201,128,193,128,193,128,193,128,129,0,9,
  14,28,10,0,0,225,0,225,128,241,128,241,128,249,128,217,
  128,221,128,205,128,205,128,197,128,197,128,193,128,193,128,128,
  128,9,14,28,10,0,0,46,0,111,0,227,128,193,128,193,
  128,193,128,193,128,193,128,193,128,193,128,193,128,227,128,123,
  0,58,0,9,14,28,10,0,0,254,0,255,0,195,128,193,
  128,193,128,195,128,223,0,222,0,192,0,192,0,192,0,192,
  0,192,0,128,0,10,15,30,10,0,255,46,0,111,0,227,
  128,193,128,193,128,193,128,193,128,193,128,193,128,193,128,193,
  128,227,0,123,128,58,192,0,192,9,14,28,10,0,0,126,
  0,255,0,195,128,193,128,193,128,195,128,223,0,220,0,206,
  0,199,0,195,128,193,128,193,128,129,0,9,14,28,10,0,
  0,62,0,127,0,224,0,192,0,192,0,224,0,118,0,27,
  0,3,128,1,128,1,128,3,128,255,128,127,0,9,14,28,
  10,0,0,255,0,127,128,0,0,12,0,12,0,12,0,12,
  0,12,0,12,0,12,0,12,0,12,0,12,0,4,0,9,
  14,28,10,0,0,64,128,193,128,193,128,193,128,193,128,193,
  128,193,128,193,128,193,128,193,128,193,128,99,0,127,0,62,
  0,9,14,28,10,0,0,227,128,99,0,99,0,99,0,34,
  0,54,0,54,0,54,0,20,0,28,0,28,0,28,0,8,
  0,8,0,10,14,28,11,0,0,64,64,192,192,192,192,192,
  192,192,192,192,192,204,192,204,192,204,192,222,192,222,192,211,
  192,193,192,128,192,9,14,28,10,0,0,193,128,193,128,193,
  128,99,0,99,0,50,0,56,0,28,0,14,0,103,0,99,
  0,193,128,193,128,193,128,10,14,28,10,0,0,192,192,192,
  192,97,128,97,128,51,0,63,0,30,0,12,0,8,0,4,
  0,12,0,12,0,12,0,8,0,9,14,28,10,0,0,127,
  128,255,128,1,128,3,128,7,0,6,0,4,0,16,0,48,
  0,112,0,224,0,192,0,255,128,255,0,5,14,14,6,0,
  0,248,192,192,192,192,192,192,192,192,192,192,192,192,248,9,
  14,28,10,0,0,192,0,96,0,96,0,48,0,48,0,24,
  0,24,0,12,0,12,0,6,0,6,0,3,0,3,0,1,
  128,5,14,14,6,0,0,248,24,24,24,24,24,24,24,24,
  24,24,24,24,248,9,6,12,10,0,8,8,0,28,0,54,
  0,99,0,193,128,128,128,10,1,2,10,0,255,255,192,4,
  3,3,5,0,12,224,96,48,8,11,11,9,0,0,124,127,
  3,3,59,123,227,195,199,255,123,9,13,26,10,0,0,64,
  0,192,0,192,0,192,0,192,0,222,0,223,0,195,128,193,
  128,193,128,195,0,255,0,222,0,8,11,11,9,0,0,30,
  63,115,224,192,192,192,224,240,127,30,9,13,26,10,0,0,
  0,128,1,128,1,128,1,128,1,128,61,128,125,128,225,128,
  193,128,193,128,227,128,127,128,61,128,8,11,11,9,0,0,
  60,126,231,195,195,223,222,192,227,127,62,7,13,13,8,0,
  0,62,124,96,96,252,248,96,96,96,96,96,96,32,8,13,
  13,9,0,0,63,127,227,195,195,195,227,123,51,3,3,127,
  254,8,13,13,9,0,0,64,192,192,192,222,223,195,195,195,
  195,195,195,130,2,13,13,3,0,0,64,192,128,64,192,192,
  192,192,192,192,192,192,128,5,14,14,6,0,255,16,24,24,
  8,48,120,24,24,24,24,24,24,120,240,8,13,13,9,0,
  0,64,192,192,198,198,204,216,216,216,204,198,199,131,2,14,
  14,3,0,0,64,192,192,192,192,192,192,192,192,192,192,192,
  192,128,9,11,22,10,0,0,91,0,219,128,201,128,201,128,
  201,128,201,128,201,128,201,128,201,128,193,128,129,0,8,11,
  11,9,0,0,94,223,195,195,195,195,195,195,195,195,130,8,
  11,11,9,0,0,52,118,227,195,195,195,195,195,227,118,52,
  8,11,11,9,0,0,252,254,199,195,199,222,220,192,192,192,
  128,9,13,26,9,0,255,63,0,127,0,227,0,195,0,195,
  0,195,0,251,0,123,0,3,0,3,0,3,128,3,128,3,
  128,7,11,11,8,0,0,92,222,224,224,192,192,192,192,192,
  192,128,8,11,11,9,0,0,62,127,192,192,240,102,15,3,
  3,254,124,6,13,13,7,0,0,32,96,96,252,248,96,96,
  96,96,96,96,124,60,8,11,11,9,0,0,65,195,195,195,
  195,195,195,195,227,123,58,8,11,11,9,0,0,129,129,195,
  195,102,102,102,36,60,24,24,9,11,22,10,0,0,128,128,
  193,128,201,128,201,128,201,128,201,128,193,128,221,128,247,128,
  227,128,65,0,8,11,11,9,0,0,195,102,102,52,24,24,
  24,52,102,102,195,8,12,12,9,0,255,193,227,99,102,110,
  44,12,24,24,48,240,224,8,11,11,9,0,0,127,255,7,
  6,12,0,48,96,224,255,254,7,14,14,8,0,0,14,28,
  24,24,24,48,224,224,48,24,24,24,28,14,2,16,16,5,
  1,255,192,192,192,192,192,192,192,192,192,192,192,192,192,192,
  192,192,8,14,14,9,0,0,224,112,24,24,24,12,7,7,
  12,24,24,24,112,224,10,5,10,11,0,4,48,192,120,192,
  204,192,199,128,195,0,5,13,13,6,0,1,248,136,136,136,
  136,136,136,136,136,136,136,136,248,8,11,11,9,0,0,252,
  254,199,195,199,222,220,192,192,192,128,8,11,11,9,0,0,
  30,63,115,224,192,192,192,224,240,127,30,8,11,11,9,0,
  0,127,254,24,24,24,24,24,24,24,24,16,8,12,12,9,
  0,255,193,227,99,102,110,44,12,24,24,48,240,224,8,12,
  12,9,0,255,126,255,219,219,219,219,90,24,24,24,24,16,
  8,11,11,9,0,0,195,102,102,52,24,24,24,52,102,102,
  195,8,12,12,9,0,255,132,198,198,198,198,198,198,198,198,
  254,255,3,8,11,11,9,0,0,65,195,195,195,231,127,63,
  3,3,3,2,8,11,11,9,0,0,130,195,195,211,219,219,
  219,219,219,203,255,8,12,12,9,0,255,130,195,195,211,219,
  219,219,219,218,200,255,3,8,11,11,9,0,0,192,224,96,
  96,108,110,103,99,103,126,124,8,11,11,9,0,0,130,195,
  195,195,219,221,207,199,207,253,251,8,11,11,9,0,0,64,
  192,192,192,220,222,199,195,199,254,252,8,11,11,9,0,0,
  124,254,198,3,27,59,3,3,6,254,120,9,11,22,10,0,
  0,71,0,207,128,205,128,205,128,221,128,221,128,205,128,205,
  128,205,128,207,128,135,0,8,11,11,9,0,0,63,127,227,
  195,227,123,59,51,51,115,226,9,14,28,10,0,0,252,0,
  254,0,199,0,195,128,193,128,193,128,193,128,253,128,253,128,
  193,128,193,128,193,128,193,128,129,0,9,14,28,10,0,0,
  223,128,223,0,192,0,192,0,192,0,192,0,222,0,223,0,
  195,128,193,128,193,128,195,128,255,0,254,0,9,14,28,10,
  0,0,94,0,223,0,195,128,193,128,193,128,195,128,255,0,
  255,0,195,128,193,128,193,128,195,128,223,0,190,0,9,14,
  28,10,0,0,223,0,223,128,192,0,192,0,192,0,192,0,
  192,0,192,0,192,0,192,0,192,0,192,0,192,0,128,0,
  9,14,28,10,0,0,11,0,27,0,59,0,115,0,99,0,
  99,0,99,0,99,0,99,0,99,0,123,0,251,128,193,128,
  193,128,9,14,28,10,0,0,95,128,223,0,192,0,192,0,
  192,0,192,0,223,0,222,0,192,0,192,0,192,0,192,0,
  223,128,191,0,10,14,28,11,0,0,64,64,192,192,196,192,
  204,192,204,192,109,128,109,128,109,128,109,128,204,192,204,192,
  204,192,200,192,128,128,9,14,28,10,0,0,122,0,251,0,
  131,128,1,128,1,128,3,0,58,0,123,0,3,128,1,128,
  1,128,131,128,251,0,120,0,9,14,28,10,0,0,67,128,
  195,128,199,128,199,128,199,128,205,128,205,128,205,128,217,128,
  217,128,217,128,209,128,209,128,193,0,9,14,28,10,0,0,
  91,128,219,128,215,128,199,128,199,128,205,128,205,128,205,128,
  217,128,217,128,217,128,209,128,209,128,193,0,9,14,28,10,
  0,0,65,128,195,128,199,0,206,0,220,0,216,0,216,0,
  216,0,216,0,220,0,206,0,199,0,195,128,65,128,9,14,
  28,10,0,0,220,0,222,0,199,0,195,128,193,128,193,128,
  193,128,193,128,193,128,193,128,193,128,193,128,193,128,193,128,
  9,14,28,10,0,0,193,128,227,128,247,128,247,128,213,128,
  193,128,213,128,221,128,221,128,201,128,193,128,193,128,193,128,
  129,0,9,14,28,10,0,0,129,0,193,128,193,128,193,128,
  193,128,193,128,223,128,223,128,193,128,193,128,193,128,193,128,
  193,128,64,128,9,14,28,10,0,0,46,0,111,0,227,128,
  193,128,193,128,193,128,193,128,193,128,193,128,193,128,193,128,
  227,128,123,0,58,0,9,14,28,10,0,0,223,128,223,128,
  193,128,193,128,193,128,193,128,193,128,193,128,193,128,193,128,
  193,128,193,128,193,128,129,0,9,14,28,10,0,0,254,0,
  255,0,195,128,193,128,193,128,195,128,223,0,222,0,192,0,
  192,0,192,0,192,0,192,0,128,0,9,14,28,10,0,0,
  14,0,63,0,115,128,97,128,192,0,192,0,192,0,192,0,
  192,0,192,0,96,0,112,0,63,128,15,0,9,14,28,10,
  0,0,255,0,127,128,0,0,12,0,12,0,12,0,12,0,
  12,0,12,0,12,0,12,0,12,0,12,0,4,0,9,14,
  28,10,0,0,129,0,193,128,193,128,193,128,193,128,125,128,
  61,128,1,128,1,128,1,128,193,128,225,128,127,0,62,0,
  10,14,28,11,0,0,63,0,127,128,237,192,204,192,204,192,
  237,192,109,128,45,0,12,0,12,0,12,0,12,0,12,0,
  4,0,9,14,28,10,0,0,193,128,193,128,193,128,99,0,
  99,0,50,0,56,0,28,0,14,0,103,0,99,0,193,128,
  193,128,193,128,10,15,30,10,0,255,130,0,195,0,195,0,
  195,0,195,0,195,0,195,0,195,0,195,0,195,0,195,0,
  195,0,223,0,223,128,1,192,9,14,28,10,0,0,129,0,
  193,128,193,128,193,128,193,128,193,128,225,128,125,128,61,128,
  1,128,1,128,1,128,1,128,0,128,10,14,28,11,0,0,
  128,128,192,192,192,192,192,192,200,192,204,192,204,192,204,192,
  204,192,204,192,196,192,192,64,223,128,95,192,11,15,30,11,
  0,255,128,128,192,192,192,192,192,192,200,192,204,192,204,192,
  204,192,204,192,204,192,196,192,192,64,223,128,95,192,0,224,
  9,14,28,10,0,0,224,0,224,0,96,0,96,0,96,0,
  96,0,110,0,111,0,99,128,97,128,97,128,99,128,127,0,
  62,0,10,14,28,11,0,0,128,128,192,192,192,192,192,192,
  192,192,192,192,220,192,222,192,199,64,195,64,195,64,199,64,
  254,192,124,192,9,14,28,10,0,0,128,0,192,0,192,0,
  192,0,192,0,192,0,222,0,223,0,195,128,193,128,193,128,
  195,128,255,0,254,0,9,14,28,10,0,0,62,0,127,0,
  227,128,193,128,193,128,1,128,29,128,29,128,1,128,1,128,
  193,128,227,128,127,0,62,0,10,14,28,11,0,0,71,0,
  207,128,221,192,216,192,216,192,216,192,248,192,248,192,216,192,
  216,192,216,192,221,192,207,128,135,0,9,14,28,10,0,0,
  63,128,127,128,225,128,193,128,193,128,225,128,125,128,61,128,
  29,128,57,128,113,128,225,128,193,128,129,0,8,11,11,9,
  0,0,124,127,3,3,59,123,227,195,199,255,123,8,11,11,
  9,0,0,7,31,56,112,102,207,195,195,231,126,60,8,11,
  11,9,0,0,92,222,198,198,220,222,195,195,199,222,188,8,
  11,11,9,0,0,254,255,192,192,192,192,192,192,192,192,128,
  10,11,22,11,0,0,31,128,31,128,25,128,49,128,49,128,
  49,128,1,128,127,192,255,192,192,192,192,192,8,11,11,9,
  0,0,60,126,231,195,195,223,222,192,227,127,62,9,11,22,
  10,0,0,64,128,201,128,201,128,107,0,54,0,54,0,107,
  0,201,128,201,128,201,128,129,0,8,11,11,9,0,0,116,
  246,195,7,126,62,6,3,7,254,124,8,11,11,9,0,0,
  65,195,195,199,207,223,219,211,195,195,130,8,11,11,9,0,
  0,89,219,211,199,207,223,219,211,195,195,130,8,11,11,9,
  0,0,71,207,204,220,216,216,216,220,206,199,67,8,11,11,
  9,0,0,27,59,115,227,195,195,195,195,195,195,195,9,11,
  22,10,0,0,65,0,227,128,247,128,247,128,213,128,213,128,
  213,128,213,128,193,128,193,128,129,0,8,11,11,9,0,0,
  65,195,195,251,251,195,195,195,195,195,130,8,11,11,9,0,
  0,52,118,227,195,195,195,195,195,227,118,52,8,11,11,9,
  0,0,95,223,195,195,195,195,195,195,195,195,130,255,255,255,
  255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
  255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
  255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255, 
  255,255,255,255,255,255,255,255,255,255,255,255,255};

  • Войдите на сайт для отправки комментариев

Пнд, 29/05/2017 — 10:09

#47

DAFdriver

Offline

Зарегистрирован: 12.08.2016

      Так он там есть , может не правильный . пост 29 .

  • Войдите на сайт для отправки комментариев

Пнд, 29/05/2017 — 10:12

#48

ua6em

ua6em аватар

Онлайн

Зарегистрирован: 17.08.2016

DAFdriver пишет:

      Так он там есть , может не правильный . пост 29 .

не в скетче, а в отдельном файле, точно есть? и имя файла соответствует? сомневаюсь )))

  • Войдите на сайт для отправки комментариев

Пнд, 29/05/2017 — 11:39

#49

DAFdriver

Offline

Зарегистрирован: 12.08.2016

Да в отдельной папке . В ide на белом фоне DDS_sveper1_TFT_ST7735_128X160_V4hvspi рядом на синем фоне rusFont.h и далее

 /***************************************************************************

 *  Name    : DDS_Sweeper.BAS                                                *

 *  Author  : Beric Dunn (K6BEZ)                                             *

 *  Notice  : Copyright (c) 2013  CC-BY-SA                                   *

 *          : Creative Commons Attribution-ShareAlike 3.0 Unported License   *

 *  Date    : 9/26/2013                                                      *

 *  Version : 1.0                                                            *

 *  Notes   : Written using for the Arduino Micro                            *

 *          :   Pins:                                                        *

 *          :   A0 — Reverse Detector Analog in                              *

 *          :   A1 — Forward Detector Analog in                              *

 *          : Modified by Norbert Redeker (DG7EAO) 07/2014                   *

 *          : TFT Display mit ILI9341 Chip, SPI, 240 x 320                   *

 ***************************************************************************/

#include <SPI.h>

#include «Ucglib.h»

#include «rusFont.h»

// Define Pins used to control AD9850 DDS

const int FQ_UD=9;

const int SDAT=7;

const int SCLK=10;

const int RESET=12;

// Variablen für Display

double vswrArray[110]; //Array für SWR

int z = 0;            // Index für Array

double SwrFreq = 14;  // Variable für Freq. mit SWR Min.

double SwrMin = 100;   // Variable für SWR Min.

double Freq1 = 1;     // Freq. Links unterste Zeile Display

double Freq2 = 15;    // Freq. Mitte unterste Zeile Display

double Freq3 = 30;    // Freq. Mitte unterste Zeile Display

unsigned long milliold = 0;  //Millisekunden für Entprellung Interrupt

unsigned long millinew = 0;  //Millisekunden für Entprellung Interrupt

int flag = 0;                // wir auf 1 gesetzt bei Interrupt, in void Loop perform_sweep

double counter = 0;          // Zähler um erste Interrupts zu ignorieren

// Variablen für Messung

double Fstart_MHz = 1;  // Start Frequency for sweep

double Fstop_MHz = 30;  // Stop Frequency for sweep

double current_freq_MHz; // Temp variable used during sweep

long serial_input_number; // Used to build number from serial stream

int num_steps = 100; // Number of steps to use in the sweep

char incoming_char; // Character read from serial stream

//Konstruktor für Display

Ucglib_ST7735_18x128x160_HWSPI ucg(/*cd=*/ 6 , /*cs=*/ 5, /*reset=*/ 4);

// the setup routine runs once when you press reset:

void setup() {

  // Voltmetr

  analogReference(INTERNAL);

  float Vbat = (analogRead(A5) * 1.1) / 1023.0;

  float Vin = Vbat / (89.8 / (783.0 + 89.8)); // R2/(R1+R2)

  // Schreibe Info Text auf Display

  ucg.begin(UCG_FONT_MODE_SOLID);

  ucg.clearScreen();

  ucg.setRotate90();

  ucg.setFont(my14x10rus);

  ucg.setColor(255, 255, 255); 

  ucg.setPrintPos(32,25);

  ucg.print(«Панорамный»);

  ucg.setPrintPos(40,45);

  ucg.print(«КСВ Метр»);

  ucg.setPrintPos(40,65);

  ucg.print(«1-30 MHz»);

  ucg.setPrintPos(32,90);

  ucg.print(«Пенза 2016»);

  ucg.setPrintPos(5,128);

  ucg.print(«Бат «);

  ucg.setPrintPos(40,128);

  ucg.print(Vin, 1);

  // Configiure DDS control pins for digital output

  pinMode(FQ_UD,OUTPUT);

  pinMode(SCLK,OUTPUT);

  pinMode(SDAT,OUTPUT);

  pinMode(RESET,OUTPUT);

  //Tasten Interrupt an PIN 2

  pinMode(2,OUTPUT);

  digitalWrite(2, HIGH);

  attachInterrupt(0, key2, FALLING);

  unsigned long milliold = millis();

  //Tasten Interrupt an PIN 3

  pinMode(3,OUTPUT);

  digitalWrite(3, HIGH);

  attachInterrupt(1, key3, FALLING);

  //milliold = millis();

  // Configure LED pin for digital output

  pinMode(13,OUTPUT);

  // Set up analog inputs on A0 and A1, internal reference voltage

  pinMode(A0,INPUT);

  pinMode(A1,INPUT);

  analogReference(INTERNAL);

  // initialize serial communication at 57600 baud

  Serial.begin(57600);

  // Reset the DDS

  digitalWrite(RESET,HIGH);

  digitalWrite(RESET,LOW);

  //Initialise the incoming serial number to zero

  serial_input_number=0;

}

// the loop routine runs over and over again forever:

void loop() {

  //Check for character

  if(Serial.available()>0){

    incoming_char = Serial.read();

    switch(incoming_char){

    case ‘0’:

    case ‘1’:

    case ‘2’:

    case ‘3’:

    case ‘4’:

    case ‘5’:

    case ‘6’:

    case ‘7’:

    case ‘8’:

    case ‘9’:

      serial_input_number=serial_input_number*10+(incoming_char-‘0’);

      break;

    case ‘A’:

      //Turn frequency into FStart

      Fstart_MHz = ((double)serial_input_number)/1000000;

      serial_input_number=0;

      break;

    case ‘B’:

      //Turn frequency into FStop

      Fstop_MHz = ((double)serial_input_number)/1000000;

      serial_input_number=0;

      break;

    case ‘C’:

      //Turn frequency into FStart and set DDS output to single frequency

      Fstart_MHz = ((double)serial_input_number)/1000000;

      //SetDDSFreq(Fstart_MHz);

      SetDDSFreq(Fstart_MHz * 1000000);

      delay(100);

      SetDDSFreq(Fstart_MHz * 1000000);

      serial_input_number=0;    

      break;

    case ‘N’:

      // Set number of steps in the sweep

      num_steps = serial_input_number;

      serial_input_number=0;

      break;

    case ‘S’:    

    case ‘s’:    

      Perform_sweep();

      break;

    case ‘?’:

      // Report current configuration to PC    

      Serial.print(«Start Freq:»);

      Serial.println(Fstart_MHz*1000000);

      Serial.print(«Stop Freq:»);

      Serial.println(Fstop_MHz*1000000);

      Serial.print(«Num Steps:»);

      Serial.println(num_steps);

      break;

    }

    Serial.flush();     

  } 

  //Perform Sweep nach Interrupt PIN2 oder 3

  // ingnoriere Startup Interrupts durch counter

  if (flag == 1 && counter >2) 

  {

    flag = 0;

    Perform_sweep(); 

  }

}

void Perform_sweep(){

  double FWD=0;

  double REV=0;

  double VSWR;

  double Fstep_MHz = (Fstop_MHz-Fstart_MHz)/num_steps;

  z = 0;

  SwrMin = 100;

  ucg.clearScreen();

  ucg.setFont(my14x10rus);

  ucg.setColor(255, 0, 100); 

  ucg.setPrintPos(35,60);

  ucg.print(«Анализ КСВ»);

  // Start loop 

  for(int i=0;i<=num_steps;i++){

    // Calculate current frequency

    current_freq_MHz = Fstart_MHz + i*Fstep_MHz;

    // Set DDS to current frequency

    SetDDSFreq(current_freq_MHz*1000000);

    // Wait a little for settling

    //delay(10);

    delay(100);

    // Read the forward and reverse voltages

    REV = analogRead(A0);

    FWD = analogRead(A1);

    //Offset Korrektur

    REV = REV-5;

    if(REV>=FWD){

      REV = FWD-1;

    }

    if (REV <1) {

      REV = 1;

    }

    VSWR = (FWD+REV)/(FWD-REV);

    //Skalieren für Ausgabe

    VSWR = VSWR * 1000;

    // Send current line back to PC over serial bus

    Serial.print(current_freq_MHz*1000000);

    Serial.print(«,0,»);

    Serial.print(VSWR);

    Serial.print(«,»);

    Serial.print(FWD);

    Serial.print(«,»);

    Serial.println(REV);

    // Übergebe SWR an Array

    // ERmittele Freq bei niedrigsten SWR

    vswrArray[z] = VSWR/1000;

    if (vswrArray[z] > 10) vswrArray[z] = 10;

    if (vswrArray[z] < SwrMin && vswrArray[z] > 1) 

    {

      SwrMin = vswrArray[z];

      SwrFreq = current_freq_MHz;

    }    

    z = z + 1;

  }

  // Send «End» to PC to indicate end of sweep

  Serial.println(«End»);

  Serial.flush(); 

  ucg.clearScreen();

  //Zeichne Grid

  CreateGrid();

  ucg.setColor(76, 255, 0);

  // Draw Line

  double last = 10;

  double xx = 6;

  double j = 1;

  for (int i = 1 ;i < 103; i++){

    xx = vswrArray[i];

    ucg.drawLine(j,105-last*9, j+1, 105-xx*9);

    ucg.drawLine(j+1,105-last*9, j+2, 105-xx*9);

    j = j + 1.5;

    last = xx;  

  }     

}

// Setze DDS Frequenz

void SetDDSFreq(double Freq_Hz){

  // Calculate the DDS word — from AD9850 Datasheet

  int32_t f = Freq_Hz * 4294967295/125000000;

  // Send one byte at a time

  for (int b=0;b<4;b++,f>>=8){

    send_byte(f & 0xFF);

  }

  // 5th byte needs to be zeros

  send_byte(0);

  // Strobe the Update pin to tell DDS to use values

  digitalWrite(FQ_UD,HIGH);

  digitalWrite(FQ_UD,LOW);

}

// Sende Daten an DDS

void send_byte(byte data_to_send){

  // Bit bang the byte over the SPI bus

  for (int i=0; i<8; i++,data_to_send>>=1){

    // Set Data bit on output pin

    digitalWrite(SDAT,data_to_send & 0x01);

    // Strobe the clock pin

    digitalWrite(SCLK,HIGH);

    digitalWrite(SCLK,LOW);

  }

}

//Zeichne Grid auf TFT Display  

void CreateGrid()

{

  //ucg.clearScreen();

  double maxSwr = 10;

  ucg.setFont(ucg_font_5x8);

  ucg.drawHLine(0,60,155);

  ucg.drawHLine(0,98,155);

  ucg.drawVLine(39,15,90);

  ucg.drawVLine(78,15,90);

  ucg.drawVLine(117,15,90);

  ucg.setPrintPos(0, 118);

  ucg.print(Freq1,3);

  ucg.setPrintPos(65, 118);

  ucg.print(Freq2,3);

  ucg.setPrintPos(130, 118);

  ucg.print(Freq3,3);

  ucg.setPrintPos(5, 8);

  ucg.print(«SWR»);

  ucg.setPrintPos(30, 8);

  ucg.print(SwrMin,2);

  ucg.setPrintPos(58, 8);

  ucg.print(«>»);

  ucg.setPrintPos(65, 8);

  ucg.print(maxSwr,2);

  ucg.setPrintPos(125, 8);

  ucg.print(SwrFreq,3);

  ucg.drawRFrame(0,15,155,90, 1);

}  

// Interrupt Service Routine

// Abfrage Low an Pin 2

void key2()

{

  //ignoriere Startup Interrupts > counter 

  counter = counter + 1; 

  //Entprellen mit millis()

  millinew = millis();

  if (millinew — milliold < 1000)

  {

    milliold = millinew;

    return; 

  }

  milliold = millinew;

  Fstart_MHz = 1;  // Start Frequency for sweep

  Fstop_MHz = 30;  // Stop Frequency for sweep

  num_steps = 102; // Steps

  Freq1 = 1;       // Unterste Zeile Display Freq. Links

  Freq2 = 15;      // Unterste Zeile Display Freq. Mitte

  Freq3 = 30;      // Unterste Zeile Display Freq. Recht

  //Perform_sweep();

  flag = 1;

}

// Interrupt Service Routine

// Abfrage Low an Pin 3

void key3()

{

  //ignoriere Startup Interrupts > counter 

  counter = counter + 1;  

  //Entprellen mit millis()

  millinew = millis();

  if (millinew — milliold < 1000)

  {

    milliold = millinew;

    return; 

  }

  milliold = millinew;

  int x = SwrFreq + 0.5; //Runde auf Mhz

  Fstart_MHz = x-1;  // Start Frequency for sweep

  Fstop_MHz = x+1;   // Stop Frequency for sweep

  num_steps = 102;  // Steps

  Freq1 = x-1;      // Unterste Zeile Display Freq. Links

  Freq2 = x;        // Unterste Zeile Display Freq. Mitte

  Freq3 = x+1;      // Unterste Zeile Display Freq. Rechts

  //Perform_sweep();

  flag = 1;

}

   кликаем  rusFont.h открывается

  const ucg_fntpgm_uint8_t my14x10rus[4157] UCG_SECTION(«.progmem.my14x10») = {

  0,11,15,0,255,14,3,35,6,248,32,255,0,15,255,14,

  0,0,0,0,8,0,0,2,14,14,4,1,0,64,192,192,

  192,192,192,192,192,192,128,0,64,192,128,6,5,5,7,0,

  9,68,204,204,204,136,10,14,28,11,0,0,8,128,8,128,

  17,0,17,0,127,192,17,0,17,0,34,0,34,0,255,128,

  34,0,34,0,68,0,68,0,9,14,28,10,0,0,8,0,

  8,0,59,128,123,0,200,0,200,0,232,0,107,0,11,128,

  9,128,9,128,111,0,238,0,8,0,8,14,14,9,0,0,

  97,179,214,102,12,12,24,24,48,48,102,107,205,134,9,14,

  28,10,0,0,56,0,124,0,108,0,108,0,108,0,56,0,

  56,128,109,128,199,0,194,0,199,0,237,128,124,128,56,0,

  2,5,5,3,0,10,128,192,192,192,64,5,14,14,6,0,

  0,24,48,96,96,192,192,192,192,192,192,96,96,48,24,5,

  14,14,6,0,0,192,96,48,48,24,24,24,24,24,24,56,

  48,96,192,7,7,7,8,0,4,146,214,124,16,124,214,146,

  8,10,10,10,0,1,8,24,24,24,127,254,24,24,24,16,

  4,6,6,5,0,0,112,96,96,64,192,192,8,2,2,9,

  0,5,127,254,3,3,3,4,0,0,224,160,224,8,14,14,

  9,0,0,3,3,6,6,12,12,24,24,48,48,96,96,192,

  192,9,14,28,10,0,0,62,0,127,0,227,128,197,128,197,

  128,197,128,201,128,201,128,209,128,209,128,209,128,227,128,127,

  0,62,0,9,14,28,10,0,0,12,0,28,0,60,0,124,

  0,8,0,4,0,12,0,12,0,8,0,4,0,12,0,12,

  0,127,128,255,128,9,14,28,10,0,0,126,0,255,0,195,

  128,193,128,1,128,3,128,63,0,126,0,224,0,192,0,192,

  0,192,0,223,128,191,0,9,14,28,10,0,0,126,0,255,

  0,195,128,1,128,1,128,3,0,58,0,119,0,3,128,1,

  128,1,128,3,128,255,0,126,0,9,14,28,10,0,0,2,

  0,6,0,14,0,30,0,62,0,118,0,230,0,198,0,251,

  128,247,0,6,0,6,0,6,0,4,0,9,14,28,10,0,

  0,127,128,127,128,96,0,96,0,96,0,110,0,111,0,3,

  128,1,128,1,128,1,128,195,0,255,0,124,0,9,14,28,

  10,0,0,31,0,127,0,96,0,192,0,192,0,192,0,222,

  0,223,0,195,128,193,128,193,128,227,0,127,0,60,0,9,

  14,28,10,0,0,127,128,255,128,0,0,3,0,3,0,6,

  0,6,0,12,0,12,0,24,0,24,0,48,0,48,0,32,

  0,9,14,28,10,0,0,58,0,119,0,227,128,193,128,193,

  128,99,0,54,0,111,0,227,128,193,128,193,128,227,128,119,

  0,46,0,9,14,28,10,0,0,60,0,255,0,231,0,195,

  128,193,128,193,128,225,128,253,128,125,128,1,128,3,128,7,

  0,127,0,252,0,3,11,11,4,0,2,224,160,224,0,0,

  0,0,0,224,160,224,4,13,13,5,0,0,112,80,112,0,

  0,0,0,0,112,80,112,96,192,9,11,22,10,0,1,1,

  128,3,128,15,0,28,0,120,0,224,0,120,0,28,0,15,

  0,3,128,1,128,9,6,12,10,0,4,127,128,255,0,0,

  0,0,0,127,128,255,0,9,11,22,10,0,1,192,0,224,

  0,120,0,60,0,15,0,3,128,15,0,60,0,120,0,224,

  0,192,0,8,14,14,9,0,0,116,238,135,3,3,6,14,

  56,48,48,0,0,48,48,9,11,22,10,0,1,62,0,65,

  0,128,128,154,128,166,128,162,128,162,128,166,128,155,0,64,

  0,63,128,9,14,28,10,0,0,252,0,254,0,199,0,195,

  128,193,128,193,128,193,128,253,128,253,128,193,128,193,128,193,

  128,193,128,129,0,9,14,28,10,0,0,94,0,223,0,195,

  128,193,128,193,128,195,128,255,0,255,0,195,128,193,128,193,

  128,195,128,223,0,190,0,9,14,28,10,0,0,14,0,63,

  0,115,128,97,128,192,0,192,0,192,0,192,0,192,0,192,

  0,96,0,112,0,63,128,15,0,9,14,28,10,0,0,238,

  0,111,0,99,128,97,128,97,128,97,128,97,128,97,128,97,

  128,97,128,97,128,99,128,111,0,238,0,9,14,28,10,0,

  0,95,128,223,0,192,0,192,0,192,0,192,0,223,0,222,

  0,192,0,192,0,192,0,192,0,223,128,191,0,9,14,28,

  10,0,0,95,128,223,0,192,0,192,0,192,0,192,0,223,

  0,222,0,192,0,192,0,192,0,192,0,192,0,128,0,9,

  14,28,10,0,0,63,128,127,128,225,128,192,0,192,0,192,

  0,192,0,207,128,223,128,193,128,193,128,225,128,127,128,62,

  0,9,14,28,10,0,0,129,0,193,128,193,128,193,128,193,

  128,193,128,223,128,223,128,193,128,193,128,193,128,193,128,193,

  128,64,128,8,14,14,10,1,0,254,127,24,24,24,24,24,

  24,24,24,24,24,254,127,9,14,28,10,0,0,31,128,63,

  128,1,128,1,128,1,128,1,128,1,128,1,128,1,128,1,

  128,1,128,195,128,255,0,62,0,9,14,28,10,0,0,65,

  128,195,128,199,0,206,0,220,0,216,0,216,0,216,0,216,

  0,220,0,206,0,199,0,195,128,65,128,9,14,28,10,0,

  0,64,0,192,0,192,0,192,0,192,0,192,0,192,0,192,

  0,192,0,192,0,192,0,192,0,255,128,255,0,9,14,28,

  10,0,0,193,128,227,128,247,128,247,128,213,128,193,128,213,

  128,221,128,221,128,201,128,193,128,193,128,193,128,129,0,9,

  14,28,10,0,0,225,0,225,128,241,128,241,128,249,128,217,

  128,221,128,205,128,205,128,197,128,197,128,193,128,193,128,128,

  128,9,14,28,10,0,0,46,0,111,0,227,128,193,128,193,

  128,193,128,193,128,193,128,193,128,193,128,193,128,227,128,123,

  0,58,0,9,14,28,10,0,0,254,0,255,0,195,128,193,

  128,193,128,195,128,223,0,222,0,192,0,192,0,192,0,192,

  0,192,0,128,0,10,15,30,10,0,255,46,0,111,0,227,

  128,193,128,193,128,193,128,193,128,193,128,193,128,193,128,193,

  128,227,0,123,128,58,192,0,192,9,14,28,10,0,0,126,

  0,255,0,195,128,193,128,193,128,195,128,223,0,220,0,206,

  0,199,0,195,128,193,128,193,128,129,0,9,14,28,10,0,

  0,62,0,127,0,224,0,192,0,192,0,224,0,118,0,27,

  0,3,128,1,128,1,128,3,128,255,128,127,0,9,14,28,

  10,0,0,255,0,127,128,0,0,12,0,12,0,12,0,12,

  0,12,0,12,0,12,0,12,0,12,0,12,0,4,0,9,

  14,28,10,0,0,64,128,193,128,193,128,193,128,193,128,193,

  128,193,128,193,128,193,128,193,128,193,128,99,0,127,0,62,

  0,9,14,28,10,0,0,227,128,99,0,99,0,99,0,34,

  0,54,0,54,0,54,0,20,0,28,0,28,0,28,0,8,

  0,8,0,10,14,28,11,0,0,64,64,192,192,192,192,192,

  192,192,192,192,192,204,192,204,192,204,192,222,192,222,192,211,

  192,193,192,128,192,9,14,28,10,0,0,193,128,193,128,193,

  128,99,0,99,0,50,0,56,0,28,0,14,0,103,0,99,

  0,193,128,193,128,193,128,10,14,28,10,0,0,192,192,192,

  192,97,128,97,128,51,0,63,0,30,0,12,0,8,0,4,

  0,12,0,12,0,12,0,8,0,9,14,28,10,0,0,127,

  128,255,128,1,128,3,128,7,0,6,0,4,0,16,0,48,

  0,112,0,224,0,192,0,255,128,255,0,5,14,14,6,0,

  0,248,192,192,192,192,192,192,192,192,192,192,192,192,248,9,

  14,28,10,0,0,192,0,96,0,96,0,48,0,48,0,24,

  0,24,0,12,0,12,0,6,0,6,0,3,0,3,0,1,

  128,5,14,14,6,0,0,248,24,24,24,24,24,24,24,24,

  24,24,24,24,248,9,6,12,10,0,8,8,0,28,0,54,

  0,99,0,193,128,128,128,10,1,2,10,0,255,255,192,4,

  3,3,5,0,12,224,96,48,8,11,11,9,0,0,124,127,

  3,3,59,123,227,195,199,255,123,9,13,26,10,0,0,64,

  0,192,0,192,0,192,0,192,0,222,0,223,0,195,128,193,

  128,193,128,195,0,255,0,222,0,8,11,11,9,0,0,30,

  63,115,224,192,192,192,224,240,127,30,9,13,26,10,0,0,

  0,128,1,128,1,128,1,128,1,128,61,128,125,128,225,128,

  193,128,193,128,227,128,127,128,61,128,8,11,11,9,0,0,

  60,126,231,195,195,223,222,192,227,127,62,7,13,13,8,0,

  0,62,124,96,96,252,248,96,96,96,96,96,96,32,8,13,

  13,9,0,0,63,127,227,195,195,195,227,123,51,3,3,127,

  254,8,13,13,9,0,0,64,192,192,192,222,223,195,195,195,

  195,195,195,130,2,13,13,3,0,0,64,192,128,64,192,192,

  192,192,192,192,192,192,128,5,14,14,6,0,255,16,24,24,

  8,48,120,24,24,24,24,24,24,120,240,8,13,13,9,0,

  0,64,192,192,198,198,204,216,216,216,204,198,199,131,2,14,

  14,3,0,0,64,192,192,192,192,192,192,192,192,192,192,192,

  192,128,9,11,22,10,0,0,91,0,219,128,201,128,201,128,

  201,128,201,128,201,128,201,128,201,128,193,128,129,0,8,11,

  11,9,0,0,94,223,195,195,195,195,195,195,195,195,130,8,

  11,11,9,0,0,52,118,227,195,195,195,195,195,227,118,52,

  8,11,11,9,0,0,252,254,199,195,199,222,220,192,192,192,

  128,9,13,26,9,0,255,63,0,127,0,227,0,195,0,195,

  0,195,0,251,0,123,0,3,0,3,0,3,128,3,128,3,

  128,7,11,11,8,0,0,92,222,224,224,192,192,192,192,192,

  192,128,8,11,11,9,0,0,62,127,192,192,240,102,15,3,

  3,254,124,6,13,13,7,0,0,32,96,96,252,248,96,96,

  96,96,96,96,124,60,8,11,11,9,0,0,65,195,195,195,

  195,195,195,195,227,123,58,8,11,11,9,0,0,129,129,195,

  195,102,102,102,36,60,24,24,9,11,22,10,0,0,128,128,

  193,128,201,128,201,128,201,128,201,128,193,128,221,128,247,128,

  227,128,65,0,8,11,11,9,0,0,195,102,102,52,24,24,

  24,52,102,102,195,8,12,12,9,0,255,193,227,99,102,110,

  44,12,24,24,48,240,224,8,11,11,9,0,0,127,255,7,

  6,12,0,48,96,224,255,254,7,14,14,8,0,0,14,28,

  24,24,24,48,224,224,48,24,24,24,28,14,2,16,16,5,

  1,255,192,192,192,192,192,192,192,192,192,192,192,192,192,192,

  192,192,8,14,14,9,0,0,224,112,24,24,24,12,7,7,

  12,24,24,24,112,224,10,5,10,11,0,4,48,192,120,192,

  204,192,199,128,195,0,5,13,13,6,0,1,248,136,136,136,

  136,136,136,136,136,136,136,136,248,8,11,11,9,0,0,252,

  254,199,195,199,222,220,192,192,192,128,8,11,11,9,0,0,

  30,63,115,224,192,192,192,224,240,127,30,8,11,11,9,0,

  0,127,254,24,24,24,24,24,24,24,24,16,8,12,12,9,

  0,255,193,227,99,102,110,44,12,24,24,48,240,224,8,12,

  12,9,0,255,126,255,219,219,219,219,90,24,24,24,24,16,

  8,11,11,9,0,0,195,102,102,52,24,24,24,52,102,102,

  195,8,12,12,9,0,255,132,198,198,198,198,198,198,198,198,

  254,255,3,8,11,11,9,0,0,65,195,195,195,231,127,63,

  3,3,3,2,8,11,11,9,0,0,130,195,195,211,219,219,

  219,219,219,203,255,8,12,12,9,0,255,130,195,195,211,219,

  219,219,219,218,200,255,3,8,11,11,9,0,0,192,224,96,

  96,108,110,103,99,103,126,124,8,11,11,9,0,0,130,195,

  195,195,219,221,207,199,207,253,251,8,11,11,9,0,0,64,

  192,192,192,220,222,199,195,199,254,252,8,11,11,9,0,0,

  124,254,198,3,27,59,3,3,6,254,120,9,11,22,10,0,

  0,71,0,207,128,205,128,205,128,221,128,221,128,205,128,205,

  128,205,128,207,128,135,0,8,11,11,9,0,0,63,127,227,

  195,227,123,59,51,51,115,226,9,14,28,10,0,0,252,0,

  254,0,199,0,195,128,193,128,193,128,193,128,253,128,253,128,

  193,128,193,128,193,128,193,128,129,0,9,14,28,10,0,0,

  223,128,223,0,192,0,192,0,192,0,192,0,222,0,223,0,

  195,128,193,128,193,128,195,128,255,0,254,0,9,14,28,10,

  0,0,94,0,223,0,195,128,193,128,193,128,195,128,255,0,

  255,0,195,128,193,128,193,128,195,128,223,0,190,0,9,14,

  28,10,0,0,223,0,223,128,192,0,192,0,192,0,192,0,

  192,0,192,0,192,0,192,0,192,0,192,0,192,0,128,0,

  9,14,28,10,0,0,11,0,27,0,59,0,115,0,99,0,

  99,0,99,0,99,0,99,0,99,0,123,0,251,128,193,128,

  193,128,9,14,28,10,0,0,95,128,223,0,192,0,192,0,

  192,0,192,0,223,0,222,0,192,0,192,0,192,0,192,0,

  223,128,191,0,10,14,28,11,0,0,64,64,192,192,196,192,

  204,192,204,192,109,128,109,128,109,128,109,128,204,192,204,192,

  204,192,200,192,128,128,9,14,28,10,0,0,122,0,251,0,

  131,128,1,128,1,128,3,0,58,0,123,0,3,128,1,128,

  1,128,131,128,251,0,120,0,9,14,28,10,0,0,67,128,

  195,128,199,128,199,128,199,128,205,128,205,128,205,128,217,128,

  217,128,217,128,209,128,209,128,193,0,9,14,28,10,0,0,

  91,128,219,128,215,128,199,128,199,128,205,128,205,128,205,128,

  217,128,217,128,217,128,209,128,209,128,193,0,9,14,28,10,

  0,0,65,128,195,128,199,0,206,0,220,0,216,0,216,0,

  216,0,216,0,220,0,206,0,199,0,195,128,65,128,9,14,

  28,10,0,0,220,0,222,0,199,0,195,128,193,128,193,128,

  193,128,193,128,193,128,193,128,193,128,193,128,193,128,193,128,

  9,14,28,10,0,0,193,128,227,128,247,128,247,128,213,128,

  193,128,213,128,221,128,221,128,201,128,193,128,193,128,193,128,

  129,0,9,14,28,10,0,0,129,0,193,128,193,128,193,128,

  193,128,193,128,223,128,223,128,193,128,193,128,193,128,193,128,

  193,128,64,128,9,14,28,10,0,0,46,0,111,0,227,128,

  193,128,193,128,193,128,193,128,193,128,193,128,193,128,193,128,

  227,128,123,0,58,0,9,14,28,10,0,0,223,128,223,128,

  193,128,193,128,193,128,193,128,193,128,193,128,193,128,193,128,

  193,128,193,128,193,128,129,0,9,14,28,10,0,0,254,0,

  255,0,195,128,193,128,193,128,195,128,223,0,222,0,192,0,

  192,0,192,0,192,0,192,0,128,0,9,14,28,10,0,0,

  14,0,63,0,115,128,97,128,192,0,192,0,192,0,192,0,

  192,0,192,0,96,0,112,0,63,128,15,0,9,14,28,10,

  0,0,255,0,127,128,0,0,12,0,12,0,12,0,12,0,

  12,0,12,0,12,0,12,0,12,0,12,0,4,0,9,14,

  28,10,0,0,129,0,193,128,193,128,193,128,193,128,125,128,

  61,128,1,128,1,128,1,128,193,128,225,128,127,0,62,0,

  10,14,28,11,0,0,63,0,127,128,237,192,204,192,204,192,

  237,192,109,128,45,0,12,0,12,0,12,0,12,0,12,0,

  4,0,9,14,28,10,0,0,193,128,193,128,193,128,99,0,

  99,0,50,0,56,0,28,0,14,0,103,0,99,0,193,128,

  193,128,193,128,10,15,30,10,0,255,130,0,195,0,195,0,

  195,0,195,0,195,0,195,0,195,0,195,0,195,0,195,0,

  195,0,223,0,223,128,1,192,9,14,28,10,0,0,129,0,

  193,128,193,128,193,128,193,128,193,128,225,128,125,128,61,128,

  1,128,1,128,1,128,1,128,0,128,10,14,28,11,0,0,

  128,128,192,192,192,192,192,192,200,192,204,192,204,192,204,192,

  204,192,204,192,196,192,192,64,223,128,95,192,11,15,30,11,

  0,255,128,128,192,192,192,192,192,192,200,192,204,192,204,192,

  204,192,204,192,204,192,196,192,192,64,223,128,95,192,0,224,

  9,14,28,10,0,0,224,0,224,0,96,0,96,0,96,0,

  96,0,110,0,111,0,99,128,97,128,97,128,99,128,127,0,

  62,0,10,14,28,11,0,0,128,128,192,192,192,192,192,192,

  192,192,192,192,220,192,222,192,199,64,195,64,195,64,199,64,

  254,192,124,192,9,14,28,10,0,0,128,0,192,0,192,0,

  192,0,192,0,192,0,222,0,223,0,195,128,193,128,193,128,

  195,128,255,0,254,0,9,14,28,10,0,0,62,0,127,0,

  227,128,193,128,193,128,1,128,29,128,29,128,1,128,1,128,

  193,128,227,128,127,0,62,0,10,14,28,11,0,0,71,0,

  207,128,221,192,216,192,216,192,216,192,248,192,248,192,216,192,

  216,192,216,192,221,192,207,128,135,0,9,14,28,10,0,0,

  63,128,127,128,225,128,193,128,193,128,225,128,125,128,61,128,

  29,128,57,128,113,128,225,128,193,128,129,0,8,11,11,9,

  0,0,124,127,3,3,59,123,227,195,199,255,123,8,11,11,

  9,0,0,7,31,56,112,102,207,195,195,231,126,60,8,11,

  11,9,0,0,92,222,198,198,220,222,195,195,199,222,188,8,

  11,11,9,0,0,254,255,192,192,192,192,192,192,192,192,128,

  10,11,22,11,0,0,31,128,31,128,25,128,49,128,49,128,

  49,128,1,128,127,192,255,192,192,192,192,192,8,11,11,9,

  0,0,60,126,231,195,195,223,222,192,227,127,62,9,11,22,

  10,0,0,64,128,201,128,201,128,107,0,54,0,54,0,107,

  0,201,128,201,128,201,128,129,0,8,11,11,9,0,0,116,

  246,195,7,126,62,6,3,7,254,124,8,11,11,9,0,0,

  65,195,195,199,207,223,219,211,195,195,130,8,11,11,9,0,

  0,89,219,211,199,207,223,219,211,195,195,130,8,11,11,9,

  0,0,71,207,204,220,216,216,216,220,206,199,67,8,11,11,

  9,0,0,27,59,115,227,195,195,195,195,195,195,195,9,11,

  22,10,0,0,65,0,227,128,247,128,247,128,213,128,213,128,

  213,128,213,128,193,128,193,128,129,0,8,11,11,9,0,0,

  65,195,195,251,251,195,195,195,195,195,130,8,11,11,9,0,

  0,52,118,227,195,195,195,195,195,227,118,52,8,11,11,9,

  0,0,95,223,195,195,195,195,195,195,195,195,130,255,255,255,

  255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,

  255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,

  255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,

  255,255,255,255,255,255,255,255,255,255,255,255,255};

  подключаю Arduino nano нажимаю загузить — стрелочку и выдет

Arduino: 1.8.1 (Windows 7), Плата:»Arduino Nano, ATmega328″

C:Program Files (x86)ArduinolibrariesDDS_sweeper1_TFT_ST7735_128x160_v4_hwspiDDS_sweeper1_TFT_ST7735_128x160_v4_hwspi.ino:18:20: fatal error: Ucglib.h: No such file or directory

 #include «Ucglib.h»

                    ^

compilation terminated.

exit status 1

Ошибка компиляции для платы Arduino Nano.

Неверная библиотека найдена в C:Program Files (x86)Arduinolibrariesad9850adafuilt: C:Program Files (x86)Arduinolibrariesad9850adafuilt

Неверная библиотека найдена в C:Program Files (x86)ArduinolibrariesDDS_sweeper1_TFT_ST7735_128x160: C:Program Files (x86)ArduinolibrariesDDS_sweeper1_TFT_ST7735_128x160

Неверная библиотека найдена в C:Program Files (x86)ArduinolibrariesLCD_ID_Reader: C:Program Files (x86)ArduinolibrariesLCD_ID_Reader

Неверная библиотека найдена в C:Program Files (x86)ArduinolibrariesOLED_RUS: C:Program Files (x86)ArduinolibrariesOLED_RUS

Неверная библиотека найдена в C:Program Files (x86)Arduinolibrariessimple_dds_st7735_2: C:Program Files (x86)Arduinolibrariessimple_dds_st7735_2

Неверная библиотека найдена в C:Program Files (x86)ArduinolibrariesTFT-Shield-Example-Code-master: C:Program Files (x86)ArduinolibrariesTFT-Shield-Example-Code-master

Неверная библиотека найдена в C:Program Files (x86)ArduinolibrariesTFT_Touch_Shield: C:Program Files (x86)ArduinolibrariesTFT_Touch_Shield

Неверная библиотека найдена в C:Program Files (x86)ArduinolibrariesTFT_Ucglib: C:Program Files (x86)ArduinolibrariesTFT_Ucglib

Неверная библиотека найдена в C:Program Files (x86)ArduinolibrariesTSCalibration: C:Program Files (x86)ArduinolibrariesTSCalibration

Неверная библиотека найдена в C:Program Files (x86)Arduinolibrariesucglib-master: C:Program Files (x86)Arduinolibrariesucglib-master

Неверная библиотека найдена в C:Program Files (x86)Arduinolibrariesutf8rus3: C:Program Files (x86)Arduinolibrariesutf8rus3

Неверная библиотека найдена в C:Program Files (x86)ArduinolibrariesUTFT: C:Program Files (x86)ArduinolibrariesUTFT

Неверная библиотека найдена в C:Program Files (x86)Arduinolibrariesad9850adafuilt: C:Program Files (x86)Arduinolibrariesad9850adafuilt

Неверная библиотека найдена в C:Program Files (x86)ArduinolibrariesDDS_sweeper1_TFT_ST7735_128x160: C:Program Files (x86)ArduinolibrariesDDS_sweeper1_TFT_ST7735_128x160

Неверная библиотека найдена в C:Program Files (x86)ArduinolibrariesLCD_ID_Reader: C:Program Files (x86)ArduinolibrariesLCD_ID_Reader

Неверная библиотека найдена в C:Program Files (x86)ArduinolibrariesOLED_RUS: C:Program Files (x86)ArduinolibrariesOLED_RUS

Неверная библиотека найдена в C:Program Files (x86)Arduinolibrariessimple_dds_st7735_2: C:Program Files (x86)Arduinolibrariessimple_dds_st7735_2

Неверная библиотека найдена в C:Program Files (x86)ArduinolibrariesTFT-Shield-Example-Code-master: C:Program Files (x86)ArduinolibrariesTFT-Shield-Example-Code-master

Неверная библиотека найдена в C:Program Files (x86)ArduinolibrariesTFT_Touch_Shield: C:Program Files (x86)ArduinolibrariesTFT_Touch_Shield

Неверная библиотека найдена в C:Program Files (x86)ArduinolibrariesTFT_Ucglib: C:Program Files (x86)ArduinolibrariesTFT_Ucglib

Неверная библиотека найдена в C:Program Files (x86)ArduinolibrariesTSCalibration: C:Program Files (x86)ArduinolibrariesTSCalibration

Неверная библиотека найдена в C:Program Files (x86)Arduinolibrariesucglib-master: C:Program Files (x86)Arduinolibrariesucglib-master

Неверная библиотека найдена в C:Program Files (x86)Arduinolibrariesutf8rus3: C:Program Files (x86)Arduinolibrariesutf8rus3

Неверная библиотека найдена в C:Program Files (x86)ArduinolibrariesUTFT: C:Program Files (x86)ArduinolibrariesUTFT

Этот отчёт будет иметь больше информации с

включенной опцией Файл -> Настройки ->

«Показать подробный вывод во время компиляции»

  • Войдите на сайт для отправки комментариев

Пнд, 29/05/2017 — 12:30

#50

T.Rook

Offline

Зарегистрирован: 05.03.2016

DAFdriver, да поправьте уже #include «Ucglib.h» на #include <Ucglib.h> !!!!! Вам же уже несколько раз советовали. Или обеспечьте наличие Ucglib.h Ucglib.cpp в папке Вашего скетча.

И наконец-то научитесь правильно вставлять код в сообщение на форуме. Прочтите «Вставка программного кода в комментарий» (одна из приклееных тем вверху)

  • Войдите на сайт для отправки комментариев
  • 1
  • 2
  • 3
  • следующая ›
  • последняя »
  1. Решите эту проблему. Библиотеки стоят, но не уверен что они подходят(EEPROM; EEPROMEX; не нашел в интернете). Версия IDE 1.8.10.Также тестировал в 1.6.5, но там другая ошибка была. Arduino pro mini328.
    Собираюсь сделать вот это https://itnan.ru/post.php?c=1&p=257943
    300р за это)
    Версия 1.6.5

    Arduino: 1.6.5 (Windows 8.1), Плата«Arduino/Genuino Uno»

    C:UsersAdminAppDataLocalTempbuild1769431011113277175.tmp/core.a(wiring.c.o): In function `__vector_16‘:
    D:arduino-1.6.5-r5hardwarearduinoavrcoresarduino/wiring.c:49: multiple definition of `__vector_16′

    sketch_nov11b.cpp.o:D:arduino1.6.5r5/sketch_nov11b.ino:137: first defined here
    collect2.exe: error: ld returned 1 exit status
    Ошибка компиляции.

    Arduino: 1.8.10 (Windows 10), Плата:«Arduino Pro or Pro Mini, ATmega328P (5V, 16 MHz)»

    wiring.c.o (symbol from plugin): In function `__vector_16‘:

    (.text+0x0): multiple definition of `__vector_16′

    sketchVERS1.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here

    collect2.exe: error: ld returned 1 exit status

    Несколько библиотек найдено для «EEPROMex.h»
    Используется: C:UsersAdminDocumentsArduinolibrariesEEPROMEx
    exit status 1
    Ошибка компиляции для платы Arduino Pro or Pro Mini.

    Скетч полностью не размещается в сообщении.

    Вложения:

    • VERS1.ino
      Размер файла:
      14,1 КБ
      Просмотров:
      288
  2. Таймер 0 уже используется Ардуино — переопределите на другой.
    .

  3. Причем на 16 векторе сидит вот это прерывание:

  4. использовать другой таймер (1 или 2) а еще мне кажется очень много лишнего в обработчике прерывания для таймера. Не очень понятно что делает приблуда, но всякие там опросы кнопок, дребезги и многое другое можно сделать обычными ардуиновыми методами при помощи миллис(), таймер наверное нужен для какого-то уз-датчика расстояния или типа того, для которого возможно существует готовая ардуино-библиотека, в которой и можно подсмотреть как делать чтоб работало.

  5. да, в прерывании таймера просто какая-то дичь происходит, так делать нельзя в принципе. только самые критичные операции должны быть там.

  6. переписывать самому всё заново, с нуля.

  7. при том, что с ультразвуком можно работать напрямую с МК. Лишняя прилада нафик не нужна.

Понравилась статья? Поделить с друзьями:
  • First class trouble ошибка сети
  • First class trouble ошибка unreal engine 4
  • First chance error calling into acme server retrying with new nonce
  • First battalion ошибка 997 как исправить
  • Flash id error flash id not found in database