- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear Cypress Developer Community!
I am dealing with a simple Psoc 5 project using a TIMER and a UART and sometimes the debugger wont start my application.
After the reset interrupt entering the function "Reset"
__attribute__ ((naked))
void Reset(void)
{
__asm volatile(
...
}
causes the system to get stucked, so the main function is never reached.
Having a look at the disassembly view I can see, that the cs3-start-routine got stucked in a while loop, see red marked lines:
0x00000010 <__cs3_start_c>:
350: uint8 buffer[] = { (uint8)(BAL_MSG_ID_ACK << 8),
351: (uint8)(BAL_MSG_ID_ACK),
352: BAL_MSG_LENGTH_ACK,
353: val
354: };
0x00000010 push {r7, lr}
0x00000012 ldr r0, [pc, #50] ; (64 <__cs3_start_c+0x54>)
0x00000014 ldr r3, [pc, #50] ; (68 <__cs3_start_c+0x58>)
0x00000016 b.n 5c <__cs3_start_c+0x4c>
0x00000018 ldr r4, [r3, #4]
0x0000001A ldr r1, [r3, #8]
0x0000001C ldr r5, [r3, #c]
0x0000001E cmp r4, r1
75:
76:
77: return BPL_TransmitMessage(buffer, 4);
0x00000020 beq.n 3c <__cs3_start_c+0x2c>
0x00000022 movs r2, #0
0x00000024 b.n 32 <__cs3_start_c+0x22>
0x00000026 adds r6, r4, r2
0x00000028 adds r2, #8
0x0000002A ldrd r8, r9, [r6]
0x0000002E strd r8, r9, [r1, #0-8]
335: }
0x00000032 mov ip, r1
0x00000034 adds r1, #8
0x00000036 cmp r2, r5
0x00000038 bne.n 26 <__cs3_start_c+0x16>
I used to have this problem some weeks ago, but it somehow did not appear after I programmed the device with some other test application. However it popped up again and I cannot start any debug session, also the bootloader wont start my appication.
I am using a development board and my device is a CY8C5568AXI-060 and I am using the PSoC Creator 2.2.
(Higher PSoC Creator Versions will not work as they no more support that silicon version)
Any idea, what could cause this behavior?
Best regards,
Martin
Solved! Go to Solution.
- Labels:
-
PSoC 5LP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Your PSoC5 should have been replaced with am LP version for free, probably you missed that. Only very few CDC members still use a 3.3 version of Creator, so helping you is difficult.
A suggestion could be to contact your local Cypress FAE or distri and ask for a (late) replacement of your boards / chips.
Bob