PSoC™ 6 Forum Discussions
boot程序跳转时会进入Cy_SysLib_FaultHandler。
开发工具:Modustoobox。工程为单核,CM0没有用。CM4的flash划分为BOOT和APP。
之前在开发板上做的调试版本可以正常跳转,开发板型号是:CY8CKIT-062-BLE
现在移植到我自己的板子上(芯片型号:CY8C6244LQI-S4D92)遇到问题。
我贴一下我的ld文件和Boot的Main.贴的ld文件改了下后缀,否则不能上传
现在单独烧Boot就会进去到Cy_SysLib_FaultHandler。烧了boot和app也看不到跳转。之前用开发板调测的程序就没有这个问题。可以正常跳转到app。
My code works fine with capsense tuner3.0 but does not link to the version of capsense tuner6.2
this is my code
//Debug for cansense tuner
uint8 header[ ] = {0x0D, 0x0A};
uint8 tail[ ] = {0x00,0xFF,0xFF};
UART_PutArrayBlocking((uint8 *)(& header), sizeof(header));
UART_PutArrayBlocking((uint8 *)(& CapSense_dsRam), sizeof(CapSense_dsRam));
UART_PutArrayBlocking((uint8 *)(& tail),sizeof(tail));
why?
Show LessCapSense_ramWidgetInit.button1.fingerCap=1000
is Right?
Hi Community,
I am currently exploring the utilization of a CYKIT-028 TFT Module in conjunction with both Raspberry Pi and ESP32 microcontrollers. However, I find myself in a bit of a quandary regarding the choice of IDE (Integrated Development Environment) and the necessity of using PSOC Creator.
Given my familiarity with PSOC Creator for working with PSOC4 MCUs in my professional capacity, I wonder if it is imperative to continue using PSOC Creator for interfacing with the CYKIT-028 TFT Module, or if there are alternative IDEs compatible with this display module. Additionally, I am seeking clarification on whether the TFT module can be seamlessly integrated with microcontrollers beyond the PSOC family, such as Raspberry Pi and ESP32.
Show LessHi Infineon Community:
I tried to flash my CY8CKIT-062S2-43012 evaluation board with the "Machine_Learning_Imagimob_MTBML_Deploy" and also the "Machine_Learning_Imagimob_MTBML_Collection Data" on ModusToolbox 3.1. I got the following error on the console when going to debug mode.
***************************************
** Silicon: 0xE453, Family: 0x102, Rev.: 0x12 (A1)
** Detected Device: CY8C624ABZI-S2D44
** Detected Main Flash size, kb: 2048
** Flash Boot version: 3.1.0.378
** Chip Protection: NORMAL
***************************************
Info : [psoc6.cpu.cm4] Cortex-M4 r0p1 processor detected
Info : [psoc6.cpu.cm4] target 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: 0x41000000 pc: 0x00000190 msp: 0x080ff800
** Device acquired successfully
** psoc6.cpu.cm4: Ran after reset and before halt...
[psoc6.cpu.cm4] halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x0000012a msp: 0x080ff800
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!
Verifying region (0x10000000, 6352)... Match
Verifying region (0x10002000, 50376)... Match
Info : All data matches, Flash programming skipped
Info : SWD DPIDR 0x6ba02477
Info : SWD DPIDR 0x6ba02477
Error: Failed to write memory at 0xe0001Polling target psoc6.cpu.cm4 failed, tryin04c
g to reexamine
Info : [psoc6.cpu.cm4] Cortex-M4 r0p1 processor detected
Info : [psoc6.cpu.cm4] target has 6 breakpoints, 4 watchpoints
Info : [psoc6.cpu.cm0] external reset detected
Info : [psoc6.cpu.cm4] external reset detected
Info : SWD DPIDR 0x6ba02477
Error: Failed to write memory at 0xe000103c
Polling target psoc6.cpu.cm4 failed, trying to reexamine
Info : [psoc6.cpu.cm4] Cortex-M4 r0p1 processor detected
Info : [psoc6.cpu.cm4] target has 6 breakpoints, 4 watchpoints
Info : psoc6.cpu.cm4: Waiting up to 10.0 sec for valid Vector Table address...
Info : psoc6.cpu.cm4: Vector Table found at 0x10002000
Info : psoc6.cpu.cm4: bkpt @0x10002371, issuing SYSRESETREQ
Info : SWD DPIDR 0x6ba02477
[psoc6.cpu.cm4] halted due to breakpoint, current mode: Thread
xPSR: 0x61000000 pc: 0x10002370 msp: 0x080ff800, semihosting
Info : [psoc6.cpu.cm0] external reset detected
These are the two main errors I found:
Error: Failed to write memory at 0xe000104c
Error: Failed to write memory at 0xe000103c
I have to mention that I tested with the hello world SDK and I didn´t have any issues. I don't know if the issue is related to the size of the project or a problem with the internal memory of the MCU.
I have looked in the community for similar questions, but they didn´t help me solve my issue.
Regards,
Luis Flores
Show LessI have a PSoC 6 BLE Pioneer Kit CY8CKIT-062-BLE (Rev *B, Rev 11) that I am trying to program the Hello World code example with. I have already upgraded to KitProg3 using the Firmware Loader application.
I am able to successfully build the Hello World application and it looks like it is getting loaded onto the device but when it finishes loading, nothing happens on the board. I expect to see an LED blinking but I only see LED2 and LED4 fully on.
The last message I see in the console is:
Info : kitprog3: acquiring the device (mode: reset)...
[psoc6.cpu.cm0] halted due to debug-request, current mode: Thread
xPSR: 0x21000000 pc: 0x00001f2c msp: 0x08047798
** Device acquired successfully
** psoc6.cpu.cm4: Ran after reset and before halt...
[psoc6.cpu.cm4] halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x00000f48 msp: 0x08047800
Info : SWD DPIDR 0x6ba02477
[psoc6.cpu.cm0] halted due to debug-request, current mode: Thread
xPSR: 0x21000000 pc: 0x00001f2c msp: 0x08047798
Info : dropped 'gdb' connection
shutdown command invoked
Info : psoc6.dap: powering down debug domain...
I have attached the output log of the programmer. Am I missing a step or doing something wrong here?
Show LessDear Forum:
I do many test, I find the following phenomenon:
Before set MCU to Deep Sleep,
If I don't clear the SSR(serial status register) bit before close SPI,
MCU(PSoC6) can't enter deepsleep.
If I clear the SSR(serial status register) bit before close SPI,
MCU(PSoC6) can enter deepsleep.
I want to confirm:
does the SPI SSR bit affect MCU deepsleep or not.
Thank you.
Show LessDear Forum:
We are doing our soft with pSoC6 CY8C6137BZI-F14,
We use the Modus IDE.
But when we use psoc programmer to write Hex file produced by Modus,
psoc programmer show the following error:
Hex File parsing failure. Unknown record type.
Can you tell me the reason.
Thank you.
Show Less