How to use Jlink to download the firmware of PSOC4?

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

cross mob
David_Zhang
Level 5
Level 5
Distributor - Arrow(GC)
First like received 50 sign-ins 25 sign-ins

HI  Cypress:

     when we use Jlink to download the firmware of PSOC4, it show issue below, please advice on it, tks;

pastedImage_0.png

0 Likes
1 Solution
RyanZhao
Moderator
Moderator
Moderator
250 sign-ins First question asked 750 replies posted

Hi David,

I checked the its flash size. 0x0~0x1FFFF should be correct.

I found this discussion in Segger forum. FYI:

[SOLVED] J-Flash Error: Program does not fit into selected flash sectors - J-Link/Flasher related - ...

Maybe you can try delete last several lines in your hex file...and try programming with J-Flash again. But we don't recommend to do that. As last several rows contains some protection configuration.

Thanks,

Ryan

View solution in original post

0 Likes
4 Replies
RyanZhao
Moderator
Moderator
Moderator
250 sign-ins First question asked 750 replies posted

Hi David,

Please double-check the address size, start address and end address are right value for this part number.

Thanks,

Ryan

0 Likes
lock attach
Attachments are accessible only for community members.
David_Zhang
Level 5
Level 5
Distributor - Arrow(GC)
First like received 50 sign-ins 25 sign-ins

Dear Ryan:

We use CY8C4147 so the address is 0x00000000 ~ 0x3FFFFFFF??? TKS

发件人: RyanZ_36 <community-manager@cypress.com>

发送时间: 2019年7月24日 15:46

收件人: David W Zhang <DavidW.Zhang@arrowasia.com>

主题: Re: - How to use Jlink to download the firmware of PSOC4?

CAUTION: This email originated from outside of the organization. This message might not be safe, use caution in opening it. If in doubt, do not open the attachment nor links in the message.

<https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.cypress.com&data=02%7C01%7Cdavidw.zhang%40arrowasia.com%7Cbedd7c59449242fcb6a208d7100ae93f%7C0beb0c359cbb4feb99e5589e415c7944%7C1%7C0%7C636995511359475381&sdata=mpMIR2OIePkPCXFLikMMFmXski670w1gHSdjTzXTHBk%3D&reserved=0>

Cypress Developer Community <https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcommunity.cypress.com%2F%3Fet%3Dwatches.email.thread&data=02%7C01%7Cdavidw.zhang%40arrowasia.com%7Cbedd7c59449242fcb6a208d7100ae93f%7C0beb0c359cbb4feb99e5589e415c7944%7C1%7C0%7C636995511359475381&sdata=3ocNvNJyQRWhhcLrSDR9lTYdKqIH7jKWUxI%2Fqb5kuik%3D&reserved=0>

How to use Jlink to download the firmware of PSOC4?

reply from RyanZ_36<https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcommunity.cypress.com%2Fpeople%2FRyanZ_36%3Fet%3Dwatches.email.thread&data=02%7C01%7Cdavidw.zhang%40arrowasia.com%7Cbedd7c59449242fcb6a208d7100ae93f%7C0beb0c359cbb4feb99e5589e415c7944%7C1%7C0%7C636995511359485376&sdata=ibSvjPcGtKYkwDvyFDWXL%2Fa0AuxJ6nMQMRR9MKts3kw%3D&reserved=0> in PSoC 4 MCU Community - View the full discussion<https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcommunity.cypress.com%2Fmessage%2F203599%3Fet%3Dwatches.email.thread%23203599&data=02%7C01%7Cdavidw.zhang%40arrowasia.com%7Cbedd7c59449242fcb6a208d7100ae93f%7C0beb0c359cbb4feb99e5589e415c7944%7C1%7C0%7C636995511359485376&sdata=BJEXB6YravkFk91xzmVajmgx1xl%2BEVUoBh7jghKw868%3D&reserved=0>

0 Likes
RyanZhao
Moderator
Moderator
Moderator
250 sign-ins First question asked 750 replies posted

Hi David,

I checked the its flash size. 0x0~0x1FFFF should be correct.

I found this discussion in Segger forum. FYI:

[SOLVED] J-Flash Error: Program does not fit into selected flash sectors - J-Link/Flasher related - ...

Maybe you can try delete last several lines in your hex file...and try programming with J-Flash again. But we don't recommend to do that. As last several rows contains some protection configuration.

Thanks,

Ryan

0 Likes
David_Zhang
Level 5
Level 5
Distributor - Arrow(GC)
First like received 50 sign-ins 25 sign-ins

TKS;

发件人: RyanZ_36 <community-manager@cypress.com>

发送时间: 2019年7月24日 17:17

收件人: David W Zhang <DavidW.Zhang@arrowasia.com>

主题: Re: - How to use Jlink to download the firmware of PSOC4?

CAUTION: This email originated from outside of the organization. This message might not be safe, use caution in opening it. If in doubt, do not open the attachment nor links in the message.

<https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.cypress.com&data=02%7C01%7Cdavidw.zhang%40arrowasia.com%7C6def676eef8e480e112508d71017a1af%7C0beb0c359cbb4feb99e5589e415c7944%7C1%7C0%7C636995566005195494&sdata=t%2B%2FvQIlTj%2BCK%2B9bKr0ykmdI4anE15Qh5Lid7ufCcfU4%3D&reserved=0>

Cypress Developer Community <https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcommunity.cypress.com%2F%3Fet%3Dwatches.email.thread&data=02%7C01%7Cdavidw.zhang%40arrowasia.com%7C6def676eef8e480e112508d71017a1af%7C0beb0c359cbb4feb99e5589e415c7944%7C1%7C0%7C636995566005195494&sdata=sWm3mHJ6VD2ev6vCzIfmfQ8uAngT7S8i7m%2FijbZ8uCQ%3D&reserved=0>

How to use Jlink to download the firmware of PSOC4?

reply from RyanZ_36<https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcommunity.cypress.com%2Fpeople%2FRyanZ_36%3Fet%3Dwatches.email.thread&data=02%7C01%7Cdavidw.zhang%40arrowasia.com%7C6def676eef8e480e112508d71017a1af%7C0beb0c359cbb4feb99e5589e415c7944%7C1%7C0%7C636995566005205483&sdata=nvUDmrLV%2BdYOGHOkydExpY4XRjK6hfNF6iJOgP%2FRfnU%3D&reserved=0> in PSoC 4 MCU Community - View the full discussion<https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcommunity.cypress.com%2Fmessage%2F203621%3Fet%3Dwatches.email.thread%23203621&data=02%7C01%7Cdavidw.zhang%40arrowasia.com%7C6def676eef8e480e112508d71017a1af%7C0beb0c359cbb4feb99e5589e415c7944%7C1%7C0%7C636995566005205483&sdata=M9Gd41GrRJrZ%2FNMwAN5d%2BLOJPG4YbBDs89PRD4xJelY%3D&reserved=0>

0 Likes