GDB server for KM4

Hi @Tuxford

  1. I believe this signature refers to the one used to determine which OTA image to boot. Refer to OTA chapter of AN0400 application note. It looks like the bootloader has been uploaded normally, but it is trying to boot from another invalid image2.

  2. Uploading a binary image is not just sending it over UART. A simplified explanation is available in this post. There is also a link to a GitHub repo where someone reverse engineered the process and wrote an application to upload the binary images.

1 Like

Hi @wyy
I found that if km4 image is not uploaded or corrupted it’s impossible to establish connection by JLink to KM4. Otherwise it connects. It it good?

Hi @Tuxford,

Yes.

The reason why you need to build a km4 image before establishing the connection to JLink is that your main uploaded binary is compiled in a file called km0_km4_image2.bin.

Building an image and establishing a JLink connection are two different things. The km0_km4_image2.bin image you build can also be flashed into the RTL8720DN module via Image Tool.


To summarize the steps for image uploading using JLink

  1. download GitHub ambd_sdk
  2. make all in project_lp followed by project_hp
  3. follow AN0400 to setup GDB
  4. make flash in project_lp
  5. make flash in project_hp
    image

Thanks.

1 Like