missing 'upload.tool'

Hello!
i have one ATMEGA328P-PU Microcontrolle​r With ARDUINO UNO R3 Bootloader and when i try to upload a program like the blink LED it says:

Arduino: 1.6.5 (Windows 8.1), Board: "ATmega32-External 16mhz"

:0:19: warning: missing whitespace after the macro name [enabled by default]

Sketch uses 954 bytes (2%) of program storage space. Maximum is 32,000 bytes.

Global variables use 9 bytes of dynamic memory.

Error while uploading: missing 'upload.tool' configuration parameter

This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.

BTW i'm using an USBasp to program it.

If your board has an ATmega328P with an UNO bootloader, why are you trying to program it as an "ATmega32-External 16MHz"? Select "Tools->Board->Arduino UNO", "Tools->Programmer->USBasp", and "File->Upload Using Programmer".