We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The speed data type in the SdramInfo struct should be uint32_t.
If it's an int data type, the value of memClock in calcClocks is "negative" after this calculation:
uint32_t memClock = m_sdramInfo->speed * 1000;
And that forces memClock to default to 166000 no matter what value the speed is set to in the SdramInfo struct.
if (memClock > 166000) memClock = 166000;
Serial monitor before data type change:
Starting up... memClock : 4294956224 memClock : 166000 Requested kHz: -11072 Actual kHz : 165000 PLL k : 1 PLL n : 32
Serial monitor after data type change:
Starting up... memClock : 120000 memClock : 120000 Requested kHz: 120000 Actual kHz : 120000 PLL k : 1 PLL n : 23
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The speed data type in the SdramInfo struct should be uint32_t.
If it's an int data type, the value of memClock in calcClocks is "negative" after this calculation:
And that forces memClock to default to 166000 no matter what value the speed is set to in the SdramInfo struct.
Serial monitor before data type change:
Serial monitor after data type change:
The text was updated successfully, but these errors were encountered: