MicroPhase / antsdr-fw

ANTSDR Firmware
Other
127 stars 48 forks source link

how to download the framwork to flash ? #7

Open hebinglong opened 3 years ago

hebinglong commented 3 years ago

i follow the tutorial, build the lastest source code, and set the jumper into Flash Boot mode, update the u-boot and kernel successfuly. when i try to modify u-boot code, i rebuild it with no error, and trying to download. i think i only need to update u-boot and envs. so i just type cmd like:

sudo dfu-util -a boot.dfu -D ./boot.dfu sudo dfu-util -a uboot-env.dfu -D ./uboot-env.dfu

after repower, uart has nothing to output. i try to use old sd card boot, it can be go into uboot but can not into DFU mode by push the button.

my question is: how can i update the image in flash ? using jtag ? has any tutorial?

thx.

black-pigeon commented 3 years ago

Can you enter into dfu mode now? If you can't enter into dfu mode, you can follow these steps to program the flash:

  1. set the jumper into jtag mode and power on the antsdr.
  2. connect the jtag to the host computer, burn the boot.bin in(provided by the release file) the xilinx sdk.
  3. once you burn the boot.bin into antsdr, powerdown it and set the jumper into qspi flash mode.
  4. power up the antsdr, and now you will enter into dfu mode. Then you can update the firmware to the flash.
  5. you should burn all the files(ant.dfu, boot.dfu, uboot-env.dfu) into your antsdr. once all the file is programed successfully, you can repower the antsdr, and the firmware in the flash will be updated.
hebinglong commented 3 years ago

Thankyou for the answer.

I will try the xilinx sdk.

Another question about the DFU boot flow.

  1. Has any open doc for that? or which source code I can read? or it just close in Ant company?
  2. what exactly doing in CPU when I type those commands? where am I writing in flash address? 3.what's the flash map look like?

Again, thanks for answer. It help me a lot.

Localacct21 commented 3 years ago

All of the source is available here on github. It's all open source. The only thing they have chosen to keep closed is the pcb files