Hi ,
It is possible to use j-link to flash and debug Onethinx ?
It seems that the PSoC6 is not supported yet, others are (PSoC4/5) according to the list of devices using JLINK6.40.
The chip on the module I received reads CY8C6347BZI-BLD53ES3
.
The Onethinx board seems to have an engineering sample and not a production PSoC as the part number ends on ES3
with product date 1807. The SX1261 has production date of 1808 (YYWK).
@onethinx: Is there an errata or are there things to watch out for when using the module as Engineering Samples are not yet fully qualified?
Datasheet: https://www.cypress.com/file/385921/download
I use a J-Link to flash and debug.
An adapter has been made for this:
Because 5 volts supply voltage is too high, two diodes have been used.
Then, in Modustoolbox, you can flash and debug with the J-Link.
For VScode (https://forum.onethinx.com/t/visual-studio-code-setup-advanced-users/119), the following configuration can be added to launch.json:
{
"name": "CM4 Debug J-Link",
"type": "cortex-debug",
"request": "launch",
"device": "CY8C6xx7_CM4",
"servertype": "jlink",
"cwd": "${workspaceRoot}/build",
"executable": "MyApp_signed.elf",
"interface": "swd",
"preLaunchCommands": [
"set mem inaccessible-by-default off",
"monitor speed 1000",
"monitor clrbp",
"monitor reset 0",
"monitor halt",
"monitor regs",
"monitor speed auto",
"monitor flash breakpoints 1",
"monitor semihosting enable",
"monitor reset 0",
],
"postLaunchCommands": [
"monitor clrbp",
"monitor reset 0",
"monitor halt",
"monitor reset 0",
"tbreak main",
"continue",
"monitor halt",
],
"postRestartCommands": [
"monitor clrbp",
"monitor reset 0",
"monitor halt",
"monitor reset 0",
"tbreak main",
"continue",
"monitor halt",
]
},