Hi,
sure, for the HPEV/EVAL board it does not matter what the host system is.
The current FW uses for host communication an UART that is connected to an FT231X USB bridge.
The EVAL FW expects commands to be received over the UART and send data back over the same UART.
If you use the same UART and bypass the FT231X IC for a direct UART connection then no modifications in FW are needed.
If you use a different UART on the STM32L4 for connection to your ESP32 you need to change the UART configuration in the FW.
NOTE: The EVAL FW use 3Mbaud as UART communication speed. This is needed for fast Reader<->TAG communication (eg 640/FM0) to be able to transmit data as fast as the data is collected from the field.
Lower baud rates are possible if the ESP32 UART does not support this, but then fast link settings between Reader and TAG may collect data faster then it can be transferred and data will be lost.
For porting the middleware (host side) to ESP32. In general the middleware (and also the demo code) is written in ANSI C and should be possible to compile as is for your target platform with 2 exceptions
1. The target platform must supports a compiler to compile ANSI C code
2. The low layer platform dependent UART driver must be adopted for a different target, if not POSIX compatible.
This UART driver should be the only part in the middleware that must be modified to work. ST has currently implemented the UART driver for windows and POSIX.
The implementation can be found in the in middleware files stuhfl_bl_posix.c and stuhfl_bl_win.c. To extent to a another platform simple extent the middleware with a new UART driver implementation following the same interface definition that can be found the files stuhfl_bl_posix.c and stuhfl_bl_win.c.
BR Nick