Hi Smithy.
Sorry that you having prostate and ED issues. The two are not always connected. You say you've had ED problems for years but only fairly recently been diagnosed with PCa. Presumably you have low grade low volume and safely contained prostate cancer, and are on active surveillance?
ED can be caused by many physical and psychological factors. It is also a major side effects of most prostate cancer treatments.
I was starting to suffer with ED when I was first diagnosed with PCa and on put on active surveillance. I was prescribed with Viagra which helped a bit. However, I later had non nerve sparing surgery which left me totally impotent. Invicorp penile injections rescued me and give a erection sufficient for penetrative sex.
https://community.prostatecanceruk.org/posts/t29845-Hooray-for-Invicorp
Get medical help, mate. Don't let a bit of embarrassment spoil your life.
Good luck and please keep us updated. 👍