This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2642R: serial bootloader could erase flash but upload failed

Part Number: CC2642R

Tool/software:

Hi,

  I am trying to upload FW through serial bootloader into CC2642R by UART. We follow the process to erase flash and write FW.


	//Send Establishing communication
	send_data[0] = 0x55;
	send_data[1] = 0x55;
	write(fd, send_data, 2);

	recv_len = read(fd, recv_data, 2);

	printf("recv [0]:0x%x [1]:0x%x\n", recv_data[0], recv_data[1]);

	//Get chip ID
	send_data[0] = 0x03;
	send_data[1] = 0x28;
	send_data[2] = 0x28;
	write(fd, send_data, 3);

	recv_len = read(fd, recv_data, 8);
	printf("recv [0]:0x%x [1]:0x%x [2]:0x%x [3]:0x%x [4]:0x%x [5]:0x%x [6]:0x%x [7]:0x%x\n", recv_data[0], recv_data[1], recv_data[2], recv_data[3], recv_data[4],
			recv_data[5], recv_data[6], recv_data[7]);

	send_cmd_ack();

	//Read flash size
	pages = cmd_read_flash_size();
	printf("Flash page count=0x%x\n", pages);

	send_cmd_ack();

	cmd_erase_flash_page(pages);


	cmd_send_data(sFWFile);

	cmd_crc32();
	cmd_reset();

The process to setup communication, get chip ID, erase flash, start download FW commands all run success and response ok. But when try to send data for command to write into flash (0x24), the serial bootloader just not response. Is there any possible cause for this issue (hardware or software)?

The same source code runs well on our old HW, but failed on this new HW. So the process should be ok and the UART communication looks fine also. Just wonder why it stuck on write command (0x24).

Thanks for the help.

Daniel.