Dear All,
A couple of observations I came across while developing a ble app on the the nrf52840 preview pdk.  Please correct me if I am wrong.

In the following "defines" (in ...\apache-mynewt-core\hw\mcu\nordic\nrf52xxx\include\mcu\mcu.h) should not 16 be 32 as there are 32 pins assigned per port (even if they are not implemented)?
#define MCU_GPIO_PORTA(pin)    ((0 * 16) + (pin))
#define MCU_GPIO_PORTB(pin)    ((1 * 16) + (pin))

in  ...\apache-mynewt-core\hw\drivers\nimble\nrf52\src\ble_phy.c
#define NRF_TX_PWR_MAX_DBM      (4)
NRF_TX_PWR_MAX_DBM  should be 8 for the nrf52840.

To flag an out of bound array indexing I had to add -Warray-bounds to the compiler flags:
compiler.flags.default: [compiler.flags.base, -O1 -ggdb -Warray-bounds]
Should this be the default?
Thanks

Abderrezak

Reply via email to