PSOC 6 DFU

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

cross mob
Anva_2903386
Level 2
Level 2
5 replies posted 5 sign-ins First reply posted

I used PSOC Creator and the examples provided PSOC6 DFU app0 and app1, then change the device to CYBLE416045-2. I get the following error when using the Bootloader Host program trying to upload app1

The bootloader reported error 'The flash row is not valid for the selected array

0 Likes
1 Solution
DheerajK_81
Moderator
Moderator
Moderator
First comment on KBA First comment on blog 5 questions asked

Hello @Anva_2903386 ,

Adding to @Alakananda_BG  response, in your linker script of App1, you need to make the following edits for it to work correctly.  Check if you have made them.
In dfu_cm4.ld file:

REGION_ALIAS("flash_core0", flash_app1_core0);
REGION_ALIAS("flash", flash_app1_core1);
REGION_ALIAS("ram", ram_app1_core1);

/* DFU SDK specific: sets an app Id */
__cy_app_id = 1;

In dfu_cm0p.ld file:

REGION_ALIAS("flash", flash_app1_core0);
REGION_ALIAS("flash_core1", flash_app1_core1);
REGION_ALIAS("ram", ram_app1_core0);

/* DFU SDK specific: sets an app Id */
__cy_app_id = 1;

With these modifications, you shouldn't this error.

Hope this helps 🙂

Regards,
Dheeraj

View solution in original post

0 Likes
3 Replies
lock attach
Attachments are accessible only for community members.
Alakananda_BG
Moderator
Moderator
Moderator
50 likes received 250 sign-ins 250 replies posted

Hi,

Can you please check with the below attached project and let us know if this works

Regards

Alakananda
0 Likes
DheerajK_81
Moderator
Moderator
Moderator
First comment on KBA First comment on blog 5 questions asked

Hello @Anva_2903386 ,

Adding to @Alakananda_BG  response, in your linker script of App1, you need to make the following edits for it to work correctly.  Check if you have made them.
In dfu_cm4.ld file:

REGION_ALIAS("flash_core0", flash_app1_core0);
REGION_ALIAS("flash", flash_app1_core1);
REGION_ALIAS("ram", ram_app1_core1);

/* DFU SDK specific: sets an app Id */
__cy_app_id = 1;

In dfu_cm0p.ld file:

REGION_ALIAS("flash", flash_app1_core0);
REGION_ALIAS("flash_core1", flash_app1_core1);
REGION_ALIAS("ram", ram_app1_core0);

/* DFU SDK specific: sets an app Id */
__cy_app_id = 1;

With these modifications, you shouldn't this error.

Hope this helps 🙂

Regards,
Dheeraj

0 Likes
Anva_2903386
Level 2
Level 2
5 replies posted 5 sign-ins First reply posted

Thank you very much, problem solved.  I appreciate your prompt reply 

0 Likes