- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I can't program a Psoc4 microcontroller (CY8C4014LQI-422) with a different MCU (different from Cypress). I followed the Application notes AN84858 but I can't "Acquire the device": I receive 0x07 value on "swd_PacketAck" in about 3msec after start (I mean, the program fails on "Read_IO (TEST_MODE, &status);" but, for example, if I use a slower clock (12MHz) I receive the same error in a previous step.. always after about 3 msec from reset.
I wrote same code with same clock using a board with Psoc4-BLE as a programmer and everithing is working fine, I can re-progam my microcontroller.. this is a mistery for me.. I wanted to know if samething happens on Psoc4 after 3 msec since reset pin go high?
Thanks in advance,
Fabri
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello.
The programming of PSoC 4000 family is detailed in the following document:
The timing and commands across SWD can be executed by any CPU (with appropriate software) to program PSoC 4000. The main problem designers run into, is RESET timing. Study that section of the document carefully and you should be successful to Acquire the chip.
Good luck with your project.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello.
The programming of PSoC 4000 family is detailed in the following document:
The timing and commands across SWD can be executed by any CPU (with appropriate software) to program PSoC 4000. The main problem designers run into, is RESET timing. Study that section of the document carefully and you should be successful to Acquire the chip.
Good luck with your project.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi FaRe_3083706,
Adding to BiBi_1928986's response, referring to this thread might add insight into the issue that you are facing - errors when programming CYBLE-012011-00 via SWD from external MCU with 001-84858_AN84858
Thanks and Regards,
Rakshith M B
Rakshith M B
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanky you all for the answers and the documentation!
I found that the API from the other MCU for toggle pins was very "general" but this way the time necessary to put the pin high or low was 900usec.. It means about 1MHz!
I wrote different functions ( sda_hi(), sda_lo(), sck_hi() and sck_lo() ) writing directly the registers (without using API) and now everithing is working well!
Thanks again!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi FaRe_3083706,
Thank you for providing an update regarding the issue
Best Regards,
Rakshith
Rakshith M B