Skip to content

Commit

Permalink
Add instructions to update firmware via serial port using nxpprog
Browse files Browse the repository at this point in the history
  • Loading branch information
gustavosr8 authored and augustofg committed Aug 8, 2023
1 parent 1314d68 commit 23d2590
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,18 @@ To upgrade the bootloader, use

ipmitool -I lan -H host_name_mch -A none -T 0x82 -m 0x20 -t (112 + num_slot*2 in hexadecimal) hpm upgrade newboot.hpm activate

### nxpprog
> :warning: **Disclaimer:** Only supported in AFCv4.0.2
In AFCv4, it's possible to program the firmware and bootloader via serial port using [nxpprog](https://github.com/lnls-dig/nxpprog). In order to use it, install nxpprog and then execute the following commands:
To upgrade the application, use

./nxpprog.py <serial_device> <path_to_openMMC.bin> --addr 0x20000 --control

To upgrade the bootloader, use

./nxpprog.py <serial_device> <path_to_newboot.bin> --control

## Debugging
It is possible to debug the MMC firmware using OpenOCD and GDB. First, connect OpenOCD with the debug probe using the `out/openocd.cfg` file generated by cmake in the build directory:

Expand Down

0 comments on commit 23d2590

Please sign in to comment.