ModusToolbox Fails to Complete Programming

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
GrCa_1363456
Level 6
Level 6
50 likes received Beta tester First comment on KBA

While attempting to program a CY8CKIT-064S0S2-4343W with AWS_Demo;

The project appears to build successfully.

After build, the programming stops after "Using CMSIS loader" line and 

Before CMSIS-DAP: SWD Supported line.

When the programming stops, the kit resets, and reverts back to the previous program loaded.

These are the only lines that show up in the Console:

=================================

Open On-Chip Debugger 0.10.0+dev-4.1.0.1058 (2020-08-11-03:47)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
** Main Flash size limited to 0x1D0000 bytes
adapter speed: 2000 kHz
adapter srst delay: 0
adapter srst pulse_width: 5
Info : auto-selecting first available session transport "swd". To override use 'transport select <transport>'.
** Using POWERUP_DELAY: 5000 ms
** Using TARGET_AP: cm0_ap
** Using ACQUIRE_TIMEOUT: 15000 ms
Info : Using CMSIS loader 'CY8C6xxA_SMIF_S25FL512S' for bank 'psoc64_smif_cm0' (footprint 15180 bytes)
srst_only separate srst_gates_jtag srst_open_drain connect_deassert_srst

 

=======================================

 

What could cause this issue?

Are there additional log files to check or other examples to try?

The board is provisioned with the same security that was used to create the project.

Greg

 

0 Likes
3 Replies
Rakshith
Moderator
Moderator
Moderator
250 likes received 1000 replies posted 750 replies posted

Hi @GrCa_1363456

Can you please confirm that the device is not in DAPLink mode when you are trying to program your device?

Do you get any error messages once the timeout occurs? Can you please share the screenshot of the error? Additionally, can you please share the serial terminal logs from the device?

Also, are you able to program the secure blinky code example with the same provisioning files?

Thanks and Regards,
Rakshith M B
0 Likes
lock attach
Attachments are accessible only for community members.

Rakshith M B,

Thanks for the response.

The kit is in Bulk mode designated by the mode LED on solid.

NO Error messages appear in the console window. Are there other places where Error messages may appear?

Of note is that the kit Resets when the console output stops. It is odd that Modus Toolbox does NOT report the expected errors: Error: unable to find CMSIS-DAP device or Error: No Valid JTAG Interface Configured.

Please clarify where to find the "Blinky code example" for a CY8CKIT-064S0S2-4343W. There are four code examples with freeRTOS for CY8CKIT_064S0S2_4343W: aws_demos; aws_tests; jitp; wifi_scanner.

Greg

0 Likes
Rakshith
Moderator
Moderator
Moderator
250 likes received 1000 replies posted 750 replies posted

Hi Greg, 

Can you please share the policy files that you have used for provisioning? Also can you please share the .cysecuretools file and the archive of the logs folder that should be created in your application directory? It would also be helpful if you can share the keys, policy, prebuilt, and packets folders.

Can you please run the command - cysecuretools version in both the Windows command prompt as well as modus-shell and share the result?

Unfortunately, the screenshot shared previously is not clear. Can you please reshare the screenshot? You can also share the logs as a text file.

Thanks and Regards,
Rakshith M B
0 Likes