In file included from /home/icelon/midro/hardware/Arduino_STM32-master/STM32F1/cores/maple/wirish.h:60:0,from /home/icelon/midro/hardware/Arduino_STM32-master/STM32F1/cores/maple/Arduino.h:30,from /home/icelon/midro/libraries/I2Cdev/I2Cdev.h:77,from /home/icelon/midro/libraries/I2Cdev/I2Cdev.cpp:46:/home/icelon/midro/libraries/I2Cdev/I2Cdev.cpp: In static member function 'static int8_t I2Cdev::readBytes(uint8_t, uint8_t, uint8_t, uint8_t*, uint16_t)':/home/icelon/midro/libraries/I2Cdev/I2Cdev.cpp:276:62: error: 'BUFFER_LENGTH' was not declared in this scopefor (uint8_t k = 0; k < length; k += min(length, BUFFER_LENGTH)) {^/home/icelon/midro/hardware/Arduino_STM32-master/STM32F1/cores/maple/wirish_math.h:107:39: note: in definition of macro 'min'#define min(a,b) ((a)<(b)?(a):(b))^/home/icelon/midro/libraries/I2Cdev/I2Cdev.cpp: In static member function 'static int8_t I2Cdev::readWords(uint8_t, uint8_t, uint8_t, uint16_t*, uint16_t)':/home/icelon/midro/libraries/I2Cdev/I2Cdev.cpp:414:70: error: 'BUFFER_LENGTH' was not declared in this scopefor (uint8_t k = 0; k < length * 2; k += min(length * 2, BUFFER_LENGTH)) {^/home/icelon/midro/hardware/Arduino_STM32-master/STM32F1/cores/maple/wirish_math.h:107:39: note: in definition of macro 'min'#define min(a,b) ((a)<(b)?(a):(b))^exit status 1Error compilando para la tarjeta Maple Mini.
in their forums i found i saw on the main i2cdevlib page that STM32STM32Microcontrollers and processors…Map magic glue code, ethernet compiles, just WARNING: library LwIP claims to run on [ stm32 ] architecture(s) and may be incompatible with your current board which runs on [STM32]…View in hardware catalog ↗ was a future target
it seems to have Due port though, might be be a good place to start.
look for another project with a Due and a STM32STM32Microcontrollers and processors…Map magic glue code, ethernet compiles, just WARNING: library LwIP claims to run on [ stm32 ] architecture(s) and may be incompatible with your current board which runs on [STM32]…View in hardware catalog ↗ ports, compare those to see what might need changing, timers, irq stuff
stephen
Thu Aug 24, 2017 3:28 pm
As it use Wire class from the core, it should not need specific update for STM32STM32Microcontrollers and processors…Map magic glue code, ethernet compiles, just WARNING: library LwIP claims to run on [ stm32 ] architecture(s) and may be incompatible with your current board which runs on [STM32]…View in hardware catalog ↗.
I think the original question is why it does not built anymore.
Edit: Tested with Arduino_Core_STM32STM32Microcontrollers and processors…Map magic glue code, ethernet compiles, just WARNING: library LwIP claims to run on [ stm32 ] architecture(s) and may be incompatible with your current board which runs on [STM32]…View in hardware catalog ↗ and it’s ok.
Thu Aug 24, 2017 4:18 pm
thank very thanks …. word fine ,,,,hardwire and add wire . used a jrowberg git … thanks
Thu Aug 24, 2017 4:38 pm
Welcome.
Maybe it should be fine to add the define for HardWire and this will be more compatible with Lib using this define.
I let @RogerClark check that point
Thu Aug 24, 2017 9:30 pm
Is BUFFER_LENGTH defined for the AVRAVRMicrocontrollers and processors…Arduino\libraries\U8glib\U8glib.cpp, C:\Program Files (x86)\Arduino\hardware\arduino\ avr \cores\arduino\HardwareSerial.h, C:\Program Files (x86)\Arduino/Blink3.ino, D:\Users\me\A…View in hardware catalog ↗ Wire library.
It seems strange to define someone with a global name like BUFFER_LENGTH that does not describe what the buffer is associated with
Fri Aug 25, 2017 7:30 am
+1 Roger.
Fri Aug 25, 2017 7:53 am
thanks roger !!!!
I’ve seen what you tell me but I still do not give up, I’m modifying a firmware of a STM32F030STM32F030Microcontrollers and processors…ompiler, second, the resources are limited. For small things/tasks, I’m rather using STM32F030 , they are TSSOP20 as well, but same compiler as other STM32 can be use. ag123 Sun M…View in hardware catalog ↗ … Wemos controller type although I darn the possibility to use TLC5490TLC5490Displays, touch panels and LEDs…rmware of a stm32f030 … Wemos controller type although I darn the possibility to use TLC5490 or a PCA9685 type hat …. RogerClark Fri Aug 25, 2017 8:02 am It looks like BUFFER_LENG…View in hardware catalog ↗ or a PCA9685PCA9685Analog, logic and power components…tm32f030 … Wemos controller type although I darn the possibility to use TLC5490 or a PCA9685 type hat …. RogerClark Fri Aug 25, 2017 8:02 am It looks like BUFFER_LENGTH is defined…View in hardware catalog ↗ type hat ….
Fri Aug 25, 2017 8:02 am
It looks like BUFFER_LENGTH is defined in Wire.h for the SAM architecture
and also for AVRAVRMicrocontrollers and processors…Arduino\libraries\U8glib\U8glib.cpp, C:\Program Files (x86)\Arduino\hardware\arduino\ avr \cores\arduino\HardwareSerial.h, C:\Program Files (x86)\Arduino/Blink3.ino, D:\Users\me\A…View in hardware catalog ↗
Looking in libmaple, WireBase defines #define WIRE_BUFSIZ 32
I will change the definition to BUFFER_LENGTH = 32, Just for maximum compatibility.
But personally, I don’t think its good practice for any external libraries to use that define (as its not part of the public API)
Fri Aug 25, 2017 8:36 am
[icelon – Fri Aug 25, 2017 7:53 am] –
thanks roger !!!!
I’ve seen what you tell me but I still do not give up, I’m modifying a firmware of a STM32F030STM32F030Microcontrollers and processors…ompiler, second, the resources are limited. For small things/tasks, I’m rather using STM32F030 , they are TSSOP20 as well, but same compiler as other STM32 can be use. ag123 Sun M…View in hardware catalog ↗ … Wemos controller type although I darn the possibility to use TLC5490TLC5490Displays, touch panels and LEDs…rmware of a stm32f030 … Wemos controller type although I darn the possibility to use TLC5490 or a PCA9685 type hat …. RogerClark Fri Aug 25, 2017 8:02 am It looks like BUFFER_LENG…View in hardware catalog ↗ or a PCA9685PCA9685Analog, logic and power components…tm32f030 … Wemos controller type although I darn the possibility to use TLC5490 or a PCA9685 type hat …. RogerClark Fri Aug 25, 2017 8:02 am It looks like BUFFER_LENGTH is defined…View in hardware catalog ↗ type hat ….
Download the latest version.
I’ve updated Wirebase.h and Wirebase.cpp and also Softwire.h
BUFFER_LENGTH is now defined in Wirebase.h and removed from Software.h as Softwire.h includes Wirebase.h