Hi,
In my project I'm working with a nrf52840 SoC and developing an application based on you'r SDK.
I would like to understand the proper way of using the "custom_board.h" and "app_config.h" files. if I understood correctly:
- I don't need to have a "sdk_config.h" file because according to the board type I'm using (in my case nrf52840) the compiler knows which sdk_config.h file he needs to compile from the variant of "sdk_config.h" files he has in its repository.
- If I want to override some of the default nrf52840 application configuration specified in the nrf52840 "sdk_config.h" file I need to:
- create an "app_config.h" file with the same attributes from the "sdk_config.h" file that I wish to change (but with the values that I want for my project).
- add the 'USE_APP_CONFIG' definition to the "c_preprocessor_definition" attribute in the Segger .emProject file
That way the compiler will include all the content of my "app_config.h" file before the "sdk_config.h" file and my application definitions will preserve.
- I don't need to have a "custom_boards.h" file if the nrf52840 pin-map assignemnt works for me.
- If my board needs a different pin-map assignment than I need to:
- add the 'BOARD_CUSTOM' definition to the "c_preprocessor_definition" attribute in the Segger .emProject file
- create a "custom_board.h" file which overrides the default bsp configurations mentioned in "board.h" file
That way the compiler will include the content of the "custom_board.h" file before the "boards.h" file content and my board configurations will preserve
Is what I said here is correct?
thank you very much for your help.