cancel
Showing results for 
Search instead for 
Did you mean: 

OTA ServiceManager - Flash download problem

Francesco Sarasini
Associate II
Posted on April 09, 2018 at 15:02

Hi,

I'm trying fw bluetooth update withBLE OTA service manager followingAN48

I successfully flashed theOTA_ResetManager.eww (ServiceManager workspace).

When I try to flash the Ble_Beacon

(

ServiceManager workspace) or theSensorDemo

(

ServiceManager workspace)

I got this error:

Flash download warning: 5955 out of 81539 bytes from data record CODE:[0x100558C0,0x10069742] will not be flashed 
There were warnings while generating flash loader input.�?�?

I'm using:

BlueNRG-2 device

BlueNRG-1_2 DK 2.6.0

IAR Embedded Workbench 7.1

What can I do?

Thanks

#ota #servicemanager
1 ACCEPTED SOLUTION

Accepted Solutions
Posted on April 17, 2018 at 10:09

Hi Francesco,

Please run C:\Program Files (x86)\STMicroelectronics\BlueNRG-1_2 DK 2.6.0\Utility\EWARM_BlueNRG-2_Flasher.exe

extract all the contents to where your IAR is located, by default should be:

C:\Program Files (x86)\IAR Systems\Embedded Workbench 7.5

Restart IAR EWARM, and then

modify project settings accordingly:

  • Options | General Options | Target | Device
    • set to 'ST BlueNRG-2'
  • Options | Linker | Config | Linker configuration file
    • enable 'Override default'
    • set to '$PROJ_DIR$\BlueNRG2.icf'

Best Regards,

Winfred

View solution in original post

6 REPLIES 6
Winfred LU
ST Employee
Posted on April 16, 2018 at 10:32

Hi Francesco,

I cannot replicate it with IAR EW 7.80.4.

Could you please check if project settings are correct:

  • Options | General Options | Target | Device
    • set to 'ST BlueNRG-2'
  • Options | Linker | Config | Linker configuration file
    • enable 'Override default'
    • set to '$PROJ_DIR$\BlueNRG2.icf'

Best Regards,

Winfred

Francesco Sarasini
Associate II
Posted on April 16, 2018 at 11:44

Hi Winfred, 

I have no device 

BlueNRG-2, I have only 

BlueNRG-1 in list.

This problem is related to my IAR version?

Thanks

Posted on April 17, 2018 at 03:40

Hi Francesco,

It is not related to the version of IAR EWARM.

BlueNRG-1 cannot do OTA with BLE stack version 2.x. (constrained by flash size)

0690X0000060AbzQAE.png

Please use stack version 1.x instead.

DK package is available:

http://www.st.com/content/st_com/en/products/embedded-software/evaluation-tool-software/stsw-bnrg-v1-dk.html

 

Best Regards,

Winfred

Francesco Sarasini
Associate II
Posted on April 17, 2018 at 09:59

Hi Winfred,

I am using BlueNRG-2.

I discovered that the problem is not related to OTA. The error comes out when my program size exceed flash address 0x10067FFF (160K).

Using Bluenrg ST-Link Utility I can successfully flash the device.

What can I do?

Francesco Sarasini
Associate II
Posted on April 17, 2018 at 10:38

Thanks. Now it works.

Posted on April 17, 2018 at 10:09

Hi Francesco,

Please run C:\Program Files (x86)\STMicroelectronics\BlueNRG-1_2 DK 2.6.0\Utility\EWARM_BlueNRG-2_Flasher.exe

extract all the contents to where your IAR is located, by default should be:

C:\Program Files (x86)\IAR Systems\Embedded Workbench 7.5

Restart IAR EWARM, and then

modify project settings accordingly:

  • Options | General Options | Target | Device
    • set to 'ST BlueNRG-2'
  • Options | Linker | Config | Linker configuration file
    • enable 'Override default'
    • set to '$PROJ_DIR$\BlueNRG2.icf'

Best Regards,

Winfred