cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 6 MCU

Anva_2903386
New Contributor II

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
3 Replies
Alakananda_BG
Moderator
Moderator

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

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
New Contributor II

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

0 Likes
Top labels