1284p-pu programming problem ( without bootloader) [Solved]

In the first:

Using Programmer : stk500v1

In the second:

Using Programmer : avrispv2

Looks like you might have selected the wrong programmer in Arduino, or in the boards.txt file