This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Macro doesn't work

I am using Nordic board to drive an accelarator. There is already an exist project and it can run successfully. I want to combine this project to a new project and it has some problems.

I run the new project and it said it is undeclared. The first part is not included. 

The second picture is the original result. The first part is running so it doesn't have error.

Why does it happen? How to configure the new project?

Parents
  • Hello,

    I run the new project and it said it is undeclared. The first part is not included. 

    From the looks of it, you have not enabled NRFX_TWIM0_ENABLED. Could you check your sdk_config to see if this is the case?
    Could you also tell me what error it is that is generated? If you hover your mouse over the red error dot then the error message from SES will show.

    How to configure the new project?

    The new project - is it built on top of a copy of a TWI example, or are you using the BLE peripheral template, or something else?
    You sdk_config file might not be configured as required.

    Best regards,
    Karl

Reply
  • Hello,

    I run the new project and it said it is undeclared. The first part is not included. 

    From the looks of it, you have not enabled NRFX_TWIM0_ENABLED. Could you check your sdk_config to see if this is the case?
    Could you also tell me what error it is that is generated? If you hover your mouse over the red error dot then the error message from SES will show.

    How to configure the new project?

    The new project - is it built on top of a copy of a TWI example, or are you using the BLE peripheral template, or something else?
    You sdk_config file might not be configured as required.

    Best regards,
    Karl

Children
Related