PSoC™ 6 Forum Discussions
Dear Receiver,
1. 我想請教一下, PSoC62 EVK上面有裝了一顆QSPI NOR Flash, 而這個flash的操作是可以透過以下範例來操作,
https://github.com/Infineon/mtb-example-psoc6-qspi-readwrite-sfdp
2. 但今天如果我想換成以下規格(IS25LP016D)的這顆flash, 它也有支援SFDP , 但IS25LP016D這顆flash, 只有傳統的SPI介面, (https://www.issi.com/WW/pdf/25LP-WP016D.pdf)
請問此時上面第1點github的範例是否仍能照者用, 或是該注意些什麼, 或還有其他相關SPI操作的範例可以參考呢?!
謝謝
BR
HI,
I have a project created for a custom board based on PSOC62 with its corresponding Custom BSP. All seems to be correct on the firmware side. The project compiles and programs without errors, but I can't debug because I get a constant string of warnings and errors when the debugger should start and hit the main() breakpoint.
I also tried programming the part with the standalone Moudus Toolbox programmer and MiniProg4. I can erase, program, and verify OK the part, but also with the standalone programmer I get the same enless stream of errors after programming.
Here is the output in MTB 2.41 when I try to debug. Everything seems to be normal until the first "Warn : Connecting DP: stalled AP operation, issuing ABORT":
Started by GNU MCU Eclipse
Open On-Chip Debugger 0.11.0+dev-4.3.0.1746 (2021-09-16-07:59)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
Info : auto-selecting first available session transport "swd". To override use 'transport select <transport>'.
adapter speed: 2000 kHz
adapter srst delay: 25
adapter srst pulse_width: 25
** Auto-acquire enabled, use "set ENABLE_ACQUIRE 0" to disable
cortex_m reset_config sysresetreq
cortex_m reset_config sysresetreq
Warn : SFlash programming allowed for regions: USER, TOC, KEY
Info : Using CMSIS-DAPv2 interface with VID:PID=0x04b4:0xf151, serial=041410D101310400
Info : CMSIS-DAP: SWD supported
Info : CMSIS-DAP: JTAG supported
Info : CMSIS-DAP: Atomic commands supported
Info : CMSIS-DAP: FW Version = 2.0.0
Info : CMSIS-DAP: Interface Initialised (SWD)
Info : SWCLK/TCK = 1 SWDIO/TMS = 1 TDI = 0 TDO = 0 nTRST = 0 nRESET = 1
Info : CMSIS-DAP: Interface ready
Info : KitProg3: FW version: 2.50.1401
Info : KitProg3: Pipelined transfers enabled
Info : VTarget = 3.303 V
Info : kitprog3: acquiring the device (mode: reset)...
Info : clock speed 2000 kHz
Info : SWD DPIDR 0x6ba02477
Info : psoc6.cpu.cm0: hardware has 4 breakpoints, 2 watchpoints
***************************************
** Silicon: 0xE206, Family: 0x100, Rev.: 0x24 (B3)
** Detected Device: CY8C6247BZI-D54
** Detected Main Flash size, kb: 1024
** Flash Boot version: 1.20.1.45
** Chip Protection: NORMAL
***************************************
Info : psoc6.cpu.cm4: hardware has 6 breakpoints, 4 watchpoints
Info : starting gdb server for psoc6.cpu.cm0 on 3332
Info : Listening on port 3332 for gdb connections
Info : starting gdb server for psoc6.cpu.cm4 on 3333
Info : Listening on port 3333 for gdb connections
Info : SWD DPIDR 0x6ba02477
Info : kitprog3: acquiring the device (mode: reset)...
psoc6.cpu.cm0 halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x00001f34 msp: 0x080477a8
** Device acquired successfully
** psoc6.cpu.cm4: Ran after reset and before halt...
psoc6.cpu.cm4 halted due to debug-request, current mode: Thread
xPSR: 0x61000000 pc: 0x1600400c msp: 00000000
Started by GNU MCU Eclipse
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
Info : accepting 'gdb' connection on tcp/3333
Info : New GDB Connection: 1, Target psoc6.cpu.cm4, state: halted
Warn : Prefer GDB command "target extended-remote :3333" instead of "target remote :3333"
semihosting is enabled
Warn : No RTOS could be auto-detected!
Warn : No RTOS could be auto-detected!
Info : All data matches, Flash programming skipped
Info : SWD DPIDR 0x6ba02477
Info : SWD DPIDR 0x6ba02477
Warn : Connecting DP: stalled AP operation, issuing ABORT
Error executing event reset-deassert-post on target psoc6.cpu.cm0:
.../ModusToolbox/tools_2.4/openocd/bin/../scripts/target/mxs40/mxs40_common.cfg:115: Error:
in procedure 'ocd_process_reset'
in procedure 'ocd_process_reset_inner' called at file "embedded:startup.tcl", line 788
in procedure 'mxs40_reset_deassert_post' called at file "C:/Users/Guillermo/ModusToolbox/tools_2.4/openocd/bin/../scripts/target/mxs40/psoc6_common.cfg", line 134
at file "../ModusToolbox/tools_2.4/openocd/bin/../scripts/target/mxs40/mxs40_common.cfg", line 115
Info : SWD DPIDR 0x6ba02477
Warn : Connecting DP: stalled AP operation, issuing ABORT
Error executing event reset-deassert-post on target psoc6.cpu.cm4:
.../ModusToolbox/tools_2.4/openocd/bin/../scripts/target/mxs40/mxs40_common.cfg:115: Error:
in procedure 'ocd_process_reset'
in procedure 'ocd_process_reset_inner' called at file "embedded:startup.tcl", line 788
in procedure 'mxs40_reset_deassert_post' called at file "C:/Users/Guillermo/ModusToolbox/tools_2.4/openocd/bin/../scripts/target/mxs40/psoc6_common.cfg", line 169
at file ".../ModusToolbox/tools_2.4/openocd/bin/../scripts/target/mxs40/mxs40_common.cfg", line 115
Info : SWD DPIDR 0x6ba02477
Warn : Connecting DP: stalled AP operation, issuing ABORT
Polling target psoc6.cpu.cm0 failed, trying to reexamine
Info : SWD DPIDR 0x6ba02477
Warn : Connecting DP: stalled AP operation, issuing ABORT
Examination failed, GDB will be halted. Polling again in 100ms
Info : SWD DPIDR 0x6ba02477
Warn : Connecting DP: stalled AP operation, issuing ABORT
Polling target psoc6.cpu.cm4 failed, trying to reexamine
Info : SWD DPIDR 0x6ba02477
Warn : Connecting DP: stalled AP operation, issuing ABORT
Examination failed, GDB will be halted. Polling again in 100ms
Info : SWD DPIDR 0x6ba02477
... more of the same
Show LessI'm trying to develop a product using CYAT817LS-100AS72.
In relation to this, I downloaded and reviewed the data sheet downloaded from the Evaluation Kit (CY3290-CYAT817X) information link, but it did not include Evaluation Kit circuit diagram information.
Please provide the EVK circuit diagram.
Best Regards,
SunBae Yim.
Show LessHi, Friends
I am using QSPI for external flash read/write. I call
result = cy_serial_flash_qspi_init(&SFDP_SlaveSlot_1_config, CYBSP_QSPI_D0,
CYBSP_QSPI_D1, CYBSP_QSPI_D2, CYBSP_QSPI_D3, NC, NC, NC, NC,
CYBSP_QSPI_SCK, CYBSP_QSPI_SS, QSPI_BUS_FREQUENCY_HZ);
to initialize QSPI, looks like it calls huge code to initialize and it fails at :
const cyhal_resource_pin_mapping_t *sclk_map = _CYHAL_UTILS_GET_RESOURCE(cfg->gpios.sclk, cyhal_pin_map_smif_spi_clk);
/* Can't work without sclk pin */
if (NULL == sclk_map)
{
result = CYHAL_QSPI_RSLT_ERR_PIN;
}
if ((CY_RSLT_SUCCESS == result) && (false == obj->dc_configured))
{
result = _cyhal_qspi_check_pin_and_reserve(sclk_map, CYHAL_PIN_MAP_DRIVE_MODE_SMIF_SPI_CLK);
}
#endif
if (CY_RSLT_SUCCESS == result)
in function of
static cy_rslt_t _cyhal_qspi_init_common(cyhal_qspi_t *obj, const cyhal_qspi_configurator_t *cfg, uint32_t hz)
I checked the document in "MTB CAT1 Peripheral driver library". The initialize shall not be so complicated, right?
what is wrong with my configuration? Thanks in advance.
Victor
Show LessHi, all,
Thanks for the previous question
the customer now can build and run the KBA sample.
Then it turned out that they were measuring interval of UART signal. and they are wondering if it was the correct method to measure the communication interval of PSoC 6 BLE.
As far as I briefly look into the KBA sample, "_write()" function has Cy_SysLib_Delay(10) in it,
so referencing the UART interval may not give accurate time for the communication interval.
Would you teach us the recommended method to measure the communication interval?
moto
Show Less
Dears,
I have issues with starting program Dual-CPU demo. I tried restart the IDE, it keep saying the debug session already started. I work well with one core debug, are there some notes while debug Dual-CPU demo?
Show Less
I’m trying to add a USB Virtual Com port to my Free RTOS application using the emUSB library.
I added the mtb-example-psoc6-usb-cdc-echo example code modified to run in free RTOS into my existing application with multiple tasks running but the application crashes when I plug the USB cable in. - See attached screenshot
Prior to plugging in the cable all runs fine.
So I tried just the echo example on its own modified to run in Free RTOS on its own, which sort of works as expected other than in Debug I got a strange error:
Error: FreeRTOS top used priority is unreasonably big, not proceeding: 268471517
Warn : GDB request targeting non-existent thread (0x1)
Warn : GDB request targeting non-existent thread (0x1)
If I run without the debugger it runs fine.
Not sure if the issues are related or not, but either way I'm out of ideas of what the issue is. I've tried removing tasks, increasing task stack but no luck.
Any advice would be appreciated.
Regards
Dave
Show LessDears,
To reduce power consumption, power is not supplied to the MCU for a certain period of time. We don't use deepsleep or hibernate.
In our schematic, P12.5 is connected to an external IC and we want to keep P12.5 at 3.3V.
Since P12.5 is connected to the pull-up resistor, if P12.5 is set to HI-Z when power is applied to the MCU, it will be maintained at 3.3V.
Is there a way to maintain 3.3V even when the MCU is powered off?
Thanks and Regards,
YS
Hello,
We are looking to design a simple PCB board for CY8CKIT-062S2-43012 board a UWB chip and https://www.mwrf.com/technologies/components/semiconductors/article/21213537/microwaves-rf-ultrawideband-soc-sports-high-integration-low-power-use.
Is there any help or source file which can be used ?
Regards
Show LessDear all
我想請教一下 我們使用PSoC62 EVK外置的QSPI NOR Flash是可以透過範例去實現的
https://github.com/Infineon/mtb-example-psoc6-qspi-readwrite-sfdp
但今天如果我想換成 IS25LP016D 他有支援SFDP 但是只能透過SPI通訊
https://www.issi.com/WW/pdf/25LP-WP016D.pdf
是否有方法可以成功實現 Flash的讀寫
謝謝
BR
Gryfin