Turn the oven on to 350°F. Grease and dust two 9-inch circular baking pans, then put them aside.
On the stovetop, toast the pecans in a medium-sized pan over medium heat. After toasting for three to five minutes, and until they have darkened in color and released their aroma, stir the pecans. Take off and place aside the heat source.
Mix the dry ingredients (flour, baking powder, baking soda, salt, and cinnamon) in a medium-sized mixing basin. Mix by whisking. Put aside.
Whisk together the sugars and egg in a large bowl. Mix thoroughly. Add the oil and mix until largely incorporated. Add the mashed pineapple and banana. Mix well until fully incorporated.
When the batter is just coming together, add the dry ingredients to the wet components and whisk.
Add the chopped toasted nuts to the batter.
Pour the batter into the prepared baking pans after dividing it. A toothpick inserted in the center should come out clean when the cakes are cooked for 30 to 35 minutes on the same rack.
After removing the cooked cakes, give the pans ten minutes to cool. After that, carefully take the cakes out of the pan and let them cool on a wire rack until they are fully room temperature.