Hi,
Please give me a porting or integrate guide or manual of "LIBUARTE" with ble peripheral softdevice example. Please share a source code if any.
Hi,
Please give me a porting or integrate guide or manual of "LIBUARTE" with ble peripheral softdevice example. Please share a source code if any.
Trying to implement libuarte to existing project with SDK16.
Getting a really weird errors:
static assertion failed: "Timer instance not enabled"
It fails in nrf_libuarte_async.h. line 240, this line:
NRF_LIBUARTE_DRV_DEFINE(CONCAT_2(_name, _libuarte), _uarte_idx, _timer0_idx);\
libuarte is defined in my uart.c at the beginning of file like this:
NRF_LIBUARTE_ASYNC_DEFINE(libuarte, 0, 1, 2, NRF_LIBUARTE_PERIPHERAL_NOT_USED, 255, 3);
Which means instance of TIMER 1 is used.
And in sdk_config.h I have
#define NRFX_TIMER_ENABLED 1
and
#define NRFX_TIMER1_ENABLED 1
which means it should work...no?
The second error:
'NRFX_TIMER1_INST_IDX' undeclared here (not in a function); did you mean 'NRFX_TIMER_INSTANCE'?
I don't understand...
Any help is appreciated!
Nevermind, it was "apply_old_config.h", should have defined TIMER_ENABLED and TIMER1_ENABLED. Compiles now.
Hi Jørgen Holmefjord
I am trying to implement your provided code but getting the following error. Can you please help?
You need to use nRF5 SDK v17.0.2 with this project, it seems you are using v17.0.0.
See this section in the SDK release notes:
Compatibility of SES projects: Updates and fixes in the MDK used by Segger Embedded Studio break backwards compatibility with old SES project files. To use old projects in combination with this version of the SDK (MDK), make the following updates: 1. In the flash_placement.xml file: MemorySegment name must be changed from "RAM" to "RAM1": <MemorySegment name="RAM1" start="$(RAM_PH_START)" size="$(RAM_PH_SIZE)"> 2. In the .emProject file: In "linker_section_placements_segments" you must refer to "RAM1", replacing "RAM": linker_section_placements_segments="FLASH RX 0x0 0x100000;RAM1 RWX 0x20000000 0x40000"
1. In the flash_placement.xml file: MemorySegment name must be changed from "RAM" to "RAM1": <MemorySegment name="RAM1" start="$(RAM_PH_START)" size="$(RAM_PH_SIZE)">
I have checked this and its already RAM1.
2. In the .emProject file: In "linker_section_placements_segments" you must refer to "RAM1", replacing "RAM": linker_section_placements_segments="FLASH RX 0x0 0x100000;RAM1 RWX 0x20000000 0x40000"
How can I check this? kindly guide. Thanks