Search found 28 matches

by caniggia
Thu Feb 08, 2018 12:44 pm
Forum: IDE's
Topic: Debug STM32 with VScode
Replies: 50
Views: 5271

Re: Debug STM32 with VScode

So this has turned out to be a huge exercise in frustration, looks like due to the board options Maple Mini isn't supported for debugging (no st-link upload method?). Compilation is tediously slow via vscode, no idea why. I have a 16 core cpu and it's doing literally 'nothing' whilst the build runs...
by caniggia
Wed Nov 15, 2017 1:49 pm
Forum: STM32generic
Topic: I2C Examples
Replies: 21
Views: 1722

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: 25
Views: 861

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: 25
Views: 861

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: 25
Views: 861

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: 25
Views: 861

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: 25
Views: 861

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: 25
Views: 861

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: 25
Views: 861

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: 335

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