Am a beginner to this platform , i don't know how to made the conversion . can anyone help me
Am a beginner to this platform , i don't know how to made the conversion . can anyone help me
Hello Reeshma
We have made an updated version of the nrf5-ble-mpu-simple project found on Martins Github github.com/.../sdk13
So the mpu-simple project should now work with SDK13. Please note there have been some changes in the "how to use" section, be sure to read through it and follow the instructions there.
EDIT 28.04.17:
Makefile for the nrf-ble-mpu-simple project added.
Make sure the path to the project folder is: [SDK folder]\examples\nrf5-mpu-examples-sdk13\nrf5-ble-mpu-simple\
Make sure to place the two files at path: [SDK folder]\examples\nrf5-mpu-examples-sdk13\nrf5-ble-mpu-simple\pca10040\s132\armgcc
A modification must be made to the file ble_mpu.h: Add a second set of braces around the BLE_UUID_BASE_UUID initializer, it should read
#define BLE_UUID_BASE_UUID {{0x23, 0xD1, 0x13, 0xEF, 0x5F, 0x78, 0x23, 0x15, 0xDE, 0xEF, 0x12, 0x12, 0x00, 0x00, 0x00, 0x00}} // 128-bit base UUID
When written with a single set of braces I received an error due to armgcc being picky. This workaround was described here devzone.nordicsemi.com/.../
With these files I was able to compile the project in windows.
Best regards
Jørn Frøysa
Hi sir , i have compiled , but i get the following errors, i have followed all the above mentioned steps you have mentioned.. Here am getting the following errors :
Makefile:262: Cannot find source file: ../../../../../../components/libraries/strerror/nrf_strerror.c
Makefile:262: Cannot find source file: ../../../../../../components/drivers_nrf/twi_master\nrf_drv_twi.c
Makefile:262: Cannot find include folder: ../../../../../../components/libraries/strerror
Compiling file: nrf_log_backend_serial.c
In file included from ../../../../../../components/libraries/log/src/nrf_log_backend_serial.c:27:0:
../../../../../../components/drivers_nrf/uart/nrf_drv_uart.h: In function 'nrf_drv_uart_task_address_get':
../../../../../../components/drivers_nrf/uart/nrf_drv_uart.h:383:12: error: implicit declaration of function 'nrf_uarte_task_address_get' [-Werror=implicit-function-declaration]
return nrf_uarte_task_address_get(p_instance->reg.p_uarte, (nrf_uarte_task_t)task);
^~~~~~~~~~~~~~~~~~~~~~~~~~
../../../../../../components/drivers_nrf/uart/nrf_drv_uart.h:383:54: error: 'const union ' has no member named 'p_uarte'
return nrf_uarte_task_address_get(p_instance->reg.p_uarte, (nrf_uarte_task_t)task);
^
../../../../../../components/drivers_nrf/uart/nrf_drv_uart.h:383:65: error: 'nrf_uarte_task_t' undeclared (first use in this function)
return nrf_uarte_task_address_get(p_instance->reg.p_uarte, (nrf_uarte_task_t)task);
^~~~~~~~~~~~~~~~
../../../../../../components/drivers_nrf/uart/nrf_drv_uart.h:383:65: note: each undeclared identifier is reported only once for each function it appears in
../../../../../../components/drivers_nrf/uart/nrf_drv_uart.h:383:82: error: expected ')' before 'task'
return nrf_uarte_task_address_get(p_instance->reg.p_uarte, (nrf_uarte_task_t)task);
^~~~
../../../../../../components/drivers_nrf/uart/nrf_drv_uart.h: In function 'nrf_drv_uart_event_address_get':
../../../../../../components/drivers_nrf/uart/nrf_drv_uart.h:393:12: error: implicit declaration of function 'nrf_uarte_event_address_get' [-Werror=implicit-function-declaration]
return nrf_uarte_event_address_get(p_instance->reg.p_uarte, (nrf_uarte_event_t)event);
^~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../../../../components/drivers_nrf/uart/nrf_drv_uart.h:393:55: error: 'const union ' has no member named 'p_uarte'
return nrf_uarte_event_address_get(p_instance->reg.p_uarte, (nrf_uarte_event_t)event);
^
../../../../../../components/drivers_nrf/uart/nrf_drv_uart.h:393:66: error: 'nrf_uarte_event_t' undeclared (first use in this function)
return nrf_uarte_event_address_get(p_instance->reg.p_uarte, (nrf_uarte_event_t)event);
^~~~~~~~~~~~~~~~~
../../../../../../components/drivers_nrf/uart/nrf_drv_uart.h:393:84: error: expected ')' before 'event'
return nrf_uarte_event_address_get(p_instance->reg.p_uarte, (nrf_uarte_event_t)event);
^~~~~
In file included from ../../../../../../components/libraries/log/src/nrf_log_backend_serial.c:27:0:
../../../../../../components/libraries/log/src/nrf_log_backend_serial.c: At top level:
../../../../../../components/drivers_nrf/uart/nrf_drv_uart.h:59:42: error: excess elements in union initializer [-Werror]
#define NRF_DRV_UART_PERIPHERAL(id) (void *)CONCAT_2(NRF_UART, id)
^
../../../../../../components/drivers_nrf/uart/nrf_drv_uart.h:105:22: note: in expansion of macro 'NRF_DRV_UART_PERIPHERAL'
.reg = {NRF_DRV_UART_PERIPHERAL(id)},
^~~~~~~~~~~~~~~~~~~~~~~
../../../../../../components/libraries/log/src/nrf_log_backend_serial.c:32:32: note: in expansion of macro 'NRF_DRV_UART_INSTANCE'
static nrf_drv_uart_t m_uart = NRF_DRV_UART_INSTANCE(NRF_LOG_BACKEND_UART_INSTANCE);
^~~~~~~~~~~~~~~~~~~~~
../../../../../../components/drivers_nrf/uart/nrf_drv_uart.h:59:42: note: (near initialization for 'm_uart.reg')
#define NRF_DRV_UART_PERIPHERAL(id) (void *)CONCAT_2(NRF_UART, id)
^
../../../../../../components/drivers_nrf/uart/nrf_drv_uart.h:105:22: note: in expansion of macro 'NRF_DRV_UART_PERIPHERAL'
.reg = {NRF_DRV_UART_PERIPHERAL(id)},
^~~~~~~~~~~~~~~~~~~~~~~
../../../../../../components/libraries/log/src/nrf_log_backend_serial.c:32:32: note: in expansion of macro 'NRF_DRV_UART_INSTANCE'
static nrf_drv_uart_t m_uart = NRF_DRV_UART_INSTANCE(NRF_LOG_BACKEND_UART_INSTANCE);
^~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
../../../../../../components/toolchain/gcc/Makefile.common:134: recipe for target '_build/nrf52832_xxaa_nrf_log_backend_serial.c.o' failed
make: *** [_build/nrf52832_xxaa_nrf_log_backend_serial.c.o] Error 1
Hi sir , i have compiled , but i get the following errors, i have followed all the above mentioned steps you have mentioned.. Here am getting the following errors :
Makefile:262: Cannot find source file: ../../../../../../components/libraries/strerror/nrf_strerror.c
Makefile:262: Cannot find source file: ../../../../../../components/drivers_nrf/twi_master\nrf_drv_twi.c
Makefile:262: Cannot find include folder: ../../../../../../components/libraries/strerror
Compiling file: nrf_log_backend_serial.c
In file included from ../../../../../../components/libraries/log/src/nrf_log_backend_serial.c:27:0:
../../../../../../components/drivers_nrf/uart/nrf_drv_uart.h: In function 'nrf_drv_uart_task_address_get':
../../../../../../components/drivers_nrf/uart/nrf_drv_uart.h:383:12: error: implicit declaration of function 'nrf_uarte_task_address_get' [-Werror=implicit-function-declaration]
return nrf_uarte_task_address_get(p_instance->reg.p_uarte, (nrf_uarte_task_t)task);
^~~~~~~~~~~~~~~~~~~~~~~~~~
../../../../../../components/drivers_nrf/uart/nrf_drv_uart.h:383:54: error: 'const union ' has no member named 'p_uarte'
return nrf_uarte_task_address_get(p_instance->reg.p_uarte, (nrf_uarte_task_t)task);
^
../../../../../../components/drivers_nrf/uart/nrf_drv_uart.h:383:65: error: 'nrf_uarte_task_t' undeclared (first use in this function)
return nrf_uarte_task_address_get(p_instance->reg.p_uarte, (nrf_uarte_task_t)task);
^~~~~~~~~~~~~~~~
../../../../../../components/drivers_nrf/uart/nrf_drv_uart.h:383:65: note: each undeclared identifier is reported only once for each function it appears in
../../../../../../components/drivers_nrf/uart/nrf_drv_uart.h:383:82: error: expected ')' before 'task'
return nrf_uarte_task_address_get(p_instance->reg.p_uarte, (nrf_uarte_task_t)task);
^~~~
../../../../../../components/drivers_nrf/uart/nrf_drv_uart.h: In function 'nrf_drv_uart_event_address_get':
../../../../../../components/drivers_nrf/uart/nrf_drv_uart.h:393:12: error: implicit declaration of function 'nrf_uarte_event_address_get' [-Werror=implicit-function-declaration]
return nrf_uarte_event_address_get(p_instance->reg.p_uarte, (nrf_uarte_event_t)event);
^~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../../../../components/drivers_nrf/uart/nrf_drv_uart.h:393:55: error: 'const union ' has no member named 'p_uarte'
return nrf_uarte_event_address_get(p_instance->reg.p_uarte, (nrf_uarte_event_t)event);
^
../../../../../../components/drivers_nrf/uart/nrf_drv_uart.h:393:66: error: 'nrf_uarte_event_t' undeclared (first use in this function)
return nrf_uarte_event_address_get(p_instance->reg.p_uarte, (nrf_uarte_event_t)event);
^~~~~~~~~~~~~~~~~
../../../../../../components/drivers_nrf/uart/nrf_drv_uart.h:393:84: error: expected ')' before 'event'
return nrf_uarte_event_address_get(p_instance->reg.p_uarte, (nrf_uarte_event_t)event);
^~~~~
In file included from ../../../../../../components/libraries/log/src/nrf_log_backend_serial.c:27:0:
../../../../../../components/libraries/log/src/nrf_log_backend_serial.c: At top level:
../../../../../../components/drivers_nrf/uart/nrf_drv_uart.h:59:42: error: excess elements in union initializer [-Werror]
#define NRF_DRV_UART_PERIPHERAL(id) (void *)CONCAT_2(NRF_UART, id)
^
../../../../../../components/drivers_nrf/uart/nrf_drv_uart.h:105:22: note: in expansion of macro 'NRF_DRV_UART_PERIPHERAL'
.reg = {NRF_DRV_UART_PERIPHERAL(id)},
^~~~~~~~~~~~~~~~~~~~~~~
../../../../../../components/libraries/log/src/nrf_log_backend_serial.c:32:32: note: in expansion of macro 'NRF_DRV_UART_INSTANCE'
static nrf_drv_uart_t m_uart = NRF_DRV_UART_INSTANCE(NRF_LOG_BACKEND_UART_INSTANCE);
^~~~~~~~~~~~~~~~~~~~~
../../../../../../components/drivers_nrf/uart/nrf_drv_uart.h:59:42: note: (near initialization for 'm_uart.reg')
#define NRF_DRV_UART_PERIPHERAL(id) (void *)CONCAT_2(NRF_UART, id)
^
../../../../../../components/drivers_nrf/uart/nrf_drv_uart.h:105:22: note: in expansion of macro 'NRF_DRV_UART_PERIPHERAL'
.reg = {NRF_DRV_UART_PERIPHERAL(id)},
^~~~~~~~~~~~~~~~~~~~~~~
../../../../../../components/libraries/log/src/nrf_log_backend_serial.c:32:32: note: in expansion of macro 'NRF_DRV_UART_INSTANCE'
static nrf_drv_uart_t m_uart = NRF_DRV_UART_INSTANCE(NRF_LOG_BACKEND_UART_INSTANCE);
^~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
../../../../../../components/toolchain/gcc/Makefile.common:134: recipe for target '_build/nrf52832_xxaa_nrf_log_backend_serial.c.o' failed
make: *** [_build/nrf52832_xxaa_nrf_log_backend_serial.c.o] Error 1