#114
Сообщение
Oleg » 24.08.2021{, 14:02}
STM32F103CB с 128kB flash
Отправлено спустя 10 минут 49 секунд:
Не получается.
e:\PortableFLProg_7-3-8_Win64\ideV7\portable\sketchbook\libraries\RT_00_HW_BASE_v6.54\src\RT_HW_BASE_13_05_Link_i2c.cpp: In member function 'void RT_HW_BASE::i2cWrite(const uint8_t*, uint8_t, uint8_t)':
e:\PortableFLProg_7-3-8_Win64\ideV7\portable\sketchbook\libraries\RT_00_HW_BASE_v6.54\src\RT_HW_BASE_13_05_Link_i2c.cpp:341:103: error: invalid conversion from 'const uint8_t* {aka const unsigned char*}' to 'uint8* {aka unsigned char*}' [-fpermissive]
if(bus==0){ if(qnt>32) {qnt=32;} if(i2cCheckBusState(RT_HW_I2C_STATE_MASTER,bus)) {Wire.write(arr,qnt);}};
^
In file included from E:\PortableFLProg_7-3-8_Win64\ideV7\hardware\Arduino_STM32-master\STM32F1\libraries\Wire/Wire.h:42:0,
from e:\PortableFLProg_7-3-8_Win64\ideV7\portable\sketchbook\libraries\RT_00_HW_BASE_v6.54\src\RT_HW_BASE_02_00_BOARD_CORE.hpp:268,
from e:\PortableFLProg_7-3-8_Win64\ideV7\portable\sketchbook\libraries\RT_00_HW_BASE_v6.54\src\RT_HW_BASE.h:14,
from e:\PortableFLProg_7-3-8_Win64\ideV7\portable\sketchbook\libraries\RT_00_HW_BASE_v6.54\src\RT_HW_BASE_13_05_Link_i2c.cpp:1:
E:\PortableFLProg_7-3-8_Win64\ideV7\hardware\Arduino_STM32-master\STM32F1\libraries\Wire/utility/WireBase.h:123:12: error: initializing argument 1 of 'size_t WireBase::write(uint8*, int)' [-fpermissive]
size_t write(uint8*, int);
^
e:\PortableFLProg_7-3-8_Win64\ideV7\portable\sketchbook\libraries\RT_00_HW_BASE_v6.54\src\RT_HW_BASE_13_05_Link_i2c.cpp:344:104: error: invalid conversion from 'const uint8_t* {aka const unsigned char*}' to 'uint8* {aka unsigned char*}' [-fpermissive]
if(bus==1){ if(qnt>32) {qnt=32;} if(i2cCheckBusState(RT_HW_I2C_STATE_MASTER,bus)) {Wire1.write(arr,qnt);}};
^
In file included from E:\PortableFLProg_7-3-8_Win64\ideV7\hardware\Arduino_STM32-master\STM32F1\libraries\Wire/Wire.h:42:0,
from e:\PortableFLProg_7-3-8_Win64\ideV7\portable\sketchbook\libraries\RT_00_HW_BASE_v6.54\src\RT_HW_BASE_02_00_BOARD_CORE.hpp:268,
from e:\PortableFLProg_7-3-8_Win64\ideV7\portable\sketchbook\libraries\RT_00_HW_BASE_v6.54\src\RT_HW_BASE.h:14,
from e:\PortableFLProg_7-3-8_Win64\ideV7\portable\sketchbook\libraries\RT_00_HW_BASE_v6.54\src\RT_HW_BASE_13_05_Link_i2c.cpp:1:
E:\PortableFLProg_7-3-8_Win64\ideV7\hardware\Arduino_STM32-master\STM32F1\libraries\Wire/utility/WireBase.h:123:12: error: initializing argument 1 of 'size_t WireBase::write(uint8*, int)' [-fpermissive]
size_t write(uint8*, int);
^
e:\PortableFLProg_7-3-8_Win64\ideV7\portable\sketchbook\libraries\RT_00_HW_BASE_v6.54\src\RT_HW_BASE_13_05_Link_i2c.cpp: In member function 'uint8_t RT_HW_BASE::i2cSendBytes(const uint8_t*, uint8_t, uint8_t, uint8_t)':
e:\PortableFLProg_7-3-8_Win64\ideV7\portable\sketchbook\libraries\RT_00_HW_BASE_v6.54\src\RT_HW_BASE_13_05_Link_i2c.cpp:404:82: error: invalid conversion from 'const uint8_t* {aka const unsigned char*}' to 'uint8* {aka unsigned char*}' [-fpermissive]
if(bus==0){if(qnt>32) {qnt=32;}; Wire.beginTransmission(adr); Wire.write(arr,qnt); return Wire.endTransmission();}
^
In file included from E:\PortableFLProg_7-3-8_Win64\ideV7\hardware\Arduino_STM32-master\STM32F1\libraries\Wire/Wire.h:42:0,
from e:\PortableFLProg_7-3-8_Win64\ideV7\portable\sketchbook\libraries\RT_00_HW_BASE_v6.54\src\RT_HW_BASE_02_00_BOARD_CORE.hpp:268,
from e:\PortableFLProg_7-3-8_Win64\ideV7\portable\sketchbook\libraries\RT_00_HW_BASE_v6.54\src\RT_HW_BASE.h:14,
from e:\PortableFLProg_7-3-8_Win64\ideV7\portable\sketchbook\libraries\RT_00_HW_BASE_v6.54\src\RT_HW_BASE_13_05_Link_i2c.cpp:1:
E:\PortableFLProg_7-3-8_Win64\ideV7\hardware\Arduino_STM32-master\STM32F1\libraries\Wire/utility/WireBase.h:123:12: error: initializing argument 1 of 'size_t WireBase::write(uint8*, int)' [-fpermissive]
size_t write(uint8*, int);
^
e:\PortableFLProg_7-3-8_Win64\ideV7\portable\sketchbook\libraries\RT_00_HW_BASE_v6.54\src\RT_HW_BASE_13_05_Link_i2c.cpp:407:83: error: invalid conversion from 'const uint8_t* {aka const unsigned char*}' to 'uint8* {aka unsigned char*}' [-fpermissive]
if(bus==1){if(qnt>32) {qnt=32;}; Wire1.beginTransmission(adr); Wire1.write(arr,qnt); return Wire1.endTransmission();}
^
In file included from E:\PortableFLProg_7-3-8_Win64\ideV7\hardware\Arduino_STM32-master\STM32F1\libraries\Wire/Wire.h:42:0,
from e:\PortableFLProg_7-3-8_Win64\ideV7\portable\sketchbook\libraries\RT_00_HW_BASE_v6.54\src\RT_HW_BASE_02_00_BOARD_CORE.hpp:268,
from e:\PortableFLProg_7-3-8_Win64\ideV7\portable\sketchbook\libraries\RT_00_HW_BASE_v6.54\src\RT_HW_BASE.h:14,
from e:\PortableFLProg_7-3-8_Win64\ideV7\portable\sketchbook\libraries\RT_00_HW_BASE_v6.54\src\RT_HW_BASE_13_05_Link_i2c.cpp:1:
E:\PortableFLProg_7-3-8_Win64\ideV7\hardware\Arduino_STM32-master\STM32F1\libraries\Wire/utility/WireBase.h:123:12: error: initializing argument 1 of 'size_t WireBase::write(uint8*, int)' [-fpermissive]
size_t write(uint8*, int);
^
Несколько библиотек найдено для "Wire.h"
Используется: E:\PortableFLProg_7-3-8_Win64\ideV7\hardware\Arduino_STM32-master\STM32F1\libraries\Wire
Не используется: E:\PortableFLProg_7-3-8_Win64\ideV7\hardware\Arduino_STM32-master\STM32F1\libraries\WireSlave
exit status 1
Ошибка компиляции для платы Generic STM32F103C series.
Отправлено спустя 1 час 1 минуту 28 секунд:
Ждем?