Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic connection problem (Read 526 times)
ahmet
Newbies
*
Offline


Posts: 6
Joined: Oct 23rd, 2016
connection problem
Oct 6th, 2019 at 4:58pm
Print Post  
hello mfrc522 does not recognize the red byte under the byte definitions in the mfrc522 file in the program I will use for the module and does not create a connection between the cpp file and the header file.
What can I do.
Code
Select All
Compiling 'nfc' for 'Arduino/Genuino Mega w/ ATmega2560 (Mega 2560)'
Build Folder:
Summary: Header=1 Prototypes=3 Imports=0
Additional Defines:
Architecture Tools: .4.0-atmel3.6.1-arduino2/bin/"
Api: 1903180
Sketch Book: "file:///C:/Users/ahmet/Documents/Arduino"
Sketch Include Paths
Core Include Paths
Include Path 6.23/cores/arduino"
Include Path 6.23/variants/mega"

Deep search for libraries ...
el3.6.1-arduino2\bin\avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega2560   -DF_CPU=16000000L -DARDUINO=10807 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR ores\arduino" ariants\mega"  -o "nul"
el3.6.1-arduino2\bin\avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega2560   -DF_CPU=16000000L -DARDUINO=10807 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR ores\arduino" ariants\mega" ibraries\SPI\src"  -o "nul"
el3.6.1-arduino2\bin\avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega2560   -DF_CPU=16000000L -DARDUINO=10807 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR ores\arduino" ariants\mega" ibraries\SPI\src" -I"C:\Users\ahmet\Documents\Arduino\libraries\MFRC522-1.4.5\src"  -o "nul"
el3.6.1-arduino2\bin\avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega2560   -DF_CPU=16000000L -DARDUINO=10807 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR ores\arduino" ariants\mega" ibraries\SPI\src" -I"C:\Users\ahmet\Documents\Arduino\libraries\MFRC522-1.4.5\src" raries\SPI\src\SPI.cpp" -o "nul"
Using previous search results: C:\Users\ahmet\Documents\Arduino\libraries\MFRC522-1.4.5\src\MFRC522.cpp
Using previous search results:

Building variant ...

  Using previously compiled variant

Building core ...

Building libraries ...

Using library SPI version 1.0 in folder 6.23/libraries/SPI"
  Using previously compiled file: pp.o

Using library MFRC522-1.4.5 version 1.4.5 in folder "file:///C:/Users/ahmet/Documents/Arduino/libraries/MFRC522-1.4.5"
  Using previously compiled file: .4.5\MFRC522.cpp.o
  Using previously compiled file: .4.5\MFRC522Extended.cpp.o

Building project code ...
el3.6.1-arduino2/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10807 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR ores\arduino" ariants\mega" ibraries\SPI\src" -I"C:\Users\ahmet\Documents\Arduino\libraries\MFRC522-1.4.5\src" -I"C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\Extensions\u52bpzrd.mf1\Micro Platforms\visualmicro\ide\libraries" -I"C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\Extensions\u52bpzrd.mf1\Micro Platforms\default\debuggers" ibraries" -I"C:\Users\ahmet\Documents\Arduino\libraries"  -o o"

Linking it all together ...
# Coping cached core e3cf6d\core.a to C:\Users\ahmet\AppData\Local\Temp\VMBuilds\nfc\mega_atmega2560\Release\core.a

el3.6.1-arduino2/bin/avr-gcc" -w -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections,--relax -mmcu=atmega2560 -o elf" "nfc.cpp.o" "SPI\SPI.cpp.o" "MFRC522-1.4.5\MFRC522.cpp.o" "MFRC522-1.4.5\MFRC522Extended.cpp.o" "C:\Users\ahmet\AppData\Local\Temp\VMBuilds\nfc\mega_atmega2560\Release/core.a" "-LC:\Users\ahmet\AppData\Local\Temp\VMBuilds\nfc\mega_atmega2560\Release" -lm
## recipe.objcopy.eep.pattern
el3.6.1-arduino2/bin/avr-objcopy" -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 elf" eep"
## recipe.objcopy.hex.pattern
el3.6.1-arduino2/bin/avr-objcopy" -O ihex -R .eeprom elf" hex"

Program nfc size: 7.982 bytes (used 3% of a 253.952 byte maximum) (2,32 secs)
Minimum Memory Usage: 328 bytes (4% of a 8192 byte maximum)

# Copy build result to 'Project>Property Pages>Intermediate Directory'
# Destination: /

 

« Last Edit: Oct 6th, 2019 at 6:53pm by Tim@Visual Micro »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: connection problem
Reply #1 - Oct 6th, 2019 at 6:56pm
Print Post  
Hi,

This build output shows that the build/compile is working OK.

It sounds like you are asking about an intellisense error. The intellisense can be less accurate than the build/compile.

Please save your work then zip and email to the address in yellow above. This will allow us to understand where your source files are located within the project and what you are trying to do. Include a link to this thread in your email.
« Last Edit: Oct 6th, 2019 at 6:56pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint