UART question: Rescue Loader / UART loopback switch - page 2 - General Discussion and Assistance - CHDK Forum

UART question: Rescue Loader / UART loopback switch

  • 51 Replies
  • 24002 Views
*

Offline Ant

  • *****
  • 509
Re: UART question: Rescue Loader / UART loopback switch
« Reply #10 on: 24 / October / 2017, 17:01:07 »
Advertisements
i know that many things can go wrong (e.g. enabled/disabled interrupts, DryOS must be properly initialized first, RAM agents call back damaged ROM etc).  But we will see.

Have you found out the ability to run DISKBOOT.BIN from the main firmware?
On EOS M3 there was no problem to put there whole flash sector (128kB)...

Re: UART question: Rescue Loader / UART loopback switch
« Reply #11 on: 24 / October / 2017, 23:26:33 »
ALT_BOOT pin in  https://nada-labs.net/2014/finding-jtag-on-a-canon-elph100hs-ixus115/  sounds interesting.
@ hardlock
Do you have a BusPirate that Nada-Labs used to find the Ixus 115's serial console port and JTAG access.

@ all Re:- a using a ESP8266 (and slightly off the topic)
Would it be possible to access the cameras serial console port by using a ESP8266 serial WIFI/BlueTooth module, instead
of a hard wired connection. Running ESPTerm and powering from the cameras JTAG's 3.3 volt pin.
ESPTerm is a (tiny Webserver) VT100-like terminal emulator running on the ESP8266 WiFi chip.

H-H

Re: UART question: Rescue Loader / UART loopback switch
« Reply #12 on: 25 / October / 2017, 00:54:45 »
[duplicated]
« Last Edit: 25 / October / 2017, 01:27:26 by hardlock »

Re: UART question: Rescue Loader / UART loopback switch
« Reply #13 on: 25 / October / 2017, 00:58:10 »
Have you found out the ability to run DISKBOOT.BIN from the main firmware?
On EOS M3 there was no problem to put there whole flash sector (128kB)...

it start definitely  (e.g. I can blink a led, call some funcs from the firmware) but i did not try to return from it. I  always ended with hanging on an  infinite loop, just to be sure. And about static data size:  your words give me a hope, may be I did something wrong, i will address it later.

Re: UART question: Rescue Loader / UART loopback switch
« Reply #14 on: 25 / October / 2017, 01:07:44 »
@ hardlock
Do you have a BusPirate that Nada-Labs used to find the Ixus 115's serial console port and JTAG access.

no, I don't. but I have got a screwdriver  ;)  it is enough to start.

>@ all Re:- a using a ESP8266 (and slightly off the topic)
>Would it be possible to access the cameras serial console port by using a ESP8266 serial WIFI/BlueTooth module, >instead

Why not (if the power is enough and there is a place to put an extra board inside)?. a _wireless_ console would be great to have

*

Offline Ant

  • *****
  • 509
Re: UART question: Rescue Loader / UART loopback switch
« Reply #15 on: 25 / October / 2017, 05:56:10 »
it start definitely  (e.g. I can blink a led, call some funcs from the firmware) but i did not try to return from it.

You did not tell us how you did it.
Maybe it's right time to start porting the CHDK on sx710?

In my case(erased sector with adjustment data) it was enough to use CHDK with modified "boot.c"...


 
« Last Edit: 25 / October / 2017, 06:09:13 by Ant »

Re: UART question: Rescue Loader / UART loopback switch
« Reply #16 on: 25 / October / 2017, 07:04:46 »
it start definitely  (e.g. I can blink a led, call some funcs from the firmware) but i did not try to return from it.

You did not tell us how you did it.
Maybe it's right time to start porting the CHDK on sx710?

In my case(erased sector with adjustment data) it was enough to use CHDK with modified "boot.c"...

Sorry,  my mistake. It _did_ start  diskboot.bin before (and I already recovered from my faults once), but this time I can't turn it on. I press a button and nothing happens. 

about porting: at the moment CHDK looks too overhelming for me.  100s of functions to map?  And I know nothing about optics and photography.  but I can help someone who is in progress, e.g. i can manually find a function that was already  mapped in one camera in another one. Will be glad to help.

*

Offline Ant

  • *****
  • 509
Re: UART question: Rescue Loader / UART loopback switch
« Reply #17 on: 25 / October / 2017, 08:57:26 »
but this time I can't turn it on. I press a button and nothing happens.

You did not tell us how did you create diskboot.bin.
If your diskboot.bin was created correctly(encoded using dancing bits), there is only one way - to connect to the UART and see what happens.

Re: UART question: Rescue Loader / UART loopback switch
« Reply #18 on: 25 / October / 2017, 14:18:18 »
You did not tell us how did you create diskboot.bin.
If your diskboot.bin was created correctly(encoded using dancing bits), there is only one way - to connect to the UART and see what happens.

I don't need the full CHDK functionality, minimal code that runs is enough for me. I slightly modifed  g7x version, and adapted it to start on sx710.

Re: UART question: Rescue Loader / UART loopback switch
« Reply #19 on: 25 / October / 2017, 14:37:21 »
If your diskboot.bin was created correctly(encoded using dancing bits), there is only one way - to connect to the UART and see what happens.

my diskboot.bin did run when camera was ok, by pressing a PLAY or ON/OFF button.

i have disassembled the camera and I see  the pads that looks like ones that match photos from other models.  I doubt I can solder any wires to those tiny pins.  I don't have such a skill. Quick (and blind) test with connecting supposed RX to supposed TX  (making a loopback) did not run my diskboot.bin. Also voltages on GND and +V does't match the description.  I will try again. 


 

Related Topics


SimplePortal © 2008-2014, SimplePortal