FM0 with Miniprog3

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

cross mob
Chva_1477726
Level 4
Level 4
25 sign-ins 10 sign-ins First solution authored

Hi

I have finished a development on the FM0+ evaluation board and is ready to run it on my custom hardware now.

I am however not having any joy in getting it programmed through either PSoC Creator or PSoC Programmer using a MiniProg3 programmer.

I have tried self-powered and programmer powered, but the chip is not identified. In PsoC programmer, the family and device both show PSoC5 related info.

I used the same footprint for my programming port as I always use on my PSoC boards, connecting Vdd, Vss, Reset, SWD Clock and SWD Data. SWD is set as the debug port in the System Setting in PSoC Creator.

I am using the S6E1A12B0AGP20000 chip.

Any help will be greatly appreciated.

Best regards

0 Likes
1 Solution
Roy_Liu
Moderator
Moderator
Moderator
5 comments on KBA First comment on KBA 10 questions asked

I tried programming the FM0-V48-S6E1A1 with MiniProg3, I can program successfully.

This is my setup:

Hardware:

1. FM0-V48-S6E1A1 https://www.cypress.com/documentation/development-kitsboards/fm0-v48-s6e1a1-arm-cortex-m0-fm0-mcu-ev...

https://www.cypress.com/documentation/development-kitsboards/fm0-v48-s6e1a1-arm-cortex-m0-fm0-mcu-ev...2 MiniProg3 https://www.cypress.com/documentation/development-kitsboards/cy8ckit-002-psoc-miniprog3-program-and-...

Connection and jumper setup see below picture:

program fm0.jpg

Note: The wire from the MiniProg 5pin connector to the target device should be as short as possible.(Less than 20cm)

Software:

PSoC Programmer 3.28.4 https://www.cypress.com/file/478331/download

PSoC Creator 4.2 https://www.cypress.com/products/psoc-creator-integrated-design-environment-ide#tabs-0-bottom_side-7​ to create a project and build a hex file for testing.

Programmer parameter setup:

CaptureProgramFM0.PNG

Note:

Check the "Off" for AutoDetection, manually select the right Device Family and Device at the left side.

Toggle the power to power up the S6E1A device on the board.

PSoC Creator and PSoC Programmer should be the latest version.

Hope this helps.

Roy Liu

View solution in original post

0 Likes
9 Replies
Roy_Liu
Moderator
Moderator
Moderator
5 comments on KBA First comment on KBA 10 questions asked

Did you pull the MD0(mode pin) high for serial programming?

Can you share the screenshot of the PSoC Programmer which shows the parameters setup and failing message?

Can't identify device usually because of wire connecting, parameter setup.

Roy Liu
0 Likes

Hi RoyL

If I understood correctly, the mode pin os only for UART programming, not for SWD, or am I wrong?

Image from PSoC Programmer

Prog.PNG

I manually added the chip ID to the programmer options in PSoC Creator and it then identified the Chip, but says it is not supported as per the image below. This to me indicates that all connections are ok.

Creator.PNG

Your help will be appreciated. Alternatively, please tell me how the SWD connections should be made as well as the procedure to set the MiniProg3 up as well as the programming procedure.

Best regards.

Chris

0 Likes

Hi

I used the FM0+ Eval board, unpowered the on-board FM0+ chip and used the Eval board as a programmer for my custom board and get exactly the same message as when using the Miniprog3 with PSoC Creator. "Device recognised but PSoC Creator does not support using it at this time"

This seems to indicate that the issue lies within PSoC Creator as it has no issues building the project but will not program it.

Regards

Chris

0 Likes

Creator.PNG

0 Likes
Roy_Liu
Moderator
Moderator
Moderator
5 comments on KBA First comment on KBA 10 questions asked

I tried programming the FM0-V48-S6E1A1 with MiniProg3, I can program successfully.

This is my setup:

Hardware:

1. FM0-V48-S6E1A1 https://www.cypress.com/documentation/development-kitsboards/fm0-v48-s6e1a1-arm-cortex-m0-fm0-mcu-ev...

https://www.cypress.com/documentation/development-kitsboards/fm0-v48-s6e1a1-arm-cortex-m0-fm0-mcu-ev...2 MiniProg3 https://www.cypress.com/documentation/development-kitsboards/cy8ckit-002-psoc-miniprog3-program-and-...

Connection and jumper setup see below picture:

program fm0.jpg

Note: The wire from the MiniProg 5pin connector to the target device should be as short as possible.(Less than 20cm)

Software:

PSoC Programmer 3.28.4 https://www.cypress.com/file/478331/download

PSoC Creator 4.2 https://www.cypress.com/products/psoc-creator-integrated-design-environment-ide#tabs-0-bottom_side-7​ to create a project and build a hex file for testing.

Programmer parameter setup:

CaptureProgramFM0.PNG

Note:

Check the "Off" for AutoDetection, manually select the right Device Family and Device at the left side.

Toggle the power to power up the S6E1A device on the board.

PSoC Creator and PSoC Programmer should be the latest version.

Hope this helps.

Roy Liu
0 Likes

Hi Roy

Thanks a lot for your help. I got it programmed.

Just two comments.

1) It does not work well through a USB hub. It detected, erased and programmed the chip, but failed verification. Directly connected to the PC, no problem.

2) Is there a way to do it directly from PSoC Creator. I could not find a way to disable auto-detection of the chip.

Thanks again for your help.

Best regards

Chris

0 Likes
Roy_Liu
Moderator
Moderator
Moderator
5 comments on KBA First comment on KBA 10 questions asked

1. USB hub is usually not a problem, but the length of the wire as mentioned in my last reply is.

2. What message do you see when doing it from PSoC Creator?

Setup in my success experience:

1. Debug > Select Debug Target

Select Debug target.PNG

2. Port Setting > set up parameters

select debug target window1.PNG

Roy Liu
0 Likes

Hi Roy

I just need to build up another board to check as the 1st board has gone somewhere else. I will check asap.

Regards

Chris

0 Likes
Roy_Liu
Moderator
Moderator
Moderator
5 comments on KBA First comment on KBA 10 questions asked

Hi Chris,

Please create a new discussion with referring to this thread when needed.

Thanks

Roy

Roy Liu
0 Likes