This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Problem with erratum 249 and MDK V8.43.0 for IAR

Hi

For the revision 3 of the nRF52832, I've updated to the nRF5 SDK V17.1.0 to apply the workaround for erratum 249.

Afterwards, I saw that there is a newer version of the MDK for IAR (8.40.3 -> 8.43.0) and updated to the newer version.

When I now try to compile the project with IAR 8.50.9 the following errors occurs:

  • In system_nrf52_approtect.h, NRF52_CONFIGURATION_249_PRESENT should be defined before use
  • In system_nrf52.c: NRF52_CONFIGURATION_249_ENABLE should be defined before use

When I have a look at nrf52_erratas.h, there are the defines NRF52_ERRATA_249_PRESENT and NRF52_ERRATA_249_ENABLE_WORKAROUND.
Is it possible that these defines have been renamed in the new MDK 8.43.0 and should also be adjusted in nrf52_erratas.h from SDK 17.1.0?

I have a further question regarding the define ENABLE_APPROTECT. It is not clear to me where and when this must be defined.
Should this be defined in the preprocessor of the project settings when I compile an image that is not intended for debugging?
Is there a sample project that shows how to use this define?

Many thanks in advance for your help.

Best regards
Remo

Parents
  • Hi,

    I was not able to reproduce this issue. Did it work for you when you used MDK v8.40.3 ?

    I have a further question regarding the define ENABLE_APPROTECT. It is not clear to me where and when this must be defined.
    Should this be defined in the preprocessor of the project settings when I compile an image that is not intended for debugging?

    Correct. Set it like this:

    ...

    Also, see https://infocenter.nordicsemi.com/pdf/in_142_v1.1.pdf

    Is there a sample project that shows how to use this define?

    There is no specific example for this. Just add the define in your project.

  • Hi Sigurd

    Thanks for your answer.

    Thanks for the explanation for ENABLE_APPROTECT. Sorry for this question, I haven't seen that it was already described in IN-142.

    Yes, it worked with MDK 8.40.3, but not anymore with 8.43.0. When I compared the files between these MDK versions, I saw that the mentioned defines have been renamed. Could you send me your nrf52_erratas.h so that I can compare it with my version? Is that correct that the file nrf52_erratas.h is not part of the MDK?

    Edit: 18.10.2021:

    I just saw that I can download the device family pack V8.43.0 from the following site:
    http://developer.nordicsemi.com/nRF5_SDK/pieces/nRF_DeviceFamilyPack/
    This file contains the nrf52_erratas.h that differs to the one from the SDK V17.1.0. With the new file, the project compiles again.
    Is this on purpose that the nrf52_erratas.h is contained in the DeviceFamilyPack but not in the installer of the MDK V8.43.0 (nRF_MDK_8_43_0_IAR_BSDLicense.msi)?

    Best regards

  • Remo said:
    With the new file, the project compiles again.

    Great!

    Remo said:
    Is this on purpose that the nrf52_erratas.h is contained in the DeviceFamilyPack but not in the installer of the MDK V8.43.0 (nRF_MDK_8_43_0_IAR_BSDLicense.msi)?

    I see the same here. This looks like a bug with the installer. I have reported it to the team responsible for the MDK.

Reply Children
No Data
Related