Dear Nordic Support Team,
I’ve bought an evaluation kit here : http://t-yuden.com/ut/product/category/module/EYSHJNZWZ.html
and i would like to program the chip, so i could control an RGB LED over BLE.
I tried to use the
nRF5_SDK\examples\ble_peripheral\ble_app_uart\pca10040\s132\arm5_no_packs for BLE communication
and i have successfully controlled the RGB led on my board using the pins from 2-4 with the
nRF5_SDK\examples\peripheral\low_power_pwm\pca10040\blank\arm5_no_packs example,
but when i tried to combine them together, so i could start the pwm, when some data received on the BLE, the Keil uVision 5 IDE told me that i am over the 32Kb restriction, and i cant build the .Hex file from that point.
This is how i modified the uart part of the example
/**@brief Function for handling the data from the Nordic UART Service.
*
* @details This function will process the data received from the Nordic UART BLE Service and send
* it to the UART module.
*
* @param[in] p_evt Nordic UART Service event.
*/
/**@snippet [Handling the data received over BLE] */
static void nus_data_handler(ble_nus_evt_t * p_evt)
{
if (p_evt->type == BLE_NUS_EVT_RX_DATA)
{
uint32_t err_code;
NRF_LOG_HEXDUMP_DEBUG(p_evt->params.rx_data.p_data, p_evt->params.rx_data.length);
//IF „ON” Command sent from connected device, then start PWM
if ( p_evt->params.rx_data.p_data[0] == 'O' && p_evt->params.rx_data.p_data[1] == 'N' )
{
//start led with the default settings
pwm_init();
}
if (p_evt->params.rx_data.p_data[p_evt->params.rx_data.length - 1] == '\r')
{
while (app_uart_put('\n') == NRF_ERROR_BUSY);
}
}
}
/**@snippet [Handling the data received over BLE] */
Am i on a right path here to achieve my goal or should i use another example as a start point?
Should i use another IDE to develop on this device ?
If anyone could point me int he right direction would be great and appreciated as well.
Thanks in advance