Welcome, Guest. Please login or register.

Username: Password:

Author Topic: AstroEQ board 4.5 cant flash firmware  (Read 2038 times)

kaito83

  • Full Member
  • ***
  • Posts: 47
    • View Profile
AstroEQ board 4.5 cant flash firmware
« on: November 16, 2020, 17:10:42 »

I bought about 1 year ago the board from, with pre programmed pic18f14k50, now I have time to made the a board, but I cant flash it.
Astroeq driver successfully installed, but I got this error.
Power LED is on, USB LED just flashing.

etc
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x00
etc

I need to flash optiboot_atmega162.hex to ATMEGA162?

thank you in advance
« Last Edit: November 16, 2020, 21:21:23 by kaito83 »
Logged

kaito83

  • Full Member
  • ***
  • Posts: 47
    • View Profile
Re: AstroEQ board 4.5 cant flash firmware
« Reply #1 on: November 17, 2020, 09:08:40 »

After some research I need to burn bootloader to atmega162... update will come
Logged

TCWORLD

  • Administrator
  • *****
  • Posts: 809
    • View Profile
    • AstroEQ
Re: AstroEQ board 4.5 cant flash firmware
« Reply #2 on: November 17, 2020, 23:50:21 »

Hi,

Did I supply the ATMega as well as the PIC? (can't remember now). If so, it should already have the bootloader on it.
Logged
Tom Carpenter (AstroEQ)

kaito83

  • Full Member
  • ***
  • Posts: 47
    • View Profile
Re: AstroEQ board 4.5 cant flash firmware
« Reply #3 on: November 18, 2020, 08:04:19 »

Only the PIC, but yesterday I spent about 5 hours to flash with Ardunio IDE (ard as ISP) the bootloader to mega162 via mega2560 without any luck and also I cannot flash mega2560 -> mega2560 (bootloader) I every time I got invalid signature (PINS was ok), I read the total internet about this
Logged

TCWORLD

  • Administrator
  • *****
  • Posts: 809
    • View Profile
    • AstroEQ
Re: AstroEQ board 4.5 cant flash firmware
« Reply #4 on: November 18, 2020, 18:47:10 »

I've used ArduinoISP to program the ATMega162 with it's bootloader quite successfully in the past.

Try the following instructions:

Program your Arduino with the ArduinoISP sketch.
Open command prompt (or a terminal if linux).
Change to the bin/ directory in the AstroEQ config utility
Run the following command (changing the path to point to wherever you saved the bootloader file, and the port to match your Arduino)

Code: [Select]
avrdude -C../etc/avrdude.conf -v -v -v -patmega162 -cstk500v1 -P\\.\COM10 -b19200 -Uefuse:w:0xFB:m -Uhfuse:w:0xDC:m -Ulfuse:w:0xFF:m -Uflash:w:optiboot_atmega162.hex:i -Ulock:w:0x0F:m
Assuming you have your pin connections correct, this should work. I'd plug the chip into the AstroEQ board, making sure you apply the 12V DC power supply, that way the 16MHz crystal is connected up to the chip which will be needed for programming. You can then connect the MISO/MOSI/SCK/RESET/GND pins from the AstroEQ boards ISP header to your Arduino (don't connect the 5V line as that is powered by the AstroEQ regulator).
Logged
Tom Carpenter (AstroEQ)

kaito83

  • Full Member
  • ***
  • Posts: 47
    • View Profile
Re: AstroEQ board 4.5 cant flash firmware
« Reply #5 on: November 18, 2020, 20:03:39 »

I made the pcb 4.5 and tried to flash via ISP port, but no luck I guess the mega its bad
« Last Edit: November 18, 2020, 20:05:11 by kaito83 »
Logged

TCWORLD

  • Administrator
  • *****
  • Posts: 809
    • View Profile
    • AstroEQ
Re: AstroEQ board 4.5 cant flash firmware
« Reply #6 on: November 19, 2020, 09:13:53 »

Have you checked the board for shorts/cold solder joints/incorrect components, etc?
Logged
Tom Carpenter (AstroEQ)

kaito83

  • Full Member
  • ***
  • Posts: 47
    • View Profile
Re: AstroEQ board 4.5 cant flash firmware
« Reply #7 on: November 19, 2020, 12:06:11 »

Yes of course after soldering, I guess the mega was bad so I ordered a new one
Logged

kaito83

  • Full Member
  • ***
  • Posts: 47
    • View Profile
Re: AstroEQ board 4.5 cant flash firmware
« Reply #8 on: November 22, 2020, 15:45:48 »

Finally I can flash the bootloader with a NANO, its working well.
Logged