Search found 11 matches
- Fri Jun 07, 2019 4:15 pm
- Forum: STM32 Support
- Topic: STM32L496 external oscillator
- Replies: 7
- Views: 3734
Re: STM32L496 external oscillator
Hi all, Thank you for your help. We finally found the issue. Lots of mistake on our side... First, the quartz was mounted the wrong way on the board. Once we fixed the hardware part, we were able to measure the HSE and SYSCLK value through the MCO feature in STMCubeMx. PA8 pin can output differents ...
- Fri Jun 07, 2019 8:20 am
- Forum: STM32 Support
- Topic: STM32L496 I2C2 configuration issue
- Replies: 5
- Views: 2248
Re: STM32L496 I2C2 configuration issue
Thank you Giovanni for the help,
Yes my pullups are good so far.
I'll give a look at the fallback feature,
++
Yes my pullups are good so far.
I'll give a look at the fallback feature,
++
- Mon Jun 03, 2019 4:38 pm
- Forum: STM32 Support
- Topic: STM32L496 I2C2 configuration issue
- Replies: 5
- Views: 2248
Re: STM32L496 I2C2 configuration issue
Hi again,
I found a configuration in ChibiOS testhal folder that fix my issue:
I found a configuration in ChibiOS testhal folder that fix my issue:
Code: Select all
STM32_TIMINGR_PRESC(15U) |
STM32_TIMINGR_SCLDEL(4U) | STM32_TIMINGR_SDADEL(2U) |
STM32_TIMINGR_SCLH(15U) | STM32_TIMINGR_SCLL(21U),
0,
0
- Mon Jun 03, 2019 4:08 pm
- Forum: STM32 Support
- Topic: STM32L496 I2C2 configuration issue
- Replies: 5
- Views: 2248
Re: STM32L496 I2C2 configuration issue
Hi Giovanni, I forgot to post the I2C configuration. Here is the configuration: STM32_TIMINGR_PRESC( 8U ) | STM32_TIMINGR_SCLDEL( 4U ) | STM32_TIMINGR_SDADEL( 2U ) | STM32_TIMINGR_SCLH( 15U ) | STM32_TIMINGR_SCLL( 19U ), 0, 0, The problem is that with I2C2 configured on pin PB10/PB11 my chip is not ...
- Mon Jun 03, 2019 3:09 pm
- Forum: STM32 Support
- Topic: STM32L496 I2C2 configuration issue
- Replies: 5
- Views: 2248
STM32L496 I2C2 configuration issue
Hi all, I have a custom board on which I have an I2C chip connected on PB10/11 (I2C2). Unfortunatly, the board was made before I read the errata sheet in which it is mentionned that I2C2 on PB10/11 cannot be used in FastMode (Murphy Law :D ) On this same board I have other peripherals on I2C3 that a...
- Fri Mar 15, 2019 3:30 pm
- Forum: STM32 Support
- Topic: Problem with STM32F107 and I2C1
- Replies: 4
- Views: 1975
Re: Problem with STM32F107 and I2C1 [SOLVED]
Problem solved.
The configuration need to be:
Alternate push-pull output for PB6/PB7 and deactivate remap in board.c
Thanks again for the support Giovanni
The configuration need to be:
Code: Select all
#define VAL_GPIOBCRL 0xBB844480 /* PB7...PB0 */
Alternate push-pull output for PB6/PB7 and deactivate remap in board.c
Thanks again for the support Giovanni
- Fri Mar 15, 2019 3:18 pm
- Forum: STM32 Support
- Topic: Problem with STM32F107 and I2C1
- Replies: 4
- Views: 1975
Re: Problem with STM32F107 and I2C1
I also removed in board.c the remap feature on I2C1 ( AFIO_MAPR_I2C1_REMAP ) but still no clock signal on the scope.
Code: Select all
AFIO->MAPR |= AFIO_MAPR_USART3_REMAP_FULLREMAP |
AFIO_MAPR_SPI3_REMAP;
- Fri Mar 15, 2019 2:42 pm
- Forum: STM32 Support
- Topic: Problem with STM32F107 and I2C1
- Replies: 4
- Views: 1975
Re: Problem with STM32F107 and I2C1
Hi Giovanni, Thank you for the quick reply. 1) How to remove the alternate from the previous pin. Is setting PB8/PB9 as input in the board.h file is ok /* * Port B setup: * PB6 - Alternate O.D. (I2C1 SCL). * PB7 - Alternate O.D. (I2C1 SDA). */ #define VAL_GPIOBCRL 0xEE844480 /* PB7...PB0 */ #define ...
- Fri Mar 15, 2019 2:30 pm
- Forum: STM32 Support
- Topic: Problem with STM32F107 and I2C1
- Replies: 4
- Views: 1975
Problem with STM32F107 and I2C1
Hi all, I'm currently facing an issue with I2C1 on an OLIMEX P107 board. I first try the example provided and I2C1 on remapped pin PB8/PB9 is working just fine. Configuration is like this in the board.h file: /* * Port B setup: * PB8 - Alternate O.D. (I2C1 SCL, remapped). * PB9 - Alternate O.D. (I2C...
- Fri Mar 01, 2019 3:02 pm
- Forum: STM32 Support
- Topic: Clock configuration issues on STM32F105 board
- Replies: 2
- Views: 1550
Re: Clock configuration issues on STM32F105 board
Hi again, Many many thanks Giovanni. I figured out why the led wouldn't blink. In fact, it was not a clock issue but a halconf issue. The STM32F107 have a mac support and the F105 doesn't. And, as you can imagine I forgot to set the HAL_USE_MAC to false. Now it fully functionnal. Thank again, Jeremy