To work with AMS v1 and AMS v2 boards, you can use AMS v4 instruction taking into account some differences in functionality.