Search found 27 matches

by caniggia
Wed Nov 15, 2017 1:49 pm
Forum: STM32generic
Topic: I2C Examples
Replies: 18
Views: 1176

Re: I2C Examples

Hi With changes(26 Sep) to Wire.cpp it won't compile I2C examples for any board (except F0 probably): https://github.com/danieleff/STM32GENERIC/blob/master/STM32/libraries/Wire/src/Wire.cpp#L7 You cannot check #ifndef I2C1_EV_IRQn, because I2C1_EV_IRQn is enum not #define. The same for #ifndef I2C2_...
by caniggia
Wed Nov 01, 2017 6:55 pm
Forum: STM Core
Topic: SensorTile
Replies: 24
Views: 280

Re: SensorTile

I toght you've put PG_12 next to PG12 in variant.h

Did you add PG12 in variant.h before PEND ?
by caniggia
Wed Nov 01, 2017 6:32 pm
Forum: STM Core
Topic: SensorTile
Replies: 24
Views: 280

Re: SensorTile

What changes did you do to variant.h & variant.cpp ?
by caniggia
Wed Nov 01, 2017 3:49 pm
Forum: STM Core
Topic: SensorTile
Replies: 24
Views: 280

Re: SensorTile

Choose "NUCLEO_L476RG" (not your ST SensorTile variant),
and try with PG_12 in your sketch.
So we can see if it works wit built-in PG_12.
by caniggia
Wed Nov 01, 2017 2:54 pm
Forum: STM Core
Topic: SensorTile
Replies: 24
Views: 280

Re: SensorTile

You don't have to add PG_12 anywhere, because it's allready in "PinNames.h":
https://github.com/stm32duino/Arduino_C ... mes.h#L151
by caniggia
Wed Nov 01, 2017 2:36 pm
Forum: STM Core
Topic: SensorTile
Replies: 24
Views: 280

Re: SensorTile

OK, i have tried to compile your code with NUCLEO_L476RG and got this error:
'PG12' was not declared in this scope.
So you probably defined PG12 but apparently not ok.

Try with pin name PG_12 instead of PG12 in your blink sketch.
by caniggia
Wed Nov 01, 2017 2:24 pm
Forum: STM Core
Topic: SensorTile
Replies: 24
Views: 280

Re: SensorTile

What error do you get, when you compile/verify sketch ?
Or it compiles without error?
by caniggia
Wed Nov 01, 2017 11:53 am
Forum: STM Core
Topic: SensorTile
Replies: 24
Views: 280

Re: SensorTile

If you took NUCLEO_L476RG variant as template the GPIOG clock should be enabled. As you can see in "Arduino_Core_STM32/system/Drivers/CMSIS/Device/ST/STM32L4xx/Include/stm32l476xx.h" you have: #define GPIOG_BASE (AHB2PERIPH_BASE + 0x0000U) and #define GPIOG ((GPIO_TypeDef *) GPIOA_BASE) In "stm32l4x...
by caniggia
Tue Oct 31, 2017 1:21 pm
Forum: New users MUST post here first, and let us know a bit about you and your projects
Topic: Hello from Gilhad
Replies: 11
Views: 230

Re: Hello from Gilhad

So it would need some "calibration" of waiting there, probabely with lot small fragment, than delay(1), but non-zero.
https://www.arduino.cc/en/Reference/DelayMicroseconds
by caniggia
Mon Sep 04, 2017 7:04 am
Forum: IDE's
Topic: Debug STM32 with VScode
Replies: 28
Views: 2022

Re: Debug STM32 with VScode

@And_Ru Press F1 and type "arduino" and you will get all the Arduino commands: Arduino: Board Manager: Manage packages for boards. You can add 3rd party Arduino board by configuring Additional Board Manager URLs in board manager. Arduino: Change Baud Rate: Change the baud rate of selected serial por...