arduino / ArduinoCore-mbed

330 stars 195 forks source link

Issue with sdram.h using PLL2 #917

Open Bexin3 opened 3 months ago

Bexin3 commented 3 months ago

Hello, I would like to bring up an issue caused by PLL2 being used. While by itself this is fine, the issue lies in the fact that many peripherals where exact timing is importantl can only use PLL2 (which becomes incustomizable when SDRAM is used), or PLL3 which is already used by the system and also not customizable, or peripheral clock which doesn't come with dividers and multipliers. This means there's a very limited usable spectrum of frequencies, meaning there are usecases like for example one in my stm Speeduino library, where a user may need to be able to specificy exact clock for the ADC to run at, while then wanting to use RAM for transfer of large amounts of values using DMA, or another usecase. For this reason it would be great if arduino could try to not use one of these clock sources in core libraries, so they're left to be used by people where necessary.