Burning hex file to ATMega328P

Started by Darshan for multirotors, April 26, 2015, 09:04:24 PM

Previous topic - Next topic

0 Members and 6 Guests are viewing this topic.

Darshan for multirotors

Hello,
I had a question
Q.. has anybody used khazama programmer to burn their hex file??
I am stuck with this
I have a multiwii and have to burn my hex file to it..
The khazama is not reading the chip signature ..
Please help  :help: :headscratch:
put your heart in flying and flying will never leave your heart

TeamRecon

Check the cable and check whether you have connected the MOSI,MISO,SCK,RST pins correctly and if you are using USBasp try using extreme Burner or avrdude GUI. if you are using the chip for the first time short the Slow SCK jumper.
I advise you to download the arduino IDE open the multiwii files in that and selecting upload using programmer.

Cheers.

Darshan for multirotors

Yes sir all of them have been connected properly .. I will try extreme burner.. By the way I have downloaded multiwii IDE but it is not letting me chose anything I mean port..
put your heart in flying and flying will never leave your heart

TeamRecon

have you selected the programmer? in arduino ide go to tools->Programmer->usbasp
and you have to select the board which you are using.

miginstruments

check out with your com port. make sure the programmer is connected to a com port whose no. is below  10. ie com1 to com 10. if its above 10 then you can change it by going into com ports settings.

Darshan for multirotors

@miginstruments.. in windows 8 the device manager doesnt show the com ports...
the problem with extreme burner is that it has no ATMega 328P.. so cant burn it with extreme..
please help me out with avrdude.. i have downloaded winavr
please guide me through
put your heart in flying and flying will never leave your heart

Darshan for multirotors

team recon... i have done it but it is showing error while uploading[ always].. so i am directly burning my file to the fc
put your heart in flying and flying will never leave your heart

TeamRecon

Hi can you send me the screen shot of the error? thanks.
you can use avrdude in command line to flash mega328p

Darshan for multirotors

I have read about that but it is not practically letting me flash it  in the avrdude
put your heart in flying and flying will never leave your heart

Darshan for multirotors

#9
Arduino is saying error compiling
IMU. cpp: In function 'void getEstimatedAttitude ()':
IMU. cpp:212:37: error : 'GYRO _ SCALE ' was not declared in this scope
Scale = (currentT - previousT) * (GYRO _ SCALE * 65536)

Error while compiling


This is what he is showing me
put your heart in flying and flying will never leave your heart

TeamRecon

there is something wrong with your multiwii code
download it again and extract the files in Documents->arduino

what chip are you using? ATmega328 Smd or PDIP ?

Darshan for multirotors

put your heart in flying and flying will never leave your heart

TeamRecon

okay so you should select arduino pro mini
please download the code again and edit the config.h file and compile and let me know what happens .

Darshan for multirotors

I have selected pro mini , usbasp but it is giving the same error
put your heart in flying and flying will never leave your heart

Darshan for multirotors

Btw sir  extreme burner doesn't support Atmega328P
put your heart in flying and flying will never leave your heart

TeamRecon

select atmega32 and when it says incorrect chip you can override it

Darshan for multirotors

put your heart in flying and flying will never leave your heart

TeamRecon

if your chip and connections are good and when you press read on the extreme burner
it will ask you incorrect chip found do you want to continue ? press yes

Darshan for multirotors

Sir the point is that there is no light on the board whereas there is light on the usbasp.. I have connected everything right..is this okay? Cause he is not asking anything
put your heart in flying and flying will never leave your heart

TeamRecon

can you post a screenshot and the picture of the board you are using?

Darshan for multirotors

There is an orange light blinking on the board. .and after it is done it says....
Task failed! Please try again
put your heart in flying and flying will never leave your heart

Darshan for multirotors

Oh wait now there is one blue ked and one orange blinking
put your heart in flying and flying will never leave your heart

Darshan for multirotors

You can find the board on Google it's called zmr multi wii lite . . I currently am not able to upload any files.. give me your watsapp number if you have
put your heart in flying and flying will never leave your heart

TeamRecon

check if you have connected the cable in correct polarity that might be an issue