This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

LAUNCHXL-CC2640R2: IAR Workbench Off-Chip OAD Example Program does not advertise?

Part Number: LAUNCHXL-CC2640R2


Hi,

    I have tried the CCS Off-Chip OAD Example Program and it advertise after programming the hex files of bim, app and stack using SmartRF Flash Programmer 2. However the IAR Workbench Off-Chip OAD Example Program does not advertise after programming the hex files of bim, app, and stack using SmartRF Flash Programmer 2. Why did it not advertise?. I am using IAR Workbench 8.11.1

    The IAR Workbench Off-Chip OAD Example Program will advertise if I Debug Load Program and then Run. After this I am able to perform Off-Chip OAD using Btool.

- kel

  • Hello kel,

    Did you try using IAR EWARM 7.80.3? We have not tested 8.11.1 with CC2640R2 SDK 1.35. Beyond that, did you try attaching the debugger to the running target to see why it was not working?

    Best wishes
  • Hi JXS,

         I have been using SDK v1.35 with IAR Worbench 8.11.1 for 2 months now and there is no problem. I cannot use IAR workbench lower than 8.11.1 for our product development. We need to use this IAR workbench version for other non-TI based product development.

        Just recently I have been studying the SDK v1.35 Off-Chip OAD. The CCS Off-Chip OAD works and I have tried it several times. However, there is a problem with the IAR workbench version as mentioned here. My initial suspicion seems to be a linker problem. As mentioned here when I Debug Load Program at IAR Workbench it advertise.

         I need to port our product code files to IAR workbench Off-Chip OAD demo, because we need to have Off-Chip OAD feature for our product. But, with this issue mentioned here it is a problem. I would to request any from BLE team to verify this issue using IAR workbench.

    - kel

  • Hi kel,

    I did confirm that the specified IAR EWARM 7.80.3 does work with SDK 1.35.
    Try adding SPI.c/h and SPICC26XXDMA.c/h from the SDK directly to your project so the lib versions of these files are not used.

    I supposed to be totally safe from the aforementioned w_char change in the newer IAR, you'd need to rebuild the driverlib and TI Driver libs with IAR EWARM 8.11.1.

    Best wishes
  • Hi JXS,

    After adding SPI.c/h and SPICC26XXDMA.c/h, the CC2640R2 Launchpad now advertises. But, I get "OAD Download Not Successful" when I do Off-Chip OAD using BTool.

    - kel
  • Hi JXS,

         I debug the code, and it return 0 at extFlashVerifyPart(). See, below.

    - kel

  • Hi JXS,

    I set the Optimization Level from High to None and was able to do OAD. The downside is that the App OAD image size and download time has increased.

    - kel
  • Hi,

        I just want to ask one more Off-Chip OAD related questions I want to Off-Chip OAD combined App+Stack, so I set the Post Build Steps to combine app+stack. But, when I compare the map file the Flash Used is same with App only OAD Image and App+Stack OAD Image. This below is my Post Build Steps to combine App+Stack. Is it correct?

    "$TOOLS_BLE_DIR$\oad\oad_image_tool.exe" "$PROJ_DIR$\..\stack\FlashROM\Exe\ble5_simple_peripheral_cc2640r2lp_stack_FlashROM.hex" "$PROJ_DIR$\FlashROM_OAD_Offchip\Exe\$TARGET_BNAME$.hex" -t offchip -i app --imgVer 0 -ob "$PROJ_DIR$\FlashROM_OAD_Offchip\Exe\$TARGET_BNAME$.bin" -m 0x0000 --r 0x0000

    - kel

  • Never mind the map file is for the App only and does not show the total size of App+Stack. Anyway, I did a successful App+Stack OAD using the Post Build Steps above.

    - kel
  • Hi JXS,

    Another Off-Chip OAD related questions. Since we are using BLE 5 which can be configured for high throughput, what should be my setup in order to achieve fast throughput OAD. Because my App+Stack Off-Chip OAD takes 6 minutes and 51 seconds to complete and customer might complain about that.

    - kel