collapse

* Posts Recentes

Amplificador - Rockboard HA 1 In-Ear por almamater
[Ontem às 19:13]


O que é isto ? por KammutierSpule
[26 de Março de 2024, 19:35]


Bateria - Portátil por almamater
[25 de Março de 2024, 22:14]


Emulador NES em ESP32 por dropes
[13 de Março de 2024, 21:19]


Escolher Osciloscópio por jm_araujo
[06 de Fevereiro de 2024, 23:07]


TP4056 - Dúvida por dropes
[31 de Janeiro de 2024, 14:13]


Leitura de dados por Porta Serie por jm_araujo
[22 de Janeiro de 2024, 14:00]


Distancia Cabo por jm_araujo
[08 de Janeiro de 2024, 16:30]


Meu novo robô por josecarlos
[06 de Janeiro de 2024, 16:46]


Laser Engraver - Alguém tem? por almamater
[16 de Dezembro de 2023, 14:23]

Autor Tópico: LDmicro com Tiny bootloader  (Lida 9999 vezes)

0 Membros e 1 Visitante estão a ver este tópico.

Offline Sérgio_Sena

  • Administrator
  • Mini Robot
  • *****
  • Mensagens: 1.649
    • Electronic Gear for Musicians
LDmicro com Tiny bootloader
« em: 19 de Julho de 2009, 20:08 »
Finalmente funciona.
Com a ajuda do autor do programa, chegámos lá.

Podem baixar o novo executavel lá disponivel, e usar os HEX compilados pelo LDmicro, com o bootloader Tiny.

Funciona bem. Tanto em programação automática pelo Tiny, como se programar-mos o HEX manualmente no PIC. Sem falhas.

Parece que o Tiny precisa de ver certas instruções no inicio do programa, para não se zangar.



Offline TigPT

  • Administrator
  • Mini Robot
  • *****
  • Mensagens: 5.372
    • Tiago Rodrigues
Re:LDmicro com Tiny bootloader
« Responder #1 em: 20 de Julho de 2009, 00:49 »
Ainda bem, obrigado por deixares o link e o teu testemunho :D

Offline jp_

  • Mini Robot
  • *
  • Mensagens: 188
Re:LDmicro com Tiny bootloader
« Responder #2 em: 20 de Julho de 2009, 10:29 »
Porreiro, Quando receber o meu pi16f886 com o Tiny bootloader programado vou fazer os testes.

Mas fica a faltar uma pequena coisa...

Vamos ter que pedir ao Jonathan Westhues que coloque uma janela dentro do software dele

para chamar o tyni e carregar automaticamente o .hex.

Assim sim ficava perfeito não concordas?

jp_
 
« Última modificação: 20 de Julho de 2009, 10:37 por jp_ »

Offline Sérgio_Sena

  • Administrator
  • Mini Robot
  • *****
  • Mensagens: 1.649
    • Electronic Gear for Musicians
Re:LDmicro com Tiny bootloader
« Responder #3 em: 20 de Julho de 2009, 11:12 »
Uma janela não digo, mas um botão de programação, isso sim.
De qualquer maneira, tem que ser configurado dentro do programa. O tiny tem que saber algumas configurações. E acho que o dá para usar chamando-o sem janelas abertas.

Agora é a tua vez de o chatear  ;D vá vá



Offline jp_

  • Mini Robot
  • *
  • Mensagens: 188
Re:LDmicro com Tiny bootloader
« Responder #4 em: 20 de Julho de 2009, 12:15 »
Sim eu não me importo de o chatear até porque ele tem sido rápido a responder e parece estar interessado em melhorar o ldmicro.

O problema é que ele depois pede-me para fazer os testes e eu ainda não tenho o PIC16f886, nem tenho a tua experiência com o Tiny.

Mas vou ver se vejo no site do Tiny se existe forma de chamar o programa e carregar o ficheiro .hex em linha de comandos, depois de saber qual é o comando é só pedir a ele que coloque mais um comando para programar e esse comando tem que dar para escolher o programador. De forma a que se quiserem usar outro programa ou programador seja configurável.

Que achas da ideia??

jp_

Offline Sérgio_Sena

  • Administrator
  • Mini Robot
  • *****
  • Mensagens: 1.649
    • Electronic Gear for Musicians
Re:LDmicro com Tiny bootloader
« Responder #5 em: 20 de Julho de 2009, 13:21 »
Sim, experimenta com o Tiny primeiro.
Mas testa com a nova versão do LDmicro, porque se fizeres com a versão antiga, estraga o bootloader gravado no PIC.

E não te preocupes em ver que comandos é que lhe tens que dar. Ele já me deu provas de saber o que anda a fazer.

Perguntas-lhe se ele está disponivel para incluir o Tiny no LDmicro. Com esperança positiva, temos isso maneirinho.

Escreve o que eu te digo: sou homem para lhe enviar uma garrafinha de vinho, assim que estiver tudo a funcionar  ;D

Offline jp_

  • Mini Robot
  • *
  • Mensagens: 188
Re:LDmicro com Tiny bootloader
« Responder #6 em: 20 de Julho de 2009, 15:56 »
Já mandei o anzol para a água agora é esperar que ele morda :D :D

Há e como isco usei as tuas garrafas de vinho  ;) ;)

É só esperar, não tarda nada tenho o meu micro PLC a funcionar com bootloader  :D :D

jp_

Offline Sérgio_Sena

  • Administrator
  • Mini Robot
  • *****
  • Mensagens: 1.649
    • Electronic Gear for Musicians
Re:LDmicro com Tiny bootloader
« Responder #7 em: 20 de Julho de 2009, 16:19 »
Vais ter que descalçar a bota sózinho, eu disse que mandava uma, não uma caixa  ;D e agora como é que vai ser ? hihi



Offline jp_

  • Mini Robot
  • *
  • Mensagens: 188
Re:LDmicro com Tiny bootloader
« Responder #8 em: 20 de Julho de 2009, 16:27 »
Vamos ver pode ser que mais alguém queira oferecer o resto ;)

É a tendência para aumentar as coisas...

Se não for mais nada manda-se uma caixa com uma garrafa  ;D ;D

Eu queria era que ele aderi-se à ideia..

jp_

Offline jp_

  • Mini Robot
  • *
  • Mensagens: 188
Re:LDmicro com Tiny bootloader
« Responder #9 em: 21 de Julho de 2009, 12:08 »
Citar
O problema é que ele depois pede-me para fazer os testes e eu ainda não tenho o PIC16f886, nem tenho a tua experiência com o Tiny.

Ele gostou da ideia, mas como eu já estava a adivinhar pergunta-me se como fazer com que o tiny arranque e carregue o ficheiro já compilado.

Eu ainda não encontrei o manual do tiny com as instruções de linha de comandos.

Existe?

jp_

Offline Sérgio_Sena

  • Administrator
  • Mini Robot
  • *****
  • Mensagens: 1.649
    • Electronic Gear for Musicians
Re:LDmicro com Tiny bootloader
« Responder #10 em: 21 de Julho de 2009, 12:31 »
Vou ver se dá para fazer isso.
Como nunca precisei, nunca verifiquei.

Uma olhada rápida, diz-me que não.

Mas... é preciso é calma. Vou contactar o autor do Tiny.



Offline jp_

  • Mini Robot
  • *
  • Mensagens: 188
Re:LDmicro com Tiny bootloader
« Responder #11 em: 21 de Julho de 2009, 12:34 »
OK, calma é o que mais tenho :) :)

jp_

Offline jp_

  • Mini Robot
  • *
  • Mensagens: 188
Re:LDmicro com Tiny bootloader
« Responder #12 em: 27 de Julho de 2009, 15:47 »
Depois de muitas tentativas....

Sempre consegui....

aqui está o testemunho de um código feito no ldmicro e carregado no pic16f886 com o tiny bootloader:

Código: [Seleccione]
Interface to TinyBootLoader, v1.9.8
contact: claudiu.chiculita@ugal.ro
http://www.etc.ugal.ro/cchiculita/software/picbootloader.htm
--------------------------------------------------------------------------------------------------
 
Connected to \\.\COM1 at 19200
  Searching for PIC ...Not found,
  ERROR!
 
Connected to \\.\COM1 at 19200
  Searching for PIC ...Not found,
  ERROR!
 
Connected to \\.\COM1 at 9600
  Searching for PIC ...Not found,
  ERROR!
 
Connected to \\.\COM1 at 9600
  Searching for PIC ...Not found,
  ERROR!
 
Connected to \\.\COM1 at 9600
  Searching for PIC ...Not found,
  ERROR!
 
Connected to \\.\COM1 at 9600
  Searching for PIC ...Not found,
  ERROR!
Connected to \\.\COM1 at 115200
 
  Could not connect to COM1 at 9600
  ERROR!
 
Connected to \\.\COM1 at 38400
  HEX: 1728 days old, INHX8M,16Fcode+cfg, total=15208 bytes.
  Searching for PIC ...Not found,
  ERROR!
 
Connected to \\.\COM1 at 38400
  Searching for PIC ...Not found,
  ERROR!
help
ontop  - keep the window on top of the others
logdetails  - debug purposes; detailed info about communication with PIC
offline_code <id> - debug purpose: Simulate a PIC with specified ID - eg. offline_code 41h  (simulates an 18F252)
clearallflash  - fill all flash (except bootloader) with FFh
writeeeprom <fullAddr> <dat>  - eg: writeeeprom 0 b6h - writes B6h in the first eeprom location(for 18f)
writeconfig <fullAddr> <dat>  - only for 18F&dsPIC eg: writeconfig 300003h FFh - activates WDT
logdetails ok,
writeconfig
 
Connected to \\.\COM1 at 38400
  Searching for PIC ...
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 msNot found,
  ERROR!

 
Connected to \\.\COM1 at 9600
  Searching for PIC ...
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 msNot found,
  ERROR!
 
Connected to \\.\COM1 at 9600
  Searching for PIC ...
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 msNot found,
  ERROR!
 
Connected to \\.\COM1 at 9600
  Searching for PIC ...
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 msNot found,
  ERROR!
 
Connected to \\.\COM1 at 9600
  Searching for PIC ...
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 msNot found,
  ERROR!
 
Connected to \\.\COM1 at 9600
  Searching for PIC ...
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 msNot found,
  ERROR!
 
Connected to \\.\COM1 at 9600
  Searching for PIC ...
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 msNot found,
  ERROR!
 
Connected to \\.\COM1 at 9600
  Searching for PIC ...
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 msNot found,
  ERROR!
 
Connected to \\.\COM1 at 9600
  Searching for PIC ...
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 msNot found,
  ERROR!
 
Connected to \\.\COM1 at 9600
  Searching for PIC ...
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 msNot found,
  ERROR!
 
Connected to \\.\COM1 at 9600
  Searching for PIC ...
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 msNot found,
  ERROR!
 
Connected to \\.\COM1 at 9600
  Searching for PIC ...
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
 
  Could not connect to COM1 at 9600
  ERROR!
Wait 200 ms
  pic sending unknown data: Communication error 6: O identificador é inválido
Check baudrate & Start Write while PIC is not sending serial data (e.g. in reset)
  ERROR!
 
  Could not connect to COM1 at 9600
  ERROR!
 
Connected to \\.\COM1 at 9600
  Searching for PIC ...
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
 
  Could not connect to COM1 at 9600
  ERROR!
Wait 200 ms
  pic sending unknown data: Communication error 6: O identificador é inválido
Check baudrate & Start Write while PIC is not sending serial data (e.g. in reset)
  ERROR!
 
Connected to \\.\COM1 at 9600
  Searching for PIC ...
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
 
  Could not connect to COM1 at 9600
  ERROR!
Wait 200 ms
  pic sending unknown data: Communication error 6: O identificador é inválido
Check baudrate & Start Write while PIC is not sending serial data (e.g. in reset)
  ERROR!
 
Connected to \\.\COM1 at 9600
  Searching for PIC ...
Wait 200 ms
Wait 200 ms
 
  Could not connect to COM1 at 9600
  ERROR!
Wait 200 ms
  pic sending unknown data: Communication error 6: O identificador é inválido
Check baudrate & Start Write while PIC is not sending serial data (e.g. in reset)
  ERROR!
 
Connected to \\.\COM1 at 9600
  Searching for PIC ...
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
 
  Could not connect to COM1 at 9600
  ERROR!
Wait 200 ms
  pic sending unknown data: Communication error 6: O identificador é inválido
Check baudrate & Start Write while PIC is not sending serial data (e.g. in reset)
  ERROR!
 
Connected to \\.\COM1 at 9600
  Searching for PIC ...
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
 
  Could not connect to COM1 at 9600
  ERROR!
Wait 200 ms
  pic sending unknown data: Communication error 6: O identificador é inválido
Check baudrate & Start Write while PIC is not sending serial data (e.g. in reset)
  ERROR!
 
Connected to \\.\COM1 at 19200
  Searching for PIC ...
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
 
  Could not connect to COM1 at 19200
  ERROR!
Wait 200 ms
  pic sending unknown data: Communication error 6: O identificador é inválido
Check baudrate & Start Write while PIC is not sending serial data (e.g. in reset)
  ERROR!
 
Connected to \\.\COM1 at 19200
  Searching for PIC ...
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 msNot found,
  ERROR!
 
Connected to \\.\COM1 at 19200
  Searching for PIC ...
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 ms
Wait 200 msNot found,
  ERROR!
 
Connected to \\.\COM1 at 19200
  Searching for PIC ...
Wait 200 ms
Rcv:type=36h=6
 K found
  Found:16F 886/887
Also found:
EEprom: __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __
Config: __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __
 
Connected to \\.\COM1 at 19200
  Searching for PIC ...
Wait 200 ms
Rcv:type=36h=6
 K found
  Found:16F 886/887
Also found:
EEprom: __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __
Config: __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __
 
Connected to \\.\COM1 at 19200
  Searching for PIC ...
Wait 200 ms
Rcv:type=36h=6
 K found
  Found:16F 886/887
Also found:
EEprom: __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __
Config: __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __
 
Connected to \\.\COM1 at 19200
  Searching for PIC ...
Wait 200 ms
Rcv:type=36h=6
 K found
  Found:16F 886/887
Also found:
EEprom: __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __
Config: __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __
 
Connected to \\.\COM1 at 19200
  Searching for PIC ...
Wait 200 ms
Rcv:type=36h=6
 K found
  Found:16F 886/887
Also found:
EEprom: __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __
Config: __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __
 
Connected to \\.\COM1 at 19200
  HEX: 0 min old, INHX32,16Fcode+cfg, total=282 bytes.
  Searching for PIC ...
Wait 200 ms
Rcv:type=36h=6
 K found
  Found:16F 886/887
Also found:
EEprom: __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __
Config: __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __
Prepare16FPre - check HEX and GOTO
  Reallocate to [03F38h..03F3Fh] (byte addr)
Prepare16FAfter - 0>+Goto 1FA0
 Addr(words)=000000h,  3+64+1 bytes:
 00 00 40 1F 30 8A 00 A0 2F 00 00 00 00 00 00 00 00 00 00 28 30 84 00 58 30 A0 00 80 01 84 0A A0 0B 0C 28 10 30 95 00 27 30 96 00 00 30 8E 00 00 30 8F 00 01 30 90 00 0B 30 97 00 83 16 03 17 00 30 88 00 E9
    Sent:68
    wait for a byte max 350 ms
 Received "K": Ok
 Addr(words)=000020h,  3+64+1 bytes:
 00 20 40 83 12 03 13 83 16 03 17 00 30 89 00 83 12 03 13 83 16 FF 30 85 00 83 12 83 16 7F 30 86 00 83 12 83 16 FF 30 87 00 83 12 83 16 FF 30 88 00 83 12 83 16 FF 30 89 00 83 12 0C 1D 3C 28 0C 11 64 00 DC
    Sent:68
    wait for a byte max 350 ms
 Received "K": Ok
 Addr(words)=000040h,  3+64+1 bytes:
 00 40 40 A9 14 A9 18 29 15 A9 1C 29 11 86 1F 48 28 29 11 A9 19 4E 28 63 30 AA 00 00 30 AB 00 A9 15 29 19 66 28 00 30 2B 02 03 19 5C 28 A0 00 20 09 2B 05 A0 06 A0 1B 61 28 65 28 63 30 2A 02 03 1C 61 28 C4
    Sent:68
    wait for a byte max 350 ms
 Received "K": Ok
 Addr(words)=000060h,  3+64+1 bytes:
 00 60 40 65 28 AA 0F 64 28 AB 0A 29 15 6A 28 00 30 AA 00 00 30 AB 00 29 1D 81 28 00 30 2D 02 03 19 77 28 A0 00 20 09 2D 05 A0 06 A0 1B 7C 28 80 28 63 30 2C 02 03 1C 7C 28 80 28 AC 0F 7F 28 AD 0A 29 11 24
    Sent:68
    wait for a byte max 350 ms
 Received "K": Ok
 Addr(words)=000080h,  3+64+1 bytes:
 00 80 40 85 28 00 30 AC 00 00 30 AD 00 29 19 86 17 29 1D 86 13 8A 01 3C 28 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 57
    Sent:68
    wait for a byte max 350 ms
 Received "K": Ok
 Addr(words)=001F80h,  3+64+1 bytes:
 1F 80 40 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 8A 11 0A 12 08 28 00 00 72
    Sent:68
    wait for a byte max 350 ms
 Received "K": Ok
 Flashwrite ok
  no eeprom to write
  WRITE OK  at 15:35,   time:0.344 sec

Offline Sérgio_Sena

  • Administrator
  • Mini Robot
  • *****
  • Mensagens: 1.649
    • Electronic Gear for Musicians
Re:LDmicro com Tiny bootloader
« Responder #13 em: 27 de Julho de 2009, 15:51 »
Então já tens resultados?

Chegou aí bem a encomenda?



Offline jp_

  • Mini Robot
  • *
  • Mensagens: 188
Re:LDmicro com Tiny bootloader
« Responder #14 em: 27 de Julho de 2009, 16:08 »
Então já tens resultados?

Chegou aí bem a encomenda?




Claro que sim.

Obrigado pelo pic com o Tiny bootloader.

e conseguiste resposta do autor do tiny?

Mas estou a detectar algumas falhas:

Uma é:
 se eu mantiver o cabo de programação ligado, mesmo fechando o programa tiny de 7 em sete segundos aproximadamente dá-se um reset eu observei com o osciloscópio no pino 1 do pic16f886, se eu retirar o cabo fica tudo bem sempre a trabalhar.

o outro é o mesmo que eu já tinha antes com o tiny já com o 16f876A

que é este:

Código: [Seleccione]
Interface to TinyBootLoader, v1.9.8
contact: claudiu.chiculita@ugal.ro
http://www.etc.ugal.ro/cchiculita/software/picbootloader.htm
--------------------------------------------------------------------------------------------------
 
Connected to \\.\COM1 at 19200
  Searching for PIC ...
  Found:16F 886/887
 
Connected to \\.\COM1 at 19200
  HEX: 0 min old, INHX32,16Fcode+cfg, total=282 bytes.
  Searching for PIC ...
  Found:16F 886/887
  WRITE OK  at 16:23,   time:0.328 sec
 
  Could not connect to COM1 at 19200
  ERROR!
 
  Could not connect to COM1 at 19200
  ERROR!
 
  Could not connect to COM1 at 19200
  ERROR!
 
  Could not connect to COM1 at 19200
  ERROR!
 
  Could not connect to COM1 at 19200
  ERROR!
 
  Could not connect to COM1 at 19200
  ERROR!
 
  Could not connect to COM1 at 19200
  ERROR!
 
  Could not connect to COM1 at 19200
  ERROR!
 
  Could not connect to COM1 at 19200
  ERROR!
 
  Could not connect to COM1 at 19200
  ERROR!
 
  Could not connect to COM1 at 19200
  ERROR!
 
  Could not connect to COM1 at 19200
  ERROR!
 
  Could not connect to COM1 at 19200
  ERROR!
 
  Could not connect to COM1 at 19200
  ERROR!
 
  Could not connect to COM1 at 19200
  ERROR!
 
Connected to \\.\COM1 at 19200
  HEX: 0 min old, INHX32,16Fcode+cfg, total=282 bytes.
  Searching for PIC ...
  Found:16F 886/887
  WRITE OK  at 16:24,   time:0.328 sec


falhas de comunicação mas eu simplesmente insisto no Write Flash
e acaba por funcionar.

O que será este problema?

Mais informação:

Em anexo coloquei o ficheiro que usei no ldmicro, abre como se fosse .txt
e o esquema de ligação à porta com do pc.

no esquema para fazer o reset usam o pin7 e 8 da db9 para tentar eliminar o reset de 7 em sete segundos liguei só o sete ensaiei e parece que desaparceu o problema de falha na comunicação, pois fiz varias tentativas e sempre com sucesso como passo a mostrar:
Código: [Seleccione]
Interface to TinyBootLoader, v1.9.8
contact: claudiu.chiculita@ugal.ro
http://www.etc.ugal.ro/cchiculita/software/picbootloader.htm
--------------------------------------------------------------------------------------------------
 
Connected to \\.\COM1 at 19200
  Searching for PIC ...
  Found:16F 886/887
 
Connected to \\.\COM1 at 19200
  HEX: 8 min old, INHX32,16Fcode+cfg, total=282 bytes.
  Searching for PIC ...
  Found:16F 886/887
  WRITE OK  at 17:46,   time:0.328 sec
 
Connected to \\.\COM1 at 19200
  HEX: 8 min old, INHX32,16Fcode+cfg, total=282 bytes.
  Searching for PIC ...
  Found:16F 886/887
  WRITE OK  at 17:46,   time:0.328 sec
 
Connected to \\.\COM1 at 19200
  HEX: 8 min old, INHX32,16Fcode+cfg, total=282 bytes.
  Searching for PIC ...
  Found:16F 886/887
  WRITE OK  at 17:46,   time:0.328 sec
 
Connected to \\.\COM1 at 19200
  HEX: 8 min old, INHX32,16Fcode+cfg, total=282 bytes.
  Searching for PIC ...
  Found:16F 886/887
  WRITE OK  at 17:46,   time:0.328 sec
 
Connected to \\.\COM1 at 19200
  HEX: 8 min old, INHX32,16Fcode+cfg, total=282 bytes.
  Searching for PIC ...
  Found:16F 886/887
  WRITE OK  at 17:46,   time:0.328 sec
 
Connected to \\.\COM1 at 19200
  HEX: 8 min old, INHX32,16Fcode+cfg, total=282 bytes.
  Searching for PIC ...
  Found:16F 886/887
  WRITE OK  at 17:46,   time:0.343 sec
 
Connected to \\.\COM1 at 19200
  HEX: 8 min old, INHX32,16Fcode+cfg, total=282 bytes.
  Searching for PIC ...
  Found:16F 886/887
  WRITE OK  at 17:46,   time:0.328 sec
 
Connected to \\.\COM1 at 19200
  HEX: 8 min old, INHX32,16Fcode+cfg, total=282 bytes.
  Searching for PIC ...
  Found:16F 886/887
  WRITE OK  at 17:46,   time:0.328 sec
 
Connected to \\.\COM1 at 19200
  HEX: 8 min old, INHX32,16Fcode+cfg, total=282 bytes.
  Searching for PIC ...
  Found:16F 886/887
  WRITE OK  at 17:46,   time:0.328 sec

com o pin 8 não funciona.

portanto um dos problemas, o de falhar ao tentar comunicar parece resolvido desligando o pin8 e mantendo o pin7 da DB9.

Mas o de fazer reset automacticamente de sete em sete segundos é que não estou a conseguir resolver.

Alguma ideia?



jp_
« Última modificação: 27 de Julho de 2009, 22:33 por jp_ »