-
Notifications
You must be signed in to change notification settings - Fork 835
New issue
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
interim ESP32-S3 changes & diagnostics #5956
Merged
dgarske
merged 4 commits into
wolfSSL:master
from
gojimmypi:Espressif_S3_wolfcrypt_random
Jan 12, 2023
Merged
Changes from 1 commit
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
b04d6ed
interim ESP32-S3 changes & diagnostics
gojimmypi 0c263a4
tidy up ESP32S3 detection. known-good sdkconfig defaults
gojimmypi 50820b6
update Espressif include.am, add sdkconfig.defaults
gojimmypi 24f8933
Espressif examples default partition params: large app
gojimmypi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
269 changes: 269 additions & 0 deletions
269
IDE/Espressif/ESP-IDF/examples/wolfssl_test/VisualGDB_wolfssl_test_IDF_v5_ESP32S3.vgdbproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,269 @@ | ||
<?xml version="1.0"?> | ||
<VisualGDBProjectSettings2 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> | ||
<Project xsi:type="com.visualgdb.project.external.esp-idf"> | ||
<CustomSourceDirectories> | ||
<Directories /> | ||
<PathStyle>Unknown</PathStyle> | ||
</CustomSourceDirectories> | ||
<AutoProgramSPIFFSPartition>true</AutoProgramSPIFFSPartition> | ||
<ProjectModeSettings> | ||
<ProjectGUID>35e5525f-318a-466e-a8c7-36548547d801</ProjectGUID> | ||
<GroupSourcesByTypes>true</GroupSourcesByTypes> | ||
<GroupSourcesByPaths>true</GroupSourcesByPaths> | ||
<HeaderScanMode>SourceDirs</HeaderScanMode> | ||
</ProjectModeSettings> | ||
</Project> | ||
<Build xsi:type="com.visualgdb.build.cmake"> | ||
<BuildLogMode xsi:nil="true" /> | ||
<ToolchainID> | ||
<ID>com.visualgdb.xtensa-esp32-elf</ID> | ||
<Version> | ||
<GCC>11.2.0</GCC> | ||
<GDB>9.2.90</GDB> | ||
<Revision>2</Revision> | ||
</Version> | ||
</ToolchainID> | ||
<RelativeSourceDirectory /> | ||
<ConfigurationType>DEBUG</ConfigurationType> | ||
<BinaryDirectory>build/$(PlatformName)/$(ConfigurationName)</BinaryDirectory> | ||
<MakeCommandTemplate> | ||
<SkipWhenRunningCommandList>false</SkipWhenRunningCommandList> | ||
<Command>$(ToolchainNinja)</Command> | ||
<WorkingDirectory>$(BuildDir)</WorkingDirectory> | ||
<BackgroundMode xsi:nil="true" /> | ||
</MakeCommandTemplate> | ||
<CMakeCommand> | ||
<SkipWhenRunningCommandList>false</SkipWhenRunningCommandList> | ||
<Command>$(SYSPROGS_CMAKE_PATH)</Command> | ||
<BackgroundMode xsi:nil="true" /> | ||
</CMakeCommand> | ||
<UpdateSourcesInCMakeFile>true</UpdateSourcesInCMakeFile> | ||
<ExportCompileCommands>false</ExportCompileCommands> | ||
<DisableToolchainFile>false</DisableToolchainFile> | ||
<CMakeMakefileType>Ninja</CMakeMakefileType> | ||
<DeployAsRoot>false</DeployAsRoot> | ||
<CMakeCleanMode>RemoveBuildDirectory</CMakeCleanMode> | ||
<UseCCache>false</UseCCache> | ||
<ProjectModeSettings> | ||
<ProjectItemSettings> | ||
<GroupSourcesByTypes>true</GroupSourcesByTypes> | ||
<GroupSourcesByPaths>true</GroupSourcesByPaths> | ||
<GroupTargetsByPaths>true</GroupTargetsByPaths> | ||
<FollowCMakeSourceGroups>false</FollowCMakeSourceGroups> | ||
<AutoRefreshProject>true</AutoRefreshProject> | ||
<AlwaysConsiderOutdated>false</AlwaysConsiderOutdated> | ||
<SortTargetsByName>true</SortTargetsByName> | ||
<RedundantTargetMode>HideOuterProjectTargets</RedundantTargetMode> | ||
<SortSourcesByName>true</SortSourcesByName> | ||
<BuildAllTargetsInSubdir>false</BuildAllTargetsInSubdir> | ||
<FoldSingleItemPathLevels>true</FoldSingleItemPathLevels> | ||
</ProjectItemSettings> | ||
<TargetSpecificSettings /> | ||
<SetLDLibraryPathFromDependentArtifacts>true</SetLDLibraryPathFromDependentArtifacts> | ||
<ProjectGUID>eadcc9ab-72b3-4b51-a838-593e5d80ddf7</ProjectGUID> | ||
<VirtualFolders /> | ||
<ConfigurationNameCase>Upper</ConfigurationNameCase> | ||
<DefaultHeaderDiscoveryMode>HeaderDirectoryAndSubdirectories</DefaultHeaderDiscoveryMode> | ||
<EnableFastUpToDateCheck>true</EnableFastUpToDateCheck> | ||
<ESPIDFExtension> | ||
<IDFCheckout> | ||
<Version>release/v5.0</Version> | ||
<Subdirectory>esp-idf/v5.0</Subdirectory> | ||
<Type>ESPIDF</Type> | ||
</IDFCheckout> | ||
<COMPort>COM20</COMPort> | ||
<SuppressTestPrerequisiteChecks>false</SuppressTestPrerequisiteChecks> | ||
<UseCCache>false</UseCCache> | ||
<DeviceID>ESP32</DeviceID> | ||
</ESPIDFExtension> | ||
</ProjectModeSettings> | ||
</Build> | ||
<CustomBuild> | ||
<PreSyncActions /> | ||
<PreBuildActions /> | ||
<PostBuildActions /> | ||
<PreCleanActions /> | ||
<PostCleanActions /> | ||
</CustomBuild> | ||
<CustomDebug> | ||
<PreDebugActions /> | ||
<PostDebugActions /> | ||
<DebugStopActions /> | ||
<BreakMode>Default</BreakMode> | ||
</CustomDebug> | ||
<DeviceTerminalSettings> | ||
<Connection xsi:type="com.sysprogs.terminal.connection.serial"> | ||
<ComPortName>COM20</ComPortName> | ||
<AdvancedSettings> | ||
<BaudRate>115200</BaudRate> | ||
<DataBits>8</DataBits> | ||
<Parity>None</Parity> | ||
<StopBits>One</StopBits> | ||
<FlowControl>None</FlowControl> | ||
</AdvancedSettings> | ||
</Connection> | ||
<LastConnectionTime>0</LastConnectionTime> | ||
<EchoTypedCharacters>false</EchoTypedCharacters> | ||
<ClearContentsWhenReconnecting>false</ClearContentsWhenReconnecting> | ||
<ReconnectAutomatically>false</ReconnectAutomatically> | ||
<DisplayMode>ASCII</DisplayMode> | ||
<Colors> | ||
<Background> | ||
<Alpha>255</Alpha> | ||
<Red>0</Red> | ||
<Green>0</Green> | ||
<Blue>0</Blue> | ||
</Background> | ||
<Disconnected> | ||
<Alpha>255</Alpha> | ||
<Red>169</Red> | ||
<Green>169</Green> | ||
<Blue>169</Blue> | ||
</Disconnected> | ||
<Text> | ||
<Alpha>255</Alpha> | ||
<Red>211</Red> | ||
<Green>211</Green> | ||
<Blue>211</Blue> | ||
</Text> | ||
<Echo> | ||
<Alpha>255</Alpha> | ||
<Red>144</Red> | ||
<Green>238</Green> | ||
<Blue>144</Blue> | ||
</Echo> | ||
<Inactive> | ||
<Alpha>255</Alpha> | ||
<Red>169</Red> | ||
<Green>169</Green> | ||
<Blue>169</Blue> | ||
</Inactive> | ||
</Colors> | ||
<HexSettings> | ||
<MaximumBytesPerLine>16</MaximumBytesPerLine> | ||
<ShowTextView>true</ShowTextView> | ||
<BreaksAroundEcho>true</BreaksAroundEcho> | ||
<AutoSend>true</AutoSend> | ||
<SendAsHex>true</SendAsHex> | ||
<TimeoutForAutoBreak>0</TimeoutForAutoBreak> | ||
</HexSettings> | ||
<LineEnding>LF</LineEnding> | ||
<TreatLFAsCRLF>false</TreatLFAsCRLF> | ||
<KeepOpenAfterExit>false</KeepOpenAfterExit> | ||
<ShowAfterProgramming>false</ShowAfterProgramming> | ||
</DeviceTerminalSettings> | ||
<CustomShortcuts> | ||
<Shortcuts /> | ||
<ShowMessageAfterExecuting>true</ShowMessageAfterExecuting> | ||
</CustomShortcuts> | ||
<UserDefinedVariables /> | ||
<ImportedPropertySheets /> | ||
<CodeSense> | ||
<Enabled>Unknown</Enabled> | ||
<ExtraSettings> | ||
<HideErrorsInSystemHeaders>true</HideErrorsInSystemHeaders> | ||
<SupportLightweightReferenceAnalysis>true</SupportLightweightReferenceAnalysis> | ||
<CheckForClangFormatFiles>true</CheckForClangFormatFiles> | ||
<FormattingEngine xsi:nil="true" /> | ||
</ExtraSettings> | ||
<CodeAnalyzerSettings> | ||
<Enabled>false</Enabled> | ||
</CodeAnalyzerSettings> | ||
</CodeSense> | ||
<Configurations> | ||
<VisualGDBConfiguration> | ||
<Name>Debug</Name> | ||
<BuildSettingsExtension xsi:type="com.visualgdb.build.external.esp-idf.cmake.extension" /> | ||
</VisualGDBConfiguration> | ||
<VisualGDBConfiguration> | ||
<Name>Release</Name> | ||
<BuildSettingsExtension xsi:type="com.visualgdb.build.external.esp-idf.cmake.extension" /> | ||
</VisualGDBConfiguration> | ||
</Configurations> | ||
<ProgramArgumentsSuggestions /> | ||
<Debug xsi:type="com.visualgdb.debug.embedded"> | ||
<AdditionalStartupCommands /> | ||
<AdditionalGDBSettings> | ||
<Features> | ||
<DisableAutoDetection>false</DisableAutoDetection> | ||
<UseFrameParameter>false</UseFrameParameter> | ||
<SimpleValuesFlagSupported>false</SimpleValuesFlagSupported> | ||
<ListLocalsSupported>false</ListLocalsSupported> | ||
<ByteLevelMemoryCommandsAvailable>false</ByteLevelMemoryCommandsAvailable> | ||
<ThreadInfoSupported>false</ThreadInfoSupported> | ||
<PendingBreakpointsSupported>false</PendingBreakpointsSupported> | ||
<SupportTargetCommand>false</SupportTargetCommand> | ||
<ReliableBreakpointNotifications>false</ReliableBreakpointNotifications> | ||
</Features> | ||
<EnableSmartStepping>false</EnableSmartStepping> | ||
<FilterSpuriousStoppedNotifications>false</FilterSpuriousStoppedNotifications> | ||
<ForceSingleThreadedMode>false</ForceSingleThreadedMode> | ||
<UseAppleExtensions>false</UseAppleExtensions> | ||
<CanAcceptCommandsWhileRunning>false</CanAcceptCommandsWhileRunning> | ||
<MakeLogFile>false</MakeLogFile> | ||
<IgnoreModuleEventsWhileStepping>true</IgnoreModuleEventsWhileStepping> | ||
<UseRelativePathsOnly>false</UseRelativePathsOnly> | ||
<ExitAction>None</ExitAction> | ||
<DisableDisassembly>false</DisableDisassembly> | ||
<ExamineMemoryWithXCommand>false</ExamineMemoryWithXCommand> | ||
<StepIntoNewInstanceEntry>app_main</StepIntoNewInstanceEntry> | ||
<ExamineRegistersInRawFormat>true</ExamineRegistersInRawFormat> | ||
<DisableSignals>false</DisableSignals> | ||
<EnableAsyncExecutionMode>false</EnableAsyncExecutionMode> | ||
<AsyncModeSupportsBreakpoints>true</AsyncModeSupportsBreakpoints> | ||
<TemporaryBreakConsolidationTimeout>0</TemporaryBreakConsolidationTimeout> | ||
<EnableNonStopMode>false</EnableNonStopMode> | ||
<MaxBreakpointLimit>0</MaxBreakpointLimit> | ||
<EnableVerboseMode>true</EnableVerboseMode> | ||
<EnablePrettyPrinters>false</EnablePrettyPrinters> | ||
</AdditionalGDBSettings> | ||
<DebugMethod> | ||
<ID>openocd</ID> | ||
<Configuration xsi:type="com.visualgdb.edp.openocd.settings.esp32"> | ||
<CommandLine>-f interface/tigard.cfg -c "adapter_khz 3000" -f target/esp32s3.cfg</CommandLine> | ||
<ExtraParameters> | ||
<Frequency xsi:nil="true" /> | ||
<BoostedFrequency xsi:nil="true" /> | ||
<ConnectUnderReset>false</ConnectUnderReset> | ||
</ExtraParameters> | ||
<LoadProgressGUIThreshold>131072</LoadProgressGUIThreshold> | ||
<ProgramMode>Enabled</ProgramMode> | ||
<StartupCommands> | ||
<string>set remotetimeout 60</string> | ||
<string>target remote :$$SYS:GDB_PORT$$</string> | ||
<string>mon gdb_breakpoint_override hard</string> | ||
<string>mon reset halt</string> | ||
<string>load</string> | ||
</StartupCommands> | ||
<ProgramFLASHUsingExternalTool>false</ProgramFLASHUsingExternalTool> | ||
<PreferredGDBPort>0</PreferredGDBPort> | ||
<PreferredTelnetPort>0</PreferredTelnetPort> | ||
<AlwaysPassSerialNumber>false</AlwaysPassSerialNumber> | ||
<SelectedCoreIndex xsi:nil="true" /> | ||
<LiveMemoryTimeout>5000</LiveMemoryTimeout> | ||
<SuggestionLogicRevision>1</SuggestionLogicRevision> | ||
<CheckFLASHSize>true</CheckFLASHSize> | ||
<FLASHSettings> | ||
<Size>size2MB</Size> | ||
<Frequency>freq40M</Frequency> | ||
<Mode>DIO</Mode> | ||
</FLASHSettings> | ||
<PatchBootloader>true</PatchBootloader> | ||
</Configuration> | ||
</DebugMethod> | ||
<AutoDetectRTOS>true</AutoDetectRTOS> | ||
<SemihostingSupport>Auto</SemihostingSupport> | ||
<SemihostingPollingDelay>0</SemihostingPollingDelay> | ||
<StepIntoEntryPoint>false</StepIntoEntryPoint> | ||
<ReloadFirmwareOnReset>false</ReloadFirmwareOnReset> | ||
<ValidateEndOfStackAddress>true</ValidateEndOfStackAddress> | ||
<StopAtEntryPoint>false</StopAtEntryPoint> | ||
<EnableVirtualHalts>false</EnableVirtualHalts> | ||
<DynamicAnalysisSettings /> | ||
<EndOfStackSymbol>_estack</EndOfStackSymbol> | ||
<TimestampProviderTicksPerSecond>0</TimestampProviderTicksPerSecond> | ||
<KeepConsoleAfterExit>false</KeepConsoleAfterExit> | ||
<UnusedStackFillPattern xsi:nil="true" /> | ||
<CheckInterfaceDrivers>true</CheckInterfaceDrivers> | ||
</Debug> | ||
</VisualGDBProjectSettings2> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please cleanup this line.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As yes, good. Thanks for finding that. That was not intended.
I've added something a bit more clear and graceful, although not yet the final product to fully and properly support all of the chipsets. This should bring operational support without HW acceleration for the ESP32-S3 (cc: @PaulMartinsen)
btw - note there's a bit of chicken-and-egg issue with the wolfSSL
user_settings.h
and target Espressif chip selection at this time. My user settings has this logic at the tail of of my file to detect the Espressif target from thesdkconfig.h
file and conditionally turn off HW acceleration:One can of course simply ensure hardware acceleration is always off in the
user_settings.h
without detecting architecture.Without turning off hardware acceleration for things like the
ESP32-S3
at this time, there will be unexpected and unintuitive compile-time errors.Also note during this update I saw what appeared to be runtime memory corruption not detected at flash time when doing this:
I fixed it by doing a
idf.py fullclean
, deleting the existingsdkconfig
and then loading at a slower baud rate:And for the regular ESP32-WROOM32:
Also - I added the known-good
sdkconfig.defaults
currently used in my WIP Espressif multichip branch.The ESP32
wolfssl_test
was confirmed to work with both the ESP32 and ESP32-S3.