2024-01-14 12:35 PM
Hello,
I've written a software to use the FDCAN (classic frame 500kbit/s - PB8/PB9 pins) on Nucleo-H7ZI43 (FW_H7 V1.7.0 and stlink V3J13M4 FW)
All works fine, I'm able to transmit and to receive message with different ID and DLC by mean Innomaker CAN-USB and MCP2562FD transceiver.
If I use the same code on my PCB and the same microcontroller, FDCAN is not initialized, no messages are transmitted or received.
The electrical configuration how you can see on the schematic attached is the same of Nucleo-H7ZI43, in this case I'm using an external stlink-v3 debugger with V3J13M4B5S1 FW.
I've checked several times the connections and electrical network, all it's correct from my point of view.
To help the analisys I'm attaching also the clock.jpeg and can.c file.
Please can you support me?
Regards
Chris
Solved! Go to Solution.
2024-01-15 12:25 PM
> So question is why is GPIOB not working on PCB? What can I do to activate for it? I think we are close to the solution.
Some possibilities:
2024-01-14 12:45 PM
Why HSI?
Does the 48 MHz HSE start?
Does HSE_VALUE have the correct value?
2024-01-14 12:57 PM - edited 2024-01-14 01:07 PM
I've used the HSI and also the HSE and nothing change.
I've tried to provide also a 8 MHZ signal on OSC_IN and it does not work.
What do you suggest? Please see also the schematic.
2024-01-14 03:02 PM
If you're running the same code, on the same chip, and it's wired up the same, it would be working, so one of those has likely the issue.
2024-01-15 11:53 AM
Dear TDK,
thank you so much for your analysis.
I've configured PB8 and PB9 like output with toggling at 1 HZ and these 2 pins are fixed to zero, it seems that GPIOB is not working on the PCB, while in Nucleo PB8/PB9 works correctly.
On the PCB I've tried also the other GPIOA,E,F and toggling at 1 HZ works fine.
So question is why is GPIOB not working on PCB? What can I do to activate for it? I think we are close to the solution.
Regards
Chris
2024-01-15 12:25 PM
> So question is why is GPIOB not working on PCB? What can I do to activate for it? I think we are close to the solution.
Some possibilities:
2024-01-15 10:33 PM
Have you checked the wiring to / of the CAN transceiver? Maybe that one is placed or wired incorrectly, that might explain the low level on the GPIOs.
2024-01-16 04:15 AM
All GPIOB channels are not working, while GPIOA,C,D,E,F are working fine.
I suppose a damage on GPIOB