Drill hole in the post and the wall the same size usually 6 5mm no need to countersink the head they will just pull in flush some about 120 140 should be fine posted 4 years ago.
Fixing fence posts to concrete wall.
If you have an existing concrete slab and you want to mount fence posts.
When installing a fence on an existing concrete pad some fence installers prefer to.
Step 3 remove the old post.
Alternatively if you did not want the bottoms of the posts covering your wall you could have collars on the posts which would then be bolted to the top of the wall.
Make the hole large enough to ensure you can get a good swing at all sides of the concrete pier.
By following this video you will be able to do it y.
In this video driveway dudes ross shows you how to easily fit and secure a post to a concrete block wall.
Set posts then.
After making sure the brick is clean and free of debris string the line tightly along the line of the fence posts or stakes and mark the point where it intersects the brick wall.
If the post is not plumb with the level sitting on the face of the post then loosen relevant fixings and insert packers between gate post and wall and repeat until face of gate post is plumb.
You can apply the solution by brushing it onto the post or dipping the post into a tub filled with the liquid.
Look for copper naphthenate solutions at home improvement and paint stores.
How to install a fence mounted to concrete surface mount fence post with anchor bolts.
Once plumb re tighten fixings and check for plumb once more.
But yes normally you would want to dig and post crete them in.