burning bootloader to atmega8

Started by Voice of deaf, April 18, 2016, 04:32:22 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

fxshoppe

Would love to help you with the project but frankly atmega8 is to small for this project. Use a nano it will solve your programming issue also. Do you have a parallel port in your cPU 25 pins 13 and 12 ( female)
BTW the female serial port you are referring is VGA port as it has 15 pins in 3 rows correct?
In case if you have a short requirement for programmer i can loan for 10 -12 days. I will pay shipping to jodhpur, u pay for the return post.Else u can buy one for around 200 good to have for future.

Voice of deaf

Well thanks a lot for the nice word frame.
I have bought a usbasp. But i have no success with it.
I couldnt even burn a blink program in the atmega 8l.
Either the pc or the usbasp is wrong configured.
Born for FPV, Forced to LOS.

Voice of deaf

I am currently curius that how flip flop could be range caliberated ?
Born for FPV, Forced to LOS.

Dipanjan

you should post the error you are getting at the Arduino IDE. What does the error say?
And I really don't understand what you are going to do with flip flops. You can generate PWM signal using 555IC and a potentiometer, but I dont understand how are you going to use flip flop

Voice of deaf

i thought that using flip flops between the radio input pots and the analog input will increase stick reading resolution and that is already done in hitec radios
although i could skip these .
okay  inm in the process of finding the root of the error in the arduino ide
i shall report in few minutes
Born for FPV, Forced to LOS.

Voice of deaf

also i have selected aruino NG and atmega8L as the mcu
Born for FPV, Forced to LOS.

Voice of deaf

java.io.IOException: Access is denied
   at java.io.WinNTFileSystem.createFileExclusively(Native Method)
   at java.io.File.createTempFile(File.java:2024)
   at processing.app.BaseNoGui.saveFile(BaseNoGui.java:1087)
   at processing.app.SketchCode.save(SketchCode.java:222)
   at processing.app.SketchData.save(SketchData.java:165)
   at processing.app.Sketch.save(Sketch.java:595)
   at processing.app.Editor.handleSave2(Editor.java:2244)
   at processing.app.Editor.handleSave(Editor.java:2224)
   at processing.app.Editor.handleExport(Editor.java:2356)
   at processing.app.Editor$18.actionPerformed(Editor.java:725)
   at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
   at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348)
   at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
   at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
   at javax.swing.AbstractButton.doClick(AbstractButton.java:376)
   at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:833)
   at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:877)
   at java.awt.Component.processMouseEvent(Component.java:6535)
   at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
   at java.awt.Component.processEvent(Component.java:6300)
   at java.awt.Container.processEvent(Container.java:2236)
   at java.awt.Component.dispatchEventImpl(Component.java:4891)
   at java.awt.Container.dispatchEventImpl(Container.java:2294)
   at java.awt.Component.dispatchEvent(Component.java:4713)
   at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4888)
   at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4525)
   at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4466)
   at java.awt.Container.dispatchEventImpl(Container.java:2280)
   at java.awt.Window.dispatchEventImpl(Window.java:2750)
   at java.awt.Component.dispatchEvent(Component.java:4713)
   at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
   at java.awt.EventQueue.access$500(EventQueue.java:97)
   at java.awt.EventQueue$3.run(EventQueue.java:709)
   at java.awt.EventQueue$3.run(EventQueue.java:703)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
   at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
   at java.awt.EventQueue$4.run(EventQueue.java:731)
   at java.awt.EventQueue$4.run(EventQueue.java:729)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
   at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
   at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
   at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
   at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
   at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Access is denied
Build options changed, rebuilding all
In file included from C:\Users\mm\Desktop\ttnmnfk\download\arduino-1.6.8\hardware\arduino\avr\cores\arduino\wiring_private.h:31:0,

                 from C:\Users\mm\Desktop\ttnmnfk\download\arduino-1.6.8\hardware\arduino\avr\cores\arduino\wiring_digital.c:26:

C:\Users\mm\Desktop\ttnmnfk\download\arduino-1.6.8\hardware\arduino\avr\cores\arduino\Arduino.h:187:0: warning: "PE" redefined [enabled by default]

#define PE 5

^

In file included from c:\users\mm\desktop\ttnmnfk\download\arduino-1.6.8\hardware\tools\avr\avr\include\avr\io.h:350:0,

                 from C:\Users\mm\Desktop\ttnmnfk\download\arduino-1.6.8\hardware\arduino\avr\cores\arduino\wiring_private.h:26,

                 from C:\Users\mm\Desktop\ttnmnfk\download\arduino-1.6.8\hardware\arduino\avr\cores\arduino\wiring_digital.c:26:

c:\users\mm\desktop\ttnmnfk\download\arduino-1.6.8\hardware\tools\avr\avr\include\avr\iom8.h:534:0: note: this is the location of the previous definition

#define PE 2

^


Sketch uses 866 bytes (12%) of program storage space. Maximum is 7,168 bytes.
Global variables use 9 bytes (0%) of dynamic memory, leaving 1,015 bytes for local variables. Maximum is 1,024 bytes.
avrdude: error: programm enable: target doesn't answer. 1
avrdude: initialization failed, rc=-1
         Double check connections and try again, or use -F to override
         this check.

its the error
Born for FPV, Forced to LOS.

Voice of deaf

when i tried to upload the blink
all obve happened
Born for FPV, Forced to LOS.

Balakrishna Reddy

#33
Try them with previous Versions of Arduino ide .
Do you have any other Arduino boards?
I did not have any success with usbasp and Arduino.
I recommend to have a Arduino board

a3ruz

Make sure that your MCU is preloaded with bootloader before uploading blink
It's all about beging in air
CT6B | HK Bixler | APM | S550 | Tarot XYZ M | Turnigy 9x | Naza M V2 | Phantom 2 | Phantom 4 | Taranis X9D+ | F450 | ZMR250 | Naze | Omnibus | Martian II | Airypix | Airytek | Drone Racers Kerala

Dipanjan

1. Double-triple check the connections.
2. Have you correctly put external crystal in to breadboard with 22pF caps?
3. Have you selected the right board from the Arduino IDE? It should be Arduino NG or Older, or something else with atmega8 in it @16MHz.
4. Please post pics of your setup if everything else fails.

This kind of error is pretty common (to me at least). I have always faced this, then also solved it either by correcting the circuit, or by making some changes in the boards.txt file.

Dipanjan

Quote from: Balakrishna Reddy on May 18, 2016, 05:02:24 PM
Try them with previous Versions of Arduino ide .
Do you have any other Arduino boards?
I did not have any success with usbasp and Arduino.
I recommend to have a Arduino board

Uspasp is pretty easy to use once you figure out the connections. I made a ISP header from female jumpers, it makes life a lot easier as you don't have to figure out the connections each and every time.

Oh,I forgot to mention, I use Windows 7 Operating system. In Linux ,there are some special commands to be executed(which I couldn't figure out) before usbasp gets access to the USB port of your computer. It wont work straight out of the box.

Voice of deaf

The wiring is correct.
The circuit is correct.
The selected board is correct.
But i need help in what to do in boards.txt  ?
Born for FPV, Forced to LOS.

Voice of deaf

Also have tried khazama to burn optiboot into atmega8l.
No success.

Would like to mention that there are 2 led on usbasp . One (red) always lit.
The other (orange) never lights up .
Why ?
Born for FPV, Forced to LOS.

Balakrishna Reddy

Red led indicates power supply to usbasp where as other led is connected to clock line.
So whenever usbasp is trying to communicate with slave MCU it has to light up or else there might be some problem. Once check for continuity b/w atmega8 pins in usbasp to the programming header and also the led. schematic is found on web which is open source.

Voice of deaf

Already checked the wiring to mcu . I think the fuses are locked.
Born for FPV, Forced to LOS.

Balakrishna Reddy

Have you tried other softwares such as progisp. If still problem persist try with a new MCU. It would be more easy if you have serial port db9.

Dipanjan

The error says there is something error with Java in your PC. Have a look at that. Do you have some other PC? Try there.
Also I guess you have selected usbasp from the programmer menu in the Arduino IDE, right?

Voice of deaf

Right
i also have installed the www.fischl.de driver for usbasp.
Prime time to give up and pick a arduino uno
Born for FPV, Forced to LOS.

Dipanjan

#44
Quote from: Voice of deaf on May 20, 2016, 04:06:43 PM
Right
i also have installed the www.fischl.de driver for usbasp.
Prime time to give up and pick a arduino uno
Best of luck buddy, keep us updated about your progress.
I am not getting much time to progress making the Tx. Will do soon.

Voice of deaf

Well thanks all for helping me.
I think it would be convinient to use arduino boards and ide to work , as i dont have programming experience.
If i succeeded in making the tx , i would post in detail.
Thanks
Born for FPV, Forced to LOS.

Balakrishna Reddy

There is a software known as xloader using which you can compile your own program in atmel studio or any .hex file and flash them on to arduino boards without actually erasing bootloader on them. So you can use your arduino board with atmel studio and also with arduino ide. But before that make sure that you buy atmega328p in spare and burn arduino bootloader as safety.
And you can even burn bootloaders with ease using arduino board rather than usbasp.

Voice of deaf

Okay thanks sir
currently i dont own any
but now i think i shall  buy some arduino boards
Born for FPV, Forced to LOS.