Search found 17 matches

by gab
Mon May 30, 2022 7:01 pm
Forum: General Support
Topic: I2C Slave mode support?
Replies: 116
Views: 138435

Re: I2C Slave mode support?

Sorry for late answer. Bellissimo! Ok. I can see RX events!
i2c-scan works.

Some questions:
"I2CDx.reply_required" - when this flag toggled on?

My test sketch on arduino UNO, connected to my board:
----
Wire.beginTransmission(0x18); // 0x18 - my device addr.
Wire.write(1);
Wire.endTransmission ...
by gab
Mon May 09, 2022 4:34 pm
Forum: General Support
Topic: I2C Slave mode support?
Replies: 116
Views: 138435

Re: I2C Slave mode support?

Is there a working i2c-slave code for stm32f103? I'm trying many variants published in this topic, but no one working :( Please help me!
by gab
Sat Sep 26, 2020 8:10 am
Forum: STM32 Support
Topic: STM32F302 ADC calibration
Replies: 4
Views: 3031

Re: STM32F302 ADC calibration

CPU: STM32F302CBT6
In mcuconf.h:
#define STM32F3xx_MCUCONF

in board.h:
#define STM32F302xC
changing to
#define STM32F302x8
dosn't have effect.

Chibios version 20.3
by gab
Fri Sep 25, 2020 9:14 pm
Forum: STM32 Support
Topic: STM32F302 ADC calibration
Replies: 4
Views: 3031

Re: STM32F302 ADC calibration

20.3
by gab
Fri Sep 25, 2020 8:42 pm
Forum: STM32 Support
Topic: STM32F302 ADC calibration
Replies: 4
Views: 3031

Re: STM32F302 ADC calibration

I try to run testhal/STM32F3xx/ADC example.
Same result.
by gab
Fri Sep 25, 2020 7:30 pm
Forum: STM32 Support
Topic: STM32F302 ADC calibration
Replies: 4
Views: 3031

STM32F302 ADC calibration

In adc_lld_start() after calling adc_lld_vreg_on() CR register always stay 0x20000000.
After this in adc_lld_calibrate() at line osalDbgAssert(...) program going to chSysHalt().

mcuconf.h:
-------
#define STM32_NO_INIT FALSE
#define STM32_PVD_ENABLE FALSE
#define STM32_PLS STM32_PLS_LEV0
#define ...
by gab
Thu Sep 24, 2020 11:03 am
Forum: STM32 Support
Topic: Problems with ST32F302 and USB
Replies: 15
Views: 7846

Re: Problems with ST32F302 and USB

Promlem solved!

in board.h _must_ be line:
#define STM32F302xC

for this chip:
Info : device id = 0x10036422
Info : flash size = 128kbytes
by gab
Thu Sep 24, 2020 8:57 am
Forum: STM32 Support
Topic: Problems with ST32F302 and USB
Replies: 15
Views: 7846

Re: Problems with ST32F302 and USB

I try create simple project in MXCube. Generated USB init code:
/**USB GPIO Configuration
PA11 ------> USB_DM
PA12 ------> USB_DP
*/
GPIO_InitStruct.Pin = GPIO_PIN_11|GPIO_PIN_12;
GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
GPIO_InitStruct.Pull = GPIO_NOPULL;
GPIO_InitStruct.Speed = GPIO_SPEED ...
by gab
Thu Sep 24, 2020 8:30 am
Forum: STM32 Support
Topic: Problems with ST32F302 and USB
Replies: 15
Views: 7846

Re: Problems with ST32F302 and USB

If i configure AF to 0, function usb_event() not called.
by gab
Wed Sep 23, 2020 8:08 pm
Forum: STM32 Support
Topic: Problems with ST32F302 and USB
Replies: 15
Views: 7846

Re: Problems with ST32F302 and USB

Strange, but default_handler() never called... :?