Partial success: I can now use Serial.println to get messages from the BrainPad through a GHI Rs232 Module to the Serial Port of my PC.
The RS232 Module is connected to PA2 of the BrainPad as TX (Expansion Header Pin 15 (INT).
However, if I activate in the Arduino IDE Tools -> Other Serial Instance: ALL or Serial1(if available) or Serial2(if available)
I get a compiler error:
Arduino: 1.8.3 (Windows 10), Board: “Nucleo-64, Nucleo F401RE, Mass Storage, All, None”
arm-none-eabi-gcc: error: C:\Users\Roland\AppData\Local\Temp\arduino_build_963841/…\arduino_cache_729421\core\core_STM32_stm32_Nucleo_64_board_part_num_NUCLEO_F401RE,
upload_method_MassStorageMethod,Other_serial_enable_SerialAll,USB_interface_enable_USB_ba6ca7138be2b72e751689a40e15ca39.a:
No such file or directory
exit status 1
Fehler beim Kompilieren für das Board Nucleo-64.
Tried to adapt the Adafruit Adafruit_SSD1306 I2C library for the STM32F401 Mainboard, but no success.
The BrainPad display works fine on an Arduino Pro mini with the Adafruit library.
Does anybody have an Arduino library that works on the STM32F401 Mainboard?
Hmm, the oled on the new BrainPad seems to be a 128x32 display (on an Arduino Pro Mini it works with this configuration). Your example was for a 128x64 display. Did you get it working on the new BrainPad or on a Nucleo-401RE board? Could you please send me a copy of your …\variants\NUCLEO_F401RE folder? If this doesn’t help, I would have to search systematically for the reason.
With the oscillosope I see no spikes on I2C lines of the oled display with the Arduino App. When I use a BrainPad TinyCLR App I can see spikes when I write on the display.
Something seems to be wrong with the pin definitions.
Are you relying only on internal pullups for i2c??
Some implementations may need stronger pullups. I had to use 1k pullups with multiple MCP23017’s on a bus. Datasheet will tell you definitively (in that case MCP’s datasheet recommended 1k on those, not 2.2k)
Today I Received Brainpad so from today i will test and check and re-create all examples from ghi to arduino ide and 2 mbed variants (one with vs2017 and visualgdb)(another one with online mbed compiler) and i will publish them at github with instructions.
I tested some samples with i2c ssd1306 and i can confirm code that working for Nucleo STM33F411 do not work on Brainpad version compiled for Nucleo STM32F401 even with pullup version as you say.
I’m going next test I2C scanner to see what detect it.