Search found 6 matches

by ConnorBrisebois
Tue Mar 23, 2021 10:35 pm
Forum: ChibiOS/HAL
Topic: HAL I2C pin assignment
Replies: 7
Views: 6471

Re: HAL I2C pin assignment

Final Update:

After observing the GPIO registers and watching traces on my scope, I realized that external pull up resistors (2-10kOhms) are required when using all I2C ports (except I2CD1 connected to pins PB6 and PB9). It's important to note that if connection to the pull up resistor is disturbed ...
by ConnorBrisebois
Tue Mar 23, 2021 8:04 pm
Forum: ChibiOS/HAL
Topic: HAL I2C pin assignment
Replies: 7
Views: 6471

Re: HAL I2C pin assignment

Hi Giovanni,

I have since realized I was mistaken about that. I was looking at the wrong block of code while debugging. Currently I am trying to determine where/how peripheral assignments are preformed for the I2C drivers. For example when one enables and starts STM32_I2C_USE_I2C1, SDA is on pin ...
by ConnorBrisebois
Tue Mar 23, 2021 7:00 pm
Forum: ChibiOS/HAL
Topic: HAL I2C pin assignment
Replies: 7
Views: 6471

Re: HAL I2C pin assignment

Quick Update.

I have confirmed that It is not a hardware issue as I have been able to establish and reconfigure the I2C1, 2, and 3 peripherals using other HAL libraries. After stepping into the entire configuration process while debugging I have observed that pieces of configuration protected by ...
by ConnorBrisebois
Mon Mar 22, 2021 10:29 pm
Forum: ChibiOS/HAL
Topic: HAL I2C pin assignment
Replies: 7
Views: 6471

HAL I2C pin assignment

Hello,

I have been having trouble assigning peripherals to an I2C driver on my STM32F407Discovery board. Specifically I am trying to use I2CD3 on pins PA8->SCL and PC9->SDA. I was under the impression that one could assign peripherals through the use of palSetPadMode like so:

palSetPadMode(GPIOC ...
by ConnorBrisebois
Mon Mar 08, 2021 11:55 pm
Forum: STM32 Support
Topic: STM32 programming chibistudio error
Replies: 2
Views: 2824

Re: STM32 programming chibistudio error

Hello Giovanni,

Thank you for he quick reply. That was my problem, I was actually following Rocco's article I must have missed that step.

Thank you!
by ConnorBrisebois
Mon Mar 08, 2021 9:49 pm
Forum: STM32 Support
Topic: STM32 programming chibistudio error
Replies: 2
Views: 2824

STM32 programming chibistudio error

Hello,

I am very new to chibi and relatively new to stm32 programming in general. I have been trying to run a simple demo on my stm32f4 discovery board and have come across the following error message when I try to debug ...