Search found 212 matches

by dflogeras
Tue Aug 22, 2023 12:40 pm
Forum: STM32 Support
Topic: I2C4 issue on STM32F76xx
Replies: 13
Views: 3292

Re: I2C4 issue on STM32F76xx

Arrrrg, I think I found it. On the initial test, I didn't notice that the pin GPIOB_AUDIO_SDA (from the STM32F769-DISCO board.h) was also configured to mux to the I2C4 peripheral, and was set as PUSHPULL. Not sure if this is correct for its original intended use? Either way, my problem was completel...
by dflogeras
Tue Aug 22, 2023 1:08 am
Forum: STM32 Support
Topic: I2C4 issue on STM32F76xx
Replies: 13
Views: 3292

Re: I2C4 issue on STM32F76xx

I found some time tonight to wire up a MCP23017 to I2C4 of my STM32F769-DISCO kit, which thankfully was conveniently on a header. It works as expected on this board, using the same code (except for the board.h which I reused from the one in os/hal/boards/STM32F769-DISCOVERY, and changed just pins re...
by dflogeras
Sat Aug 19, 2023 8:42 pm
Forum: STM32 Support
Topic: I2C4 issue on STM32F76xx
Replies: 13
Views: 3292

Re: I2C4 issue on STM32F76xx

Absolutely, and they are the same ones as when I had it fly-wired to I2C1. My scope shows me no reason to suspect anything in analog-land.
by dflogeras
Fri Aug 18, 2023 7:35 pm
Forum: STM32 Support
Topic: I2C4 issue on STM32F76xx
Replies: 13
Views: 3292

Re: I2C4 issue on STM32F76xx

Interesting, thanks steved. Before I had a chance to play with different chips, I took inspiration from https://forum.chibios.org/viewtopic.php?f=16&t=6243 I did a start/stop/start on I2C4, and now it seems to work as expected. Note, this is a twenty line test program, coming out of reset so it ...
by dflogeras
Fri Aug 18, 2023 12:49 am
Forum: STM32 Support
Topic: I2C4 issue on STM32F76xx
Replies: 13
Views: 3292

Re: I2C4 issue on STM32F76xx

The only other high-pin-count devices I have access to which would have I2C4 are still in the F7 family, but I'm willing to try anyway.
- STM32F746ZG on a nucleo-144 board
- STM32F769NI on a disco kit.

I'll wire them up with a i2c chip in the coming days.
by dflogeras
Thu Aug 17, 2023 5:00 pm
Forum: STM32 Support
Topic: I2C4 issue on STM32F76xx
Replies: 13
Views: 3292

Re: I2C4 issue on STM32F76xx

I don't see anything specifically like my problem. There is some mention of NACKF getting set incorrectly when using 10bit mode, but I am not. For fun, using the I2C4 peripheral again, I just #if 0'd out the code that stops the transmission if the NACKF bit is set: LLD/I2Cv2/hal_i2c_lld.c: #if 0 /* ...
by dflogeras
Thu Aug 17, 2023 1:36 pm
Forum: STM32 Support
Topic: I2C4 issue on STM32F76xx
Replies: 13
Views: 3292

Re: I2C4 issue on STM32F76xx

I had access to two free pins that I could assign to I2C1, so to rule out a copper problem, I wired up I2C4 and I2C1 together in parallel (and obviously turned off I2C4 GPIO pins). Using the I2C1 driver with the same configuration, I can successfully talk to the devices that "belong" to I2...
by dflogeras
Thu Aug 17, 2023 2:58 am
Forum: STM32 Support
Topic: I2C4 issue on STM32F76xx
Replies: 13
Views: 3292

Re: I2C4 issue on STM32F76xx

Forgot to mention that, I used the same GPIO settings for both I2C3 and 4, namely: Alternate=4 (from RM), Open Drain, No pull (this is handled in HW), Speed High. Looking at the SDA and SCL pins on a scope, and they look fine to me. I also verified the programming by inspecting the registers in the ...
by dflogeras
Wed Aug 16, 2023 6:33 pm
Forum: STM32 Support
Topic: I2C4 issue on STM32F76xx
Replies: 13
Views: 3292

I2C4 issue on STM32F76xx

Hi, Running 21.1.1 on a board with I2C slave devices on both I2C3 and I2C4 busses (device has the same address so needed to be separated that way). I started with the STM32F769-discovery demo code, and adapted it to my board, which uses a F765 but seemingly close enough for I2C. With a working confi...
by dflogeras
Sun Jan 15, 2023 2:05 pm
Forum: Bug Reports
Topic: LWiP on STM32F746 Nucleo
Replies: 5
Views: 3201

Re: LWiP on STM32F746 Nucleo

The culprit (for this tiny use case anyway) seems to be #ifndef DEFAULT_RAW_RECVMBOX_SIZE #define DEFAULT_RAW_RECVMBOX_SIZE 4 #endif /** * DEFAULT_UDP_RECVMBOX_SIZE: The mailbox size for the incoming packets on a * NETCONN_UDP. The queue size value itself is platform-dependent, but is passed * to sy...

Go to advanced search