[Risolto] I2C and ADS1115 communication problem with STM32F103C8T6

Post here all questions related to LibMaple core if you can't find a relevant section!
Domenico
Posts: 16
Joined: Thu Jun 04, 2020 5:36 pm
Answers: 1

Re: I2C and ADS1115 communication problem with STM32F103C8T6

Post by Domenico »

I use Roger's version of STM32duino.
To avoid misunderstandings, this is what I read at compile time:

Code: Select all

D:\arduino-1.8.12\arduino-builder -dump-prefs -logger=machine -hardware D:\arduino-1.8.12\hardware -hardware C:\Users\Perito Industriale\AppData\Local\Arduino15\packages -hardware C:\Users\Perito Industriale\Documents\Arduino\hardware -tools D:\arduino-1.8.12\tools-builder -tools D:\arduino-1.8.12\hardware\tools\avr -tools C:\Users\Perito Industriale\AppData\Local\Arduino15\packages -built-in-libraries D:\arduino-1.8.12\libraries -libraries C:\Users\Perito Industriale\Documents\Arduino\libraries -fqbn=Arduino_STM32:STM32F1:genericSTM32F103C:device_variant=STM32F103C8,upload_method=serialMethod,cpu_speed=speed_72mhz,opt=osstd -vid-pid=0403_6001 -ide-version=10812 -build-path C:\Users\PERITO~1\AppData\Local\Temp\arduino_build_838209 -warnings=none -build-cache C:\Users\PERITO~1\AppData\Local\Temp\arduino_cache_737598 -prefs=build.warn_data_percentage=75 -verbose C:\Users\Perito Industriale\Desktop\STM32F103C8T6_con_ADC1115\STM32F103C8T6_con_ADC1115.ino
D:\arduino-1.8.12\arduino-builder -compile -logger=machine -hardware D:\arduino-1.8.12\hardware -hardware C:\Users\Perito Industriale\AppData\Local\Arduino15\packages -hardware C:\Users\Perito Industriale\Documents\Arduino\hardware -tools D:\arduino-1.8.12\tools-builder -tools D:\arduino-1.8.12\hardware\tools\avr -tools C:\Users\Perito Industriale\AppData\Local\Arduino15\packages -built-in-libraries D:\arduino-1.8.12\libraries -libraries C:\Users\Perito Industriale\Documents\Arduino\libraries -fqbn=Arduino_STM32:STM32F1:genericSTM32F103C:device_variant=STM32F103C8,upload_method=serialMethod,cpu_speed=speed_72mhz,opt=osstd -vid-pid=0403_6001 -ide-version=10812 -build-path C:\Users\PERITO~1\AppData\Local\Temp\arduino_build_838209 -warnings=none -build-cache C:\Users\PERITO~1\AppData\Local\Temp\arduino_cache_737598 -prefs=build.warn_data_percentage=75 -verbose C:\Users\Perito Industriale\Desktop\STM32F103C8T6_con_ADC1115\STM32F103C8T6_con_ADC1115.ino
Using board 'genericSTM32F103C' from platform in folder: C:\Users\Perito Industriale\Documents\Arduino\hardware\Arduino_STM32\STM32F1
Using core 'maple' from platform in folder: C:\Users\Perito Industriale\Documents\Arduino\hardware\Arduino_STM32\STM32F1
Detecting libraries used...
"C:\\Users\\Perito Industriale\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-g++" -c -g -Os -w -DDEBUG_LEVEL=DEBUG_NONE -std=gnu++11 -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -DBOARD_generic_stm32f103c -DVECT_TAB_ADDR=0x8000000 -DERROR_LED_PORT=GPIOC -DERROR_LED_PIN=13 -w -x c++ -E -CC -mcpu=cortex-m3 -DF_CPU=72000000L -DARDUINO=10812 -DARDUINO_GENERIC_STM32F103C -DARDUINO_ARCH_STM32F1 -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG -DMCU_STM32F103C8 -mthumb -march=armv7-m -D__STM32F1__ -DARDUINO_ARCH_STM32 -DMCU_STM32F103C8 -mthumb -march=armv7-m -D__STM32F1__ -DARDUINO_ARCH_STM32 "-IC:\\Users\\Perito Industriale\\Documents\\Arduino\\hardware\\Arduino_STM32\\STM32F1\\system/libmaple" "-IC:\\Users\\Perito Industriale\\Documents\\Arduino\\hardware\\Arduino_STM32\\STM32F1\\system/libmaple/include" "-IC:\\Users\\Perito Industriale\\Documents\\Arduino\\hardware\\Arduino_STM32\\STM32F1\\system/libmaple/stm32f1/include" "-IC:\\Users\\Perito Industriale\\Documents\\Arduino\\hardware\\Arduino_STM32\\STM32F1\\system/libmaple/usb/stm32f1" "-IC:\\Users\\Perito Industriale\\Documents\\Arduino\\hardware\\Arduino_STM32\\STM32F1\\system/libmaple/usb/usb_lib" "-IC:\\Users\\Perito Industriale\\Documents\\Arduino\\hardware\\Arduino_STM32\\STM32F1\\cores\\maple" "-IC:\\Users\\Perito Industriale\\Documents\\Arduino\\hardware\\Arduino_STM32\\STM32F1\\variants\\generic_stm32f103c" "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\sketch\\STM32F103C8T6_con_ADC1115.ino.cpp" -o nul
Alternatives for Wire.h: [WireSlave@1.0 Wire@1.0]
ResolveLibrary(Wire.h)
  -> candidates: [WireSlave@1.0 Wire@1.0]
"C:\\Users\\Perito Industriale\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-g++" -c -g -Os -w -DDEBUG_LEVEL=DEBUG_NONE -std=gnu++11 -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -DBOARD_generic_stm32f103c -DVECT_TAB_ADDR=0x8000000 -DERROR_LED_PORT=GPIOC -DERROR_LED_PIN=13 -w -x c++ -E -CC -mcpu=cortex-m3 -DF_CPU=72000000L -DARDUINO=10812 -DARDUINO_GENERIC_STM32F103C -DARDUINO_ARCH_STM32F1 -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG -DMCU_STM32F103C8 -mthumb -march=armv7-m -D__STM32F1__ -DARDUINO_ARCH_STM32 -DMCU_STM32F103C8 -mthumb -march=armv7-m -D__STM32F1__ -DARDUINO_ARCH_STM32 "-IC:\\Users\\Perito Industriale\\Documents\\Arduino\\hardware\\Arduino_STM32\\STM32F1\\system/libmaple" "-IC:\\Users\\Perito Industriale\\Documents\\Arduino\\hardware\\Arduino_STM32\\STM32F1\\system/libmaple/include" "-IC:\\Users\\Perito Industriale\\Documents\\Arduino\\hardware\\Arduino_STM32\\STM32F1\\system/libmaple/stm32f1/include" "-IC:\\Users\\Perito Industriale\\Documents\\Arduino\\hardware\\Arduino_STM32\\STM32F1\\system/libmaple/usb/stm32f1" "-IC:\\Users\\Perito Industriale\\Documents\\Arduino\\hardware\\Arduino_STM32\\STM32F1\\system/libmaple/usb/usb_lib" "-IC:\\Users\\Perito Industriale\\Documents\\Arduino\\hardware\\Arduino_STM32\\STM32F1\\cores\\maple" "-IC:\\Users\\Perito Industriale\\Documents\\Arduino\\hardware\\Arduino_STM32\\STM32F1\\variants\\generic_stm32f103c" "-IC:\\Users\\Perito Industriale\\Documents\\Arduino\\hardware\\Arduino_STM32\\STM32F1\\libraries\\Wire" "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\sketch\\STM32F103C8T6_con_ADC1115.ino.cpp" -o nul
Alternatives for Adafruit_ADS1015.h: [Adafruit_ADS1X15@1.1.1]
ResolveLibrary(Adafruit_ADS1015.h)
  -> candidates: [Adafruit_ADS1X15@1.1.1]
"C:\\Users\\Perito Industriale\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-g++" -c -g -Os -w -DDEBUG_LEVEL=DEBUG_NONE -std=gnu++11 -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -DBOARD_generic_stm32f103c -DVECT_TAB_ADDR=0x8000000 -DERROR_LED_PORT=GPIOC -DERROR_LED_PIN=13 -w -x c++ -E -CC -mcpu=cortex-m3 -DF_CPU=72000000L -DARDUINO=10812 -DARDUINO_GENERIC_STM32F103C -DARDUINO_ARCH_STM32F1 -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG -DMCU_STM32F103C8 -mthumb -march=armv7-m -D__STM32F1__ -DARDUINO_ARCH_STM32 -DMCU_STM32F103C8 -mthumb -march=armv7-m -D__STM32F1__ -DARDUINO_ARCH_STM32 "-IC:\\Users\\Perito Industriale\\Documents\\Arduino\\hardware\\Arduino_STM32\\STM32F1\\system/libmaple" "-IC:\\Users\\Perito Industriale\\Documents\\Arduino\\hardware\\Arduino_STM32\\STM32F1\\system/libmaple/include" "-IC:\\Users\\Perito Industriale\\Documents\\Arduino\\hardware\\Arduino_STM32\\STM32F1\\system/libmaple/stm32f1/include" "-IC:\\Users\\Perito Industriale\\Documents\\Arduino\\hardware\\Arduino_STM32\\STM32F1\\system/libmaple/usb/stm32f1" "-IC:\\Users\\Perito Industriale\\Documents\\Arduino\\hardware\\Arduino_STM32\\STM32F1\\system/libmaple/usb/usb_lib" "-IC:\\Users\\Perito Industriale\\Documents\\Arduino\\hardware\\Arduino_STM32\\STM32F1\\cores\\maple" "-IC:\\Users\\Perito Industriale\\Documents\\Arduino\\hardware\\Arduino_STM32\\STM32F1\\variants\\generic_stm32f103c" "-IC:\\Users\\Perito Industriale\\Documents\\Arduino\\hardware\\Arduino_STM32\\STM32F1\\libraries\\Wire" "-IC:\\Users\\Perito Industriale\\Documents\\Arduino\\libraries\\Adafruit_ADS1X15" "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\sketch\\STM32F103C8T6_con_ADC1115.ino.cpp" -o nul
Using cached library dependencies for file: C:\Users\Perito Industriale\Documents\Arduino\hardware\Arduino_STM32\STM32F1\libraries\Wire\SoftWire.cpp
Using cached library dependencies for file: C:\Users\Perito Industriale\Documents\Arduino\hardware\Arduino_STM32\STM32F1\libraries\Wire\Wire.cpp
Using cached library dependencies for file: C:\Users\Perito Industriale\Documents\Arduino\hardware\Arduino_STM32\STM32F1\libraries\Wire\utility\WireBase.cpp
Using cached library dependencies for file: C:\Users\Perito Industriale\Documents\Arduino\libraries\Adafruit_ADS1X15\Adafruit_ADS1015.cpp
Generating function prototypes...
"C:\\Users\\Perito Industriale\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-g++" -c -g -Os -w -DDEBUG_LEVEL=DEBUG_NONE -std=gnu++11 -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -DBOARD_generic_stm32f103c -DVECT_TAB_ADDR=0x8000000 -DERROR_LED_PORT=GPIOC -DERROR_LED_PIN=13 -w -x c++ -E -CC -mcpu=cortex-m3 -DF_CPU=72000000L -DARDUINO=10812 -DARDUINO_GENERIC_STM32F103C -DARDUINO_ARCH_STM32F1 -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG -DMCU_STM32F103C8 -mthumb -march=armv7-m -D__STM32F1__ -DARDUINO_ARCH_STM32 -DMCU_STM32F103C8 -mthumb -march=armv7-m -D__STM32F1__ -DARDUINO_ARCH_STM32 "-IC:\\Users\\Perito Industriale\\Documents\\Arduino\\hardware\\Arduino_STM32\\STM32F1\\system/libmaple" "-IC:\\Users\\Perito Industriale\\Documents\\Arduino\\hardware\\Arduino_STM32\\STM32F1\\system/libmaple/include" "-IC:\\Users\\Perito Industriale\\Documents\\Arduino\\hardware\\Arduino_STM32\\STM32F1\\system/libmaple/stm32f1/include" "-IC:\\Users\\Perito Industriale\\Documents\\Arduino\\hardware\\Arduino_STM32\\STM32F1\\system/libmaple/usb/stm32f1" "-IC:\\Users\\Perito Industriale\\Documents\\Arduino\\hardware\\Arduino_STM32\\STM32F1\\system/libmaple/usb/usb_lib" "-IC:\\Users\\Perito Industriale\\Documents\\Arduino\\hardware\\Arduino_STM32\\STM32F1\\cores\\maple" "-IC:\\Users\\Perito Industriale\\Documents\\Arduino\\hardware\\Arduino_STM32\\STM32F1\\variants\\generic_stm32f103c" "-IC:\\Users\\Perito Industriale\\Documents\\Arduino\\hardware\\Arduino_STM32\\STM32F1\\libraries\\Wire" "-IC:\\Users\\Perito Industriale\\Documents\\Arduino\\libraries\\Adafruit_ADS1X15" "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\sketch\\STM32F103C8T6_con_ADC1115.ino.cpp" -o "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\preproc\\ctags_target_for_gcc_minus_e.cpp"
"D:\\arduino-1.8.12\\tools-builder\\ctags\\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\preproc\\ctags_target_for_gcc_minus_e.cpp"
Sto compilando lo sketch...
"C:\\Users\\Perito Industriale\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-g++" -c -g -Os -w -DDEBUG_LEVEL=DEBUG_NONE -std=gnu++11 -MMD -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -DBOARD_generic_stm32f103c -DVECT_TAB_ADDR=0x8000000 -DERROR_LED_PORT=GPIOC -DERROR_LED_PIN=13 -mcpu=cortex-m3 -DF_CPU=72000000L -DARDUINO=10812 -DARDUINO_GENERIC_STM32F103C -DARDUINO_ARCH_STM32F1 -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG -DMCU_STM32F103C8 -mthumb -march=armv7-m -D__STM32F1__ -DARDUINO_ARCH_STM32 -DMCU_STM32F103C8 -mthumb -march=armv7-m -D__STM32F1__ -DARDUINO_ARCH_STM32 "-IC:\\Users\\Perito Industriale\\Documents\\Arduino\\hardware\\Arduino_STM32\\STM32F1\\system/libmaple" "-IC:\\Users\\Perito Industriale\\Documents\\Arduino\\hardware\\Arduino_STM32\\STM32F1\\system/libmaple/include" "-IC:\\Users\\Perito Industriale\\Documents\\Arduino\\hardware\\Arduino_STM32\\STM32F1\\system/libmaple/stm32f1/include" "-IC:\\Users\\Perito Industriale\\Documents\\Arduino\\hardware\\Arduino_STM32\\STM32F1\\system/libmaple/usb/stm32f1" "-IC:\\Users\\Perito Industriale\\Documents\\Arduino\\hardware\\Arduino_STM32\\STM32F1\\system/libmaple/usb/usb_lib" "-IC:\\Users\\Perito Industriale\\Documents\\Arduino\\hardware\\Arduino_STM32\\STM32F1\\cores\\maple" "-IC:\\Users\\Perito Industriale\\Documents\\Arduino\\hardware\\Arduino_STM32\\STM32F1\\variants\\generic_stm32f103c" "-IC:\\Users\\Perito Industriale\\Documents\\Arduino\\hardware\\Arduino_STM32\\STM32F1\\libraries\\Wire" "-IC:\\Users\\Perito Industriale\\Documents\\Arduino\\libraries\\Adafruit_ADS1X15" "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\sketch\\STM32F103C8T6_con_ADC1115.ino.cpp" -o "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\sketch\\STM32F103C8T6_con_ADC1115.ino.cpp.o"
Compiling libraries...
Compiling library "Wire"
Uso il file precedentemente compilato: C:\Users\PERITO~1\AppData\Local\Temp\arduino_build_838209\libraries\Wire\SoftWire.cpp.o
Uso il file precedentemente compilato: C:\Users\PERITO~1\AppData\Local\Temp\arduino_build_838209\libraries\Wire\Wire.cpp.o
Uso il file precedentemente compilato: C:\Users\PERITO~1\AppData\Local\Temp\arduino_build_838209\libraries\Wire\utility\WireBase.cpp.o
Compiling library "Adafruit_ADS1X15"
Uso il file precedentemente compilato: C:\Users\PERITO~1\AppData\Local\Temp\arduino_build_838209\libraries\Adafruit_ADS1X15\Adafruit_ADS1015.cpp.o
Compiling core...
Uso il file precedentemente compilato: C:\Users\PERITO~1\AppData\Local\Temp\arduino_build_838209\core\wirish\start.S.o
Uso il file precedentemente compilato: C:\Users\PERITO~1\AppData\Local\Temp\arduino_build_838209\core\wirish\start_c.c.o
Uso il file precedentemente compilato: C:\Users\PERITO~1\AppData\Local\Temp\arduino_build_838209\core\wirish\syscalls.c.o
Uso il file precedentemente compilato: C:\Users\PERITO~1\AppData\Local\Temp\arduino_build_838209\core\board.cpp.o
Uso il file precedentemente compilato: C:\Users\PERITO~1\AppData\Local\Temp\arduino_build_838209\core\wirish\boards_setup.cpp.o
Uso il file precedentemente compilato: C:\Users\PERITO~1\AppData\Local\Temp\arduino_build_838209\core\wirish\boards.cpp.o
Uso il file precedentemente compilato: C:\Users\PERITO~1\AppData\Local\Temp\arduino_build_838209\core\libmaple\exc.S.o
Uso il file precedentemente compilato: C:\Users\PERITO~1\AppData\Local\Temp\arduino_build_838209\core\libmaple\stm32f1\performance\vector_table.S.o
Uso il file precedentemente compilato: C:\Users\PERITO~1\AppData\Local\Temp\arduino_build_838209\core\libmaple\stm32f1\performance\isrs.S.o
Uso il file precedentemente compilato: C:\Users\PERITO~1\AppData\Local\Temp\arduino_build_838209\core\hooks.c.o
Uso il file precedentemente compilato: C:\Users\PERITO~1\AppData\Local\Temp\arduino_build_838209\core\itoa.c.o
Uso il file precedentemente compilato: C:\Users\PERITO~1\AppData\Local\Temp\arduino_build_838209\core\avr\dtostrf.c.o
Uso il file precedentemente compilato: C:\Users\PERITO~1\AppData\Local\Temp\arduino_build_838209\core\libmaple\adc.c.o
Uso il file precedentemente compilato: C:\Users\PERITO~1\AppData\Local\Temp\arduino_build_838209\core\libmaple\adc_f1.c.o
Uso il file precedentemente compilato: C:\Users\PERITO~1\AppData\Local\Temp\arduino_build_838209\core\libmaple\bkp_f1.c.o
Uso il file precedentemente compilato: C:\Users\PERITO~1\AppData\Local\Temp\arduino_build_838209\core\libmaple\dac.c.o
Uso il file precedentemente compilato: C:\Users\PERITO~1\AppData\Local\Temp\arduino_build_838209\core\libmaple\dma_f1.c.o
Uso il file precedentemente compilato: C:\Users\PERITO~1\AppData\Local\Temp\arduino_build_838209\core\libmaple\exti.c.o
Uso il file precedentemente compilato: C:\Users\PERITO~1\AppData\Local\Temp\arduino_build_838209\core\libmaple\exti_f1.c.o
Uso il file precedentemente compilato: C:\Users\PERITO~1\AppData\Local\Temp\arduino_build_838209\core\libmaple\flash.c.o
Uso il file precedentemente compilato: C:\Users\PERITO~1\AppData\Local\Temp\arduino_build_838209\core\libmaple\fsmc_f1.c.o
Uso il file precedentemente compilato: C:\Users\PERITO~1\AppData\Local\Temp\arduino_build_838209\core\libmaple\gpio.c.o
Uso il file precedentemente compilato: C:\Users\PERITO~1\AppData\Local\Temp\arduino_build_838209\core\libmaple\gpio_f1.c.o
Uso il file precedentemente compilato: C:\Users\PERITO~1\AppData\Local\Temp\arduino_build_838209\core\libmaple\i2c.c.o
"C:\\Users\\Perito Industriale\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-gcc" -c -g -Os -w -DDEBUG_LEVEL=DEBUG_NONE -std=gnu11 -MMD -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -DBOARD_generic_stm32f103c -DVECT_TAB_ADDR=0x8000000 -DERROR_LED_PORT=GPIOC -DERROR_LED_PIN=13 -mcpu=cortex-m3 -DF_CPU=72000000L -DARDUINO=10812 -DARDUINO_GENERIC_STM32F103C -DARDUINO_ARCH_STM32F1 -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG -DMCU_STM32F103C8 -mthumb -march=armv7-m -D__STM32F1__ -DARDUINO_ARCH_STM32 "-IC:\\Users\\Perito Industriale\\Documents\\Arduino\\hardware\\Arduino_STM32\\STM32F1\\system/libmaple" "-IC:\\Users\\Perito Industriale\\Documents\\Arduino\\hardware\\Arduino_STM32\\STM32F1\\system/libmaple/include" "-IC:\\Users\\Perito Industriale\\Documents\\Arduino\\hardware\\Arduino_STM32\\STM32F1\\system/libmaple/stm32f1/include" "-IC:\\Users\\Perito Industriale\\Documents\\Arduino\\hardware\\Arduino_STM32\\STM32F1\\system/libmaple/usb/stm32f1" "-IC:\\Users\\Perito Industriale\\Documents\\Arduino\\hardware\\Arduino_STM32\\STM32F1\\system/libmaple/usb/usb_lib" "-IC:\\Users\\Perito Industriale\\Documents\\Arduino\\hardware\\Arduino_STM32\\STM32F1\\cores\\maple" "-IC:\\Users\\Perito Industriale\\Documents\\Arduino\\hardware\\Arduino_STM32\\STM32F1\\variants\\generic_stm32f103c" "C:\\Users\\Perito Industriale\\Documents\\Arduino\\hardware\\Arduino_STM32\\STM32F1\\cores\\maple\\libmaple\\i2c_f1.c" -o "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\libmaple\\i2c_f1.c.o"
Uso il file precedentemente compilato: C:\Users\PERITO~1\AppData\Local\Temp\arduino_build_838209\core\libmaple\dma.c.o
Uso il file precedentemente compilato: C:\Users\PERITO~1\AppData\Local\Temp\arduino_build_838209\core\libmaple\iwdg.c.o
Uso il file precedentemente compilato: C:\Users\PERITO~1\AppData\Local\Temp\arduino_build_838209\core\libmaple\nvic.c.o
Uso il file precedentemente compilato: C:\Users\PERITO~1\AppData\Local\Temp\arduino_build_838209\core\libmaple\pwr.c.o
Uso il file precedentemente compilato: C:\Users\PERITO~1\AppData\Local\Temp\arduino_build_838209\core\libmaple\rcc.c.o
Uso il file precedentemente compilato: C:\Users\PERITO~1\AppData\Local\Temp\arduino_build_838209\core\libmaple\rcc_f1.c.o
Uso il file precedentemente compilato: C:\Users\PERITO~1\AppData\Local\Temp\arduino_build_838209\core\libmaple\spi.c.o
Uso il file precedentemente compilato: C:\Users\PERITO~1\AppData\Local\Temp\arduino_build_838209\core\libmaple\spi_f1.c.o
Uso il file precedentemente compilato: C:\Users\PERITO~1\AppData\Local\Temp\arduino_build_838209\core\libmaple\systick.c.o
Uso il file precedentemente compilato: C:\Users\PERITO~1\AppData\Local\Temp\arduino_build_838209\core\libmaple\timer.c.o
Uso il file precedentemente compilato: C:\Users\PERITO~1\AppData\Local\Temp\arduino_build_838209\core\libmaple\timer_f1.c.o
Uso il file precedentemente compilato: C:\Users\PERITO~1\AppData\Local\Temp\arduino_build_838209\core\libmaple\usart.c.o
Uso il file precedentemente compilato: C:\Users\PERITO~1\AppData\Local\Temp\arduino_build_838209\core\libmaple\usart_f1.c.o
Uso il file precedentemente compilato: C:\Users\PERITO~1\AppData\Local\Temp\arduino_build_838209\core\libmaple\usart_private.c.o
Uso il file precedentemente compilato: C:\Users\PERITO~1\AppData\Local\Temp\arduino_build_838209\core\libmaple\util.c.o
Uso il file precedentemente compilato: C:\Users\PERITO~1\AppData\Local\Temp\arduino_build_838209\core\libmaple\usb\stm32f1\usb.c.o
Uso il file precedentemente compilato: C:\Users\PERITO~1\AppData\Local\Temp\arduino_build_838209\core\libmaple\usb\stm32f1\usb_cdcacm.c.o
Uso il file precedentemente compilato: C:\Users\PERITO~1\AppData\Local\Temp\arduino_build_838209\core\libmaple\usb\stm32f1\usb_reg_map.c.o
Uso il file precedentemente compilato: C:\Users\PERITO~1\AppData\Local\Temp\arduino_build_838209\core\libmaple\usb\usb_lib\usb_core.c.o
Uso il file precedentemente compilato: C:\Users\PERITO~1\AppData\Local\Temp\arduino_build_838209\core\libmaple\usb\usb_lib\usb_init.c.o
Uso il file precedentemente compilato: C:\Users\PERITO~1\AppData\Local\Temp\arduino_build_838209\core\libmaple\usb\usb_lib\usb_mem.c.o
Uso il file precedentemente compilato: C:\Users\PERITO~1\AppData\Local\Temp\arduino_build_838209\core\libmaple\usb\usb_lib\usb_regs.c.o
Uso il file precedentemente compilato: C:\Users\PERITO~1\AppData\Local\Temp\arduino_build_838209\core\stm32f1\util_hooks.c.o
Uso il file precedentemente compilato: C:\Users\PERITO~1\AppData\Local\Temp\arduino_build_838209\core\HardwareSerial.cpp.o
Uso il file precedentemente compilato: C:\Users\PERITO~1\AppData\Local\Temp\arduino_build_838209\core\HardwareTimer.cpp.o
Uso il file precedentemente compilato: C:\Users\PERITO~1\AppData\Local\Temp\arduino_build_838209\core\Print.cpp.o
Uso il file precedentemente compilato: C:\Users\PERITO~1\AppData\Local\Temp\arduino_build_838209\core\IPAddress.cpp.o
Uso il file precedentemente compilato: C:\Users\PERITO~1\AppData\Local\Temp\arduino_build_838209\core\WString.cpp.o
Uso il file precedentemente compilato: C:\Users\PERITO~1\AppData\Local\Temp\arduino_build_838209\core\cxxabi-compat.cpp.o
Uso il file precedentemente compilato: C:\Users\PERITO~1\AppData\Local\Temp\arduino_build_838209\core\ext_interrupts.cpp.o
Uso il file precedentemente compilato: C:\Users\PERITO~1\AppData\Local\Temp\arduino_build_838209\core\main.cpp.o
Uso il file precedentemente compilato: C:\Users\PERITO~1\AppData\Local\Temp\arduino_build_838209\core\new.cpp.o
Uso il file precedentemente compilato: C:\Users\PERITO~1\AppData\Local\Temp\arduino_build_838209\core\pwm.cpp.o
Uso il file precedentemente compilato: C:\Users\PERITO~1\AppData\Local\Temp\arduino_build_838209\core\sdio.cpp.o
Uso il file precedentemente compilato: C:\Users\PERITO~1\AppData\Local\Temp\arduino_build_838209\core\tone.cpp.o
Uso il file precedentemente compilato: C:\Users\PERITO~1\AppData\Local\Temp\arduino_build_838209\core\usb_serial.cpp.o
Uso il file precedentemente compilato: C:\Users\PERITO~1\AppData\Local\Temp\arduino_build_838209\core\wirish_analog.cpp.o
Uso il file precedentemente compilato: C:\Users\PERITO~1\AppData\Local\Temp\arduino_build_838209\core\wirish_digital.cpp.o
Uso il file precedentemente compilato: C:\Users\PERITO~1\AppData\Local\Temp\arduino_build_838209\core\wirish_math.cpp.o
Uso il file precedentemente compilato: C:\Users\PERITO~1\AppData\Local\Temp\arduino_build_838209\core\wirish_shift.cpp.o
Uso il file precedentemente compilato: C:\Users\PERITO~1\AppData\Local\Temp\arduino_build_838209\core\wirish_time.cpp.o
Uso il file precedentemente compilato: C:\Users\PERITO~1\AppData\Local\Temp\arduino_build_838209\core\stm32f1\wiring_pulse_f1.cpp.o
Uso il file precedentemente compilato: C:\Users\PERITO~1\AppData\Local\Temp\arduino_build_838209\core\stm32f1\wirish_debug.cpp.o
Uso il file precedentemente compilato: C:\Users\PERITO~1\AppData\Local\Temp\arduino_build_838209\core\stm32f1\wirish_digital_f1.cpp.o
Uso il file precedentemente compilato: C:\Users\PERITO~1\AppData\Local\Temp\arduino_build_838209\core\Stream.cpp.o
"C:\\Users\\Perito Industriale\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-ar" rcs "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\core.a" "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\libmaple\\exc.S.o"
"C:\\Users\\Perito Industriale\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-ar" rcs "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\core.a" "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\libmaple\\stm32f1\\performance\\isrs.S.o"
"C:\\Users\\Perito Industriale\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-ar" rcs "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\core.a" "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\libmaple\\stm32f1\\performance\\vector_table.S.o"
"C:\\Users\\Perito Industriale\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-ar" rcs "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\core.a" "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\avr\\dtostrf.c.o"
"C:\\Users\\Perito Industriale\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-ar" rcs "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\core.a" "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\hooks.c.o"
"C:\\Users\\Perito Industriale\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-ar" rcs "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\core.a" "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\itoa.c.o"
"C:\\Users\\Perito Industriale\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-ar" rcs "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\core.a" "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\libmaple\\adc.c.o"
"C:\\Users\\Perito Industriale\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-ar" rcs "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\core.a" "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\libmaple\\adc_f1.c.o"
"C:\\Users\\Perito Industriale\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-ar" rcs "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\core.a" "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\libmaple\\bkp_f1.c.o"
"C:\\Users\\Perito Industriale\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-ar" rcs "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\core.a" "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\libmaple\\dac.c.o"
"C:\\Users\\Perito Industriale\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-ar" rcs "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\core.a" "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\libmaple\\dma.c.o"
"C:\\Users\\Perito Industriale\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-ar" rcs "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\core.a" "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\libmaple\\dma_f1.c.o"
"C:\\Users\\Perito Industriale\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-ar" rcs "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\core.a" "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\libmaple\\exti.c.o"
"C:\\Users\\Perito Industriale\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-ar" rcs "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\core.a" "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\libmaple\\exti_f1.c.o"
"C:\\Users\\Perito Industriale\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-ar" rcs "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\core.a" "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\libmaple\\flash.c.o"
"C:\\Users\\Perito Industriale\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-ar" rcs "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\core.a" "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\libmaple\\fsmc_f1.c.o"
"C:\\Users\\Perito Industriale\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-ar" rcs "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\core.a" "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\libmaple\\gpio.c.o"
"C:\\Users\\Perito Industriale\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-ar" rcs "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\core.a" "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\libmaple\\gpio_f1.c.o"
"C:\\Users\\Perito Industriale\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-ar" rcs "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\core.a" "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\libmaple\\i2c.c.o"
"C:\\Users\\Perito Industriale\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-ar" rcs "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\core.a" "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\libmaple\\i2c_f1.c.o"
"C:\\Users\\Perito Industriale\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-ar" rcs "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\core.a" "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\libmaple\\iwdg.c.o"
"C:\\Users\\Perito Industriale\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-ar" rcs "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\core.a" "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\libmaple\\nvic.c.o"
"C:\\Users\\Perito Industriale\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-ar" rcs "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\core.a" "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\libmaple\\pwr.c.o"
"C:\\Users\\Perito Industriale\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-ar" rcs "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\core.a" "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\libmaple\\rcc.c.o"
"C:\\Users\\Perito Industriale\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-ar" rcs "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\core.a" "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\libmaple\\rcc_f1.c.o"
"C:\\Users\\Perito Industriale\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-ar" rcs "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\core.a" "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\libmaple\\spi.c.o"
"C:\\Users\\Perito Industriale\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-ar" rcs "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\core.a" "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\libmaple\\spi_f1.c.o"
"C:\\Users\\Perito Industriale\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-ar" rcs "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\core.a" "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\libmaple\\systick.c.o"
"C:\\Users\\Perito Industriale\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-ar" rcs "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\core.a" "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\libmaple\\timer.c.o"
"C:\\Users\\Perito Industriale\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-ar" rcs "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\core.a" "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\libmaple\\timer_f1.c.o"
"C:\\Users\\Perito Industriale\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-ar" rcs "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\core.a" "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\libmaple\\usart.c.o"
"C:\\Users\\Perito Industriale\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-ar" rcs "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\core.a" "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\libmaple\\usart_f1.c.o"
"C:\\Users\\Perito Industriale\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-ar" rcs "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\core.a" "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\libmaple\\usart_private.c.o"
"C:\\Users\\Perito Industriale\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-ar" rcs "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\core.a" "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\libmaple\\usb\\stm32f1\\usb.c.o"
"C:\\Users\\Perito Industriale\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-ar" rcs "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\core.a" "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\libmaple\\usb\\stm32f1\\usb_cdcacm.c.o"
"C:\\Users\\Perito Industriale\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-ar" rcs "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\core.a" "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\libmaple\\usb\\stm32f1\\usb_reg_map.c.o"
"C:\\Users\\Perito Industriale\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-ar" rcs "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\core.a" "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\libmaple\\usb\\usb_lib\\usb_core.c.o"
"C:\\Users\\Perito Industriale\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-ar" rcs "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\core.a" "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\libmaple\\usb\\usb_lib\\usb_init.c.o"
"C:\\Users\\Perito Industriale\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-ar" rcs "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\core.a" "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\libmaple\\usb\\usb_lib\\usb_mem.c.o"
"C:\\Users\\Perito Industriale\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-ar" rcs "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\core.a" "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\libmaple\\usb\\usb_lib\\usb_regs.c.o"
"C:\\Users\\Perito Industriale\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-ar" rcs "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\core.a" "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\libmaple\\util.c.o"
"C:\\Users\\Perito Industriale\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-ar" rcs "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\core.a" "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\stm32f1\\util_hooks.c.o"
"C:\\Users\\Perito Industriale\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-ar" rcs "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\core.a" "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\HardwareSerial.cpp.o"
"C:\\Users\\Perito Industriale\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-ar" rcs "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\core.a" "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\HardwareTimer.cpp.o"
"C:\\Users\\Perito Industriale\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-ar" rcs "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\core.a" "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\IPAddress.cpp.o"
"C:\\Users\\Perito Industriale\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-ar" rcs "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\core.a" "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\Print.cpp.o"
"C:\\Users\\Perito Industriale\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-ar" rcs "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\core.a" "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\Stream.cpp.o"
"C:\\Users\\Perito Industriale\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-ar" rcs "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\core.a" "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\WString.cpp.o"
"C:\\Users\\Perito Industriale\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-ar" rcs "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\core.a" "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\cxxabi-compat.cpp.o"
"C:\\Users\\Perito Industriale\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-ar" rcs "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\core.a" "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\ext_interrupts.cpp.o"
"C:\\Users\\Perito Industriale\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-ar" rcs "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\core.a" "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\main.cpp.o"
"C:\\Users\\Perito Industriale\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-ar" rcs "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\core.a" "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\new.cpp.o"
"C:\\Users\\Perito Industriale\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-ar" rcs "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\core.a" "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\pwm.cpp.o"
"C:\\Users\\Perito Industriale\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-ar" rcs "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\core.a" "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\sdio.cpp.o"
"C:\\Users\\Perito Industriale\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-ar" rcs "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\core.a" "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\stm32f1\\wiring_pulse_f1.cpp.o"
"C:\\Users\\Perito Industriale\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-ar" rcs "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\core.a" "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\stm32f1\\wirish_debug.cpp.o"
"C:\\Users\\Perito Industriale\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-ar" rcs "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\core.a" "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\stm32f1\\wirish_digital_f1.cpp.o"
"C:\\Users\\Perito Industriale\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-ar" rcs "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\core.a" "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\tone.cpp.o"
"C:\\Users\\Perito Industriale\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-ar" rcs "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\core.a" "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\usb_serial.cpp.o"
"C:\\Users\\Perito Industriale\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-ar" rcs "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\core.a" "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\wirish_analog.cpp.o"
"C:\\Users\\Perito Industriale\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-ar" rcs "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\core.a" "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\wirish_digital.cpp.o"
"C:\\Users\\Perito Industriale\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-ar" rcs "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\core.a" "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\wirish_math.cpp.o"
"C:\\Users\\Perito Industriale\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-ar" rcs "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\core.a" "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\wirish_shift.cpp.o"
"C:\\Users\\Perito Industriale\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-ar" rcs "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\core.a" "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\wirish_time.cpp.o"
Archivio il core (caching) compilato in: C:\Users\PERITO~1\AppData\Local\Temp\arduino_cache_737598\core\core_374d1da65625b0c3f5222ff53b9ac2eb.a
Linking everything together...
"C:\\Users\\Perito Industriale\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-g++" -Os -Wl,--gc-sections -mcpu=cortex-m3 "-TC:\\Users\\Perito Industriale\\Documents\\Arduino\\hardware\\Arduino_STM32\\STM32F1\\variants\\generic_stm32f103c/ld/jtag_c8.ld" "-Wl,-Map,C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209/STM32F103C8T6_con_ADC1115.ino.map" "-LC:\\Users\\Perito Industriale\\Documents\\Arduino\\hardware\\Arduino_STM32\\STM32F1\\variants\\generic_stm32f103c/ld" -o "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209/STM32F103C8T6_con_ADC1115.ino.elf" "-LC:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209" -lm -lgcc -mthumb -Wl,--cref -Wl,--check-sections -Wl,--gc-sections -Wl,--unresolved-symbols=report-all -Wl,--warn-common -Wl,--warn-section-align -Wl,--warn-unresolved-symbols -Wl,--start-group "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\sketch\\STM32F103C8T6_con_ADC1115.ino.cpp.o" "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\libraries\\Wire\\SoftWire.cpp.o" "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\libraries\\Wire\\Wire.cpp.o" "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\libraries\\Wire\\utility\\WireBase.cpp.o" "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\libraries\\Adafruit_ADS1X15\\Adafruit_ADS1015.cpp.o" "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\wirish\\start.S.o" "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\wirish\\start_c.c.o" "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\wirish\\syscalls.c.o" "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\board.cpp.o" "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\wirish\\boards.cpp.o" "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\wirish\\boards_setup.cpp.o" "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209\\core\\core.a" -Wl,--end-group
"C:\\Users\\Perito Industriale\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-objcopy" -O binary "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209/STM32F103C8T6_con_ADC1115.ino.elf" "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209/STM32F103C8T6_con_ADC1115.ino.bin"
Più di una libreria trovata per "Wire.h"
Usata: C:\Users\Perito Industriale\Documents\Arduino\hardware\Arduino_STM32\STM32F1\libraries\Wire
Non usata: C:\Users\Perito Industriale\Documents\Arduino\hardware\Arduino_STM32\STM32F1\libraries\WireSlave
Uso la libreria Wire alla versione 1.0 nella cartella: C:\Users\Perito Industriale\Documents\Arduino\hardware\Arduino_STM32\STM32F1\libraries\Wire 
Uso la libreria Adafruit_ADS1X15 alla versione 1.1.1 nella cartella: C:\Users\Perito Industriale\Documents\Arduino\libraries\Adafruit_ADS1X15 
"C:\\Users\\Perito Industriale\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\4.8.3-2014q1/bin/arm-none-eabi-size" -A "C:\\Users\\PERITO~1\\AppData\\Local\\Temp\\arduino_build_838209/STM32F103C8T6_con_ADC1115.ino.elf"
Lo sketch usa 16196 byte (24%) dello spazio disponibile per i programmi. Il massimo è 65536 byte.
Le variabili globali usano 2568 byte (12%) di memoria dinamica, lasciando altri 17912 byte liberi per le variabili locali. Il massimo è 20480 byte.
C:\Users\Perito Industriale\Documents\Arduino\hardware\Arduino_STM32/tools/win/serial_upload.bat COM6 {upload.altID} {upload.usbID} C:\Users\PERITO~1\AppData\Local\Temp\arduino_build_838209/STM32F103C8T6_con_ADC1115.ino.bin 
I modified the file C: \ ... \ Arduino \ hardware \ Arduino_STM32 \ STM32F1 \ cores \ maple \ libmaple \ i2c_f1.c and I was unable to solve the problem.

Domenico
Posts: 16
Joined: Thu Jun 04, 2020 5:36 pm
Answers: 1

Re: I2C and ADS1115 communication problem with STM32F103C8T6

Post by Domenico »

mrburnette wrote:
Sun Aug 02, 2020 11:30 pm

Assuming you are using Roger's version of STM32duino, there is a function to remap the pins:
I am using Roger's version of STM32duino, and I edited the file STM32F1/cores/maple/libmaple/i2c_f1.c without success.

stevestrong
Posts: 317
Joined: Fri Dec 27, 2019 4:53 pm
Answers: 7
Location: Munich, Germany
Contact:

Re: I2C and ADS1115 communication problem with STM32F103C8T6

Post by stevestrong »

As I told, the problem is that the ADS library is using the "standard" I2C interface, which is per default the I2C 1, see here: https://github.com/rogerclarkmelbourne/ ... e.cpp#L105
If you want to use the hardware I2C 2 interface (on PB10/11) then you have to edit the line from the above link to:

Code: Select all

TwoWire Wire(2); // use the I2C 2 interface

Domenico
Posts: 16
Joined: Thu Jun 04, 2020 5:36 pm
Answers: 1

Re: I2C and ADS1115 communication problem with STM32F103C8T6

Post by Domenico »

stevestrong wrote:
Tue Aug 04, 2020 3:23 pm

Code: Select all

TwoWire Wire(2); // use the I2C 2 interface
The compiler gives me this error:

Code: Select all

C:\Users\PERITO~1\AppData\Local\Temp\arduino_build_56876\libraries\Wire\Wire.cpp.o: In function `TwoWire::begin(unsigned char)':

C:\Users\Perito Industriale\Documents\Arduino\hardware\Arduino_STM32\STM32F1\libraries\Wire/Wire.cpp:58: multiple definition of `Wire'

C:\Users\PERITO~1\AppData\Local\Temp\arduino_build_56876\sketch\STM32F103C8T6_con_ADC1115.ino.cpp.o:C:\Users\Perito Industriale\Desktop\STM32F103C8T6_con_ADC1115/STM32F103C8T6_con_ADC1115.ino:18: first defined here

collect2.exe: error: ld returned 1 exit status

Più di una libreria trovata per "Wire.h"
Usata: C:\Users\Perito Industriale\Documents\Arduino\hardware\Arduino_STM32\STM32F1\libraries\Wire
Non usata: C:\Users\Perito Industriale\Documents\Arduino\hardware\Arduino_STM32\STM32F1\libraries\WireSlave
Uso la libreria Wire alla versione 1.0 nella cartella: C:\Users\Perito Industriale\Documents\Arduino\hardware\Arduino_STM32\STM32F1\libraries\Wire 
Uso la libreria Adafruit_ADS1X15 alla versione 1.1.1 nella cartella: C:\Users\Perito Industriale\Documents\Arduino\libraries\Adafruit_ADS1X15 
exit status 1
Errore durante la compilazione per la scheda Generic STM32F103C series.

Domenico
Posts: 16
Joined: Thu Jun 04, 2020 5:36 pm
Answers: 1

Re: I2C and ADS1115 communication problem with STM32F103C8T6

Post by Domenico »

While using this other form, the compiler finds no errors, but equally the problem is not solved.
This is the code I use for the various tests:

Code: Select all

#include <Wire.h>

//#include <SoftWire.h>
#include <Adafruit_ADS1015.h>

//SoftWire SWire(PB10, PB11, SOFT_FAST);  // PB10, SCL - PB11, SDA

//use IIC2
TwoWire WIRE(2); // use the I2C 2 interface

/*
//use IIC2
TwoWire WIRE2 (2,I2C_FAST_MODE);
#define Wire WIRE2
*/
Adafruit_ADS1115 adc;

void setup() {
  Serial.begin(115200);
  // adc.setGain(GAIN_TWOTHIRDS);  // 2/3x gain +/- 6.144V  1 bit = 3mV      0.1875mV (default)
  adc.setGain(GAIN_ONE);        // 1x gain   +/- 4.096V  1 bit = 2mV      0.125mV
  // adc.setGain(GAIN_TWO);        // 2x gain   +/- 2.048V  1 bit = 1mV      0.0625mV
  // adc.setGain(GAIN_FOUR);       // 4x gain   +/- 1.024V  1 bit = 0.5mV    0.03125mV
  // adc.setGain(GAIN_EIGHT);      // 8x gain   +/- 0.512V  1 bit = 0.25mV   0.015625mV
  // adc.setGain(GAIN_SIXTEEN);    // 16x gain  +/- 0.256V  1 bit = 0.125mV  0.0078125mV
  adc.begin();
}

void loop() {
  for (int i = 0; i < 4; i++) {
    int val = adc.readADC_SingleEnded(i);
    Serial.print(i);
    Serial.print(":\t");
    Serial.print(val);
    Serial.print("\t");
  }
  Serial.println(" ");
  delay(100);
}

stevestrong
Posts: 317
Joined: Fri Dec 27, 2019 4:53 pm
Answers: 7
Location: Munich, Germany
Contact:

Re: I2C and ADS1115 communication problem with STM32F103C8T6

Post by stevestrong »

You have to have only one Wire declaration.
If you change the default Wire declaration in the library file Wire.cpp line 105, then you should delete it from your sketch.

Domenico
Posts: 16
Joined: Thu Jun 04, 2020 5:36 pm
Answers: 1

Re: I2C and ADS1115 communication problem with STM32F103C8T6

Post by Domenico »

Great!!
Now everything works.
Thank you very much.
This is the working code

Code: Select all

//#include <Wire.h>

#include <Adafruit_ADS1015.h>

//Use IIC2 interface
// Modify the file C: \ ... \Documents\Arduino\hardware\Arduino_STM32\STM32F1\libraries\Wire\Wire.cpp line 106 as follows: TwoWire Wire (2);
TwoWire WIRE(2);

Adafruit_ADS1115 adc;

void setup() {
  Serial.begin(115200);
  // adc.setGain(GAIN_TWOTHIRDS);  // 2/3x gain +/- 6.144V  1 bit = 3mV      0.1875mV (default)
  adc.setGain(GAIN_ONE);        // 1x gain   +/- 4.096V  1 bit = 2mV      0.125mV
  // adc.setGain(GAIN_TWO);        // 2x gain   +/- 2.048V  1 bit = 1mV      0.0625mV
  // adc.setGain(GAIN_FOUR);       // 4x gain   +/- 1.024V  1 bit = 0.5mV    0.03125mV
  // adc.setGain(GAIN_EIGHT);      // 8x gain   +/- 0.512V  1 bit = 0.25mV   0.015625mV
  // adc.setGain(GAIN_SIXTEEN);    // 16x gain  +/- 0.256V  1 bit = 0.125mV  0.0078125mV
  adc.begin();
}

void loop() {
  for (int i = 0; i < 4; i++) {
    int val = adc.readADC_SingleEnded(i);
    Serial.print(i);
    Serial.print(":\t");
    Serial.print(val);
    Serial.print("\t");
  }
  Serial.println(" ");
  delay(100);
}
However the sketch also works by not omitting

Code: Select all

#include <Wire.h>
:D :D :D

Post Reply

Return to “General discussion”