forked from ARMmbed/mbed-os
-
Notifications
You must be signed in to change notification settings - Fork 25
Add building, flashing, and debugging support for CY8CPROTO_062S3_4343W #501
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
Open
multiplemonomials
wants to merge
6
commits into
master
Choose a base branch
from
dev/cypress-psoc62
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
fd67df6
Start adding build and upload support for Cypress PSoC62
multiplemonomials 2092a7b
Add OpenOCD support for PSOC62
multiplemonomials 2a8b2c7
OpenOCD working!
multiplemonomials 4efea47
Debugging on PSoC 62 working!
multiplemonomials 5e1f9b7
OK it's actually really working now!
multiplemonomials 7d4dfce
Remove unneeded cmake options
multiplemonomials 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
This file contains hidden or 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 hidden or 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
File renamed without changes.
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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
15 changes: 15 additions & 0 deletions
15
targets/TARGET_Cypress/TARGET_PSOC6/ext-wifi-fw/CMakeLists.txt
This file contains hidden or 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,15 @@ | ||
add_library(mbed-cy-external-wifi-fw STATIC | ||
cy_ext_wifi_fw_reserved_region_bd.cpp | ||
CyReservedRegionBlockDevice.cpp) | ||
|
||
target_include_directories(mbed-cy-external-wifi-fw PUBLIC .) | ||
|
||
target_link_libraries(mbed-cy-external-wifi-fw PUBLIC | ||
mbed-core-flags | ||
mbed-storage-qspif) | ||
|
||
# Force linking of the cy_ext_wifi_fw_reserved_region_bd.o object file to correctly resolve weak symbols | ||
target_link_options(mbed-cy-external-wifi-fw | ||
INTERFACE | ||
LINKER:--undefined=force_link_cy_ext_wifi_fw_reserved_region_bd_o | ||
) |
File renamed without changes.
This file contains hidden or 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 hidden or 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
File renamed without changes.
This file contains hidden or 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 hidden or 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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# Mbed OS upload method configuration file for target ARDUINO_GIGA_CM7. | ||
# To change any of these parameters from their default values, set them in your build script between where you | ||
# include app.cmake and where you add mbed os as a subdirectory. | ||
# include mbed_toolchain_setup and where you add mbed os as a subdirectory. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It was bothering me that all these files still mentioned the old app.cmake name, so I batch updated them. |
||
|
||
# Notes: | ||
# 1. To use this target with PyOCD, you need to install a pack: `pyocd pack install STM32H747XIHx`. | ||
|
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,51 @@ | ||
# Mbed OS upload method configuration file for target CY8CPROTO_062S3_4343W. | ||
# To change any of these parameters from their default values, set them in your build script between where you | ||
# include mbed_toolchain_setup and where you add mbed os as a subdirectory. | ||
|
||
# Notes: | ||
# 1. The KitProg3 programmer on this board boots up in KitProg mode. To enable mass storage device mode, press the | ||
# button labeled "MODE" near the USB port to switch to DAPLink mode. The MBED and PYOCD upload methods need | ||
# the board to be in DAPLink mode (which is deprecated by Infineon). | ||
# 2. Mbed upload method seems VERY slow on this board (takes like 1 minute to flash!). | ||
# 3. PyOCD is tested working correctly in DAPLink mode. In KitProg mode it can flash but debugging does | ||
# not appear to work correctly. | ||
# 4. Infineon's fork of OpenOCD must be used to program this device as they have not yet upstreamed their | ||
# changes. This can be downloaded from here: https://github.com/Infineon/openocd/releases | ||
# Then configure CMake to use it with `-DOpenOCD=/path/to/infineon/openocd` | ||
# 5. If using the wi-fi module on this board, you need to flash the wi-fi module firmware to the QSPI flash. | ||
# This is done automatically via Infineon's OpenOCD scripts when flashing any project that uses wifi with OpenOCD. | ||
# Flashing via other methods will likely not work for wifi projects. | ||
|
||
# General config parameters | ||
# ------------------------------------------------------------- | ||
set(UPLOAD_METHOD_DEFAULT MBED) | ||
|
||
# Generally we are only interested in the CM4 core which is index 1 | ||
set(MBED_DEBUG_CORE_INDEX 1) | ||
|
||
# Config options for MBED | ||
# ------------------------------------------------------------- | ||
|
||
set(MBED_UPLOAD_ENABLED TRUE) | ||
set(MBED_RESET_BAUDRATE 115200) | ||
|
||
# Config options for PYOCD | ||
# ------------------------------------------------------------- | ||
|
||
set(PYOCD_UPLOAD_ENABLED TRUE) | ||
set(PYOCD_TARGET_NAME cy8c6xx5) | ||
set(PYOCD_CLOCK_SPEED 4000k) | ||
|
||
# Config options for OpenOCD | ||
# ------------------------------------------------------------- | ||
|
||
set(OPENOCD_UPLOAD_ENABLED TRUE) | ||
set(OPENOCD_CHIP_CONFIG_COMMANDS | ||
-s ${CMAKE_CURRENT_LIST_DIR}/openocd_cfgs/CY8CPROTO_062S3_4343W | ||
-f ${CMAKE_CURRENT_LIST_DIR}/openocd_cfgs/infineon_psoc62_c8cxx5.cfg) | ||
|
||
# Seems like a regular 'monitor reset' does not work correctly for this chip. This is the command sequence | ||
# used by ModusToolbox IDE. | ||
set(OPENOCD_GDB_RESET_SEQUENCE | ||
"monitor reset run" | ||
"monitor psoc6 reset_halt sysresetreq") |
This file contains hidden or 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 hidden or 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
Oops, something went wrong.
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.
This should be a big quality of life improvement :)