Lift the bread pan out of the machine and fit the blade. Put the dough ingredients in the pan, following the order specified in the manual. Add the spice with the flour.
Fit the pan into the machine and close the lid. Set to the dough programme.
Blend the flour, butter and 40 g (1½ oz) sugar in a food processor until the mixture starts to bind together with a moist crumbly texture.
At the end of the programme turn the dough out on to a floured surface and flatten it out into a circle. Grease a 26 cm (10½ inch) loose-bottomed flan tin. Fit the dough into the tin so the dough comes slightly up the sides.
Peel, core and slice the apples and toss them with the lemon juice and the remaining 2 tablespoons sugar. Arrange the slices over the dough and scatter with the blackberries. Spoon the crumble mixture over the top and bake in a preheated oven, 200°C (400°F), Gas Mark 6, for 50—60 minutes until cooked through (test by piercing the cake in the centre to check that the dough is cooked). Cover with foil during cooking if the topping starts to over-brown.