Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

OTA over serial failure| sdk 15.2

Hello Everyone,

I am using nrf52832 and sdk 15.2 for ota over serial. I have made bootloader for OTA over UART and tested same with nrfutil using my dfu package file. firmware is upgraded successfully and  working fine.

Now I need to upgrade firmware using host MCU. I tried sending dfu package file( .zip ) to nrf52832 over UART using slip librairy to upgrade firmware but it is not working.

Is there any compulsion to send Ping packet, PNR, MTU Packet, init packet, application and bootloader separately over UART?

Can we send directly dfu package created through nrfutil to nrf52832 from other MCU over UART?

Kindly suggest me right approach.

Parents Reply
  • Ok. I am using flow control and sending ping packet, still not receiving any data. I tried sending ping packet using slip also but not working. I am using secure dfu example pca10040_uart for bootloader. Please check 5265.sdk_config.h for configurations.

    here is my test code.

        char init_data[4]={0x09,0x01};
    	uint8_t  RespData[500];
    	uint32_t length= 2;
    	uint32_t rec_len=0, ret;
    	char *rec = "";
    //	SLIP_send(init_data,length);
    	uart_write_bytes(UART_NUM_1, init_data, length);
    	uart_wait_tx_done(UART_NUM_1, 5);
    
    	vTaskDelay(10);
    //	ret = SLIP_recv(rec,rec_len);
    //	printf("%u bytes sent.",ret);
    	uart_get_buffered_data_len(UART_NUM_1,&length);
    	int readBytes = uart_read_bytes(UART_NUM_1, RespData,length, 0);
    	printf("readBytes: %d",readBytes);

Children
Related