2024-09-20 01:58 AM
while (1)
{
HAL_GPIO_TogglePin(GPIOC, LED_G_Pin);
HAL_Delay(100);
/* USER CODE END WHILE */
/* USER CODE BEGIN 3 */
}
Solved! Go to Solution.
2024-09-20 09:06 AM
Show that code.
2024-09-20 09:07 AM
@CrazyChel wrote:whether such a board layout can affect the operation of the generator
It seems that the oscillator is operating as specified - it's just the wrong part for this application?
2024-09-20 09:11 AM
@CrazyChel wrote:I use FT2MN at 40 MHz. Its output was connected through a 10 pF capacitor and a 220 Ohm resistor, in series
Please show the actual schematic - far better than trying to describe connections in words.
But it doesn't sound at all like what the datasheet recommends:
2024-09-20 09:52 AM
I am already in contact with Abrakon, as soon as it becomes clear I will share.
It seems to me that the problem is the low amplitude of the signal at the output of the generator. Even if I disconnect the generator from the controller, the amplitude remains low.
2024-09-20 11:01 AM
0.8 Vpp isn't sufficient for the incoming clock signal to the STM32F4.
Should be able to find a different part that outputs a clock with 3.3V logic.
2024-09-24 02:54 AM
Thanks to everyone who responded.
In this case, it was my mistake with the choice of the generator. I mistakenly perceived 0.8 Vp-p as 0.8 V from the supply voltage of the generator. But it is not so. This is exactly 0.8 Vpp (peak to peak). Abrakon recommended using generators with HСМОS output.
They have a slightly lower accuracy and more consumption, but the output voltage meets the requirements of the STM32 datasheet.
Below is an excerpt from two datasheets of the CSW generator and the HCMOS. I hope this will help you not to repeat my mistakes.