I have got an object of this model magento/catalog/model/product and I want to use one of the EAV attributes values of it. How to access this EAV attribute through model object.There is no issue with non-EAV attributes to be used.
You should use code like:
$product = $productRepo->get($productId); $attributeValueId = $product->getCustomAttribute('my_custom_attribute_code');
You can create a new helper, add the product repository in the constructor and get eav custom attributes from here. Please check details in this post : Get product attribute in cart in Magento2