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

NRFX_TWIM0_INST_IDX' undeclared and configuration problems

Hi to everyone!

I am working on the SDK 17.0.2 and my project contains nrfx_twim.h functions.

I have a problem to understand the changes that i have to make in the sdk_config.h. I have already read all the posts about these concerns but i found small differences in the sdk_config.h of this SDK that do not let me understand the right updates to make in my case.

Thanks,

polimarte

  • Hello Polimarte,

    i found small differences in the sdk_config.h of this SDK that do not let me understand the right updates to make in my case.

    Please elaborate, what small differences have you noticed in the sdk_config? Do you mean, different from previous versions of the nRF5 SDK?

    You might be seeing an artifact of the appy_old_config file, which is included in all sdk examples. This file is there to provide backwards compatibility, but its inclusion is perhaps not the most intuitive.
    Please take a look at this and this ticket, to see if it may be similar to the problems you are currently experiencing.

    Best regards,
    Karl

  • HI, sorry but i cannot understand. that's my fault because i am new to this architecture and i am in seriuos trouble with my project.

    For example the first post is referring to set PPI_ENABLED 0 and NRFX_PPI_ENABLED 1. where i can find this macros? i have to add them up manually to the sdk_config.h? i have done it but in apply_old_config there is no change at all.

    what am i missing?

    The second post suggest to define a custum sdk_config.h. The logic to follow is very different from the previous post that you sent me. 

    thanks,

    polimarte

  • Hi again Polimarte,

    Sorry, I did not mean to cause any further confusion - the linked tickets were meant as a reference to possibly similar problems, not necessarily on the exact same defines as you are seeing, but on the overarching issue causing this.

    Could you elaborate on what you meant when you said that you found small differences in the sdk_config, like you said in your original ticket?

    Could you possibly also share the contents of your sdk_config file, so that I may see what we are working with?

    polimarte said:
    1. where i can find this macros?

    If you are using Segger Embedded Studios ( SES ) then it is very useful to use the search-solution tool to quickly look through the entire solution for matches to your search. You may do this by pressing CTRL + SHIFT + F. 

    Best regards,
    Karl

  • Hi Karl, in the last period we meet a lot online!

    Could you elaborate on what you meant when you said that you found small differences in the sdk_config, like you said in your original ticket?

    I mean that possible solution were referred to older version of SDK and some macros of sdk_config.h are different.

    f you are using Segger Embedded Studios ( SES )

    I am using keil.

    My SDK is the 17.0.2 and my problem is the undefinition of "NRFX_TWIM0_INST_IDX".

    that should be defined in apply_old_config: 

    Am i right?

    in my sdk_config.h i dont find the TWI_ENABLED macro. should i add it manually? i try to that but nothing changed.

    Where i should define TWI_PRESENT and TWIM_PRESENT?

    polimarte

  • polimarte said:
    in the last period we meet a lot online!

    Hehe, yes, it seems we do, Polimarte!

    polimarte said:
    I am using keil.

    I am not too familiar with Keil personally, but I would think that they have an equal function in their IDE. You could try the same hotkey, or look for the "Search Solution" option and its hotkeys in the bar atop the program window.

    polimarte said:

    I am using keil.

    My SDK is the 17.0.2 and my problem is the undefinition of "NRFX_TWIM0_INST_IDX".

    polimarte said:
    that should be defined in apply_old_config: 

    Could you instead share the contents of your sdk_config file? It is hard to understand what is going on by looking at a screenshot.

    polimarte said:

    in my sdk_config.h i dont find the TWI_ENABLED macro. should i add it manually? i try to that but nothing changed.

    Where i should define TWI_PRESENT and TWIM_PRESENT?

    TWIM_PRESENT will be set when NRFX_TWIM_ENABLED + NRFX_TWIM*_ENABLED is set.
    This will be a lot easier to have a look at if you could share your entire sdk_config file.

    Best regards,
    Karl

Related