Author Topic: Multiplexing ICSP to multiple processors...  (Read 2618 times)

0 Members and 1 Guest are viewing this topic.

Offline richcj10Topic starter

  • Supporter
  • ****
  • Posts: 201
  • Country: us
Multiplexing ICSP to multiple processors...
« on: August 18, 2014, 11:01:21 pm »
Hi,

I am working on a car project and have pic microcontrollers in a few places on the car. On request of the software team, I need to develop a way to multiplex the ICSP to 7-9 processors on the car. Any ideas?
 

Offline David_AVD

  • Super Contributor
  • ***
  • Posts: 2814
  • Country: au
Re: Multiplexing ICSP to multiple processors...
« Reply #1 on: August 18, 2014, 11:34:34 pm »
How far are the PICs away from each other?
 

Online T3sl4co1l

  • Super Contributor
  • ***
  • Posts: 21799
  • Country: us
  • Expert, Analog Electronics, PCB Layout, EMC
    • Seven Transistor Labs
Re: Multiplexing ICSP to multiple processors...
« Reply #2 on: August 19, 2014, 01:45:06 am »
Can you not arrange a bootloader or software update function?

Routing ICSP signals across a car is a blatant invitation to awful problems.

Tim
Seven Transistor Labs, LLC
Electronic design, from concept to prototype.
Bringing a project to life?  Send me a message!
 

Offline richcj10Topic starter

  • Supporter
  • ****
  • Posts: 201
  • Country: us
Re: Multiplexing ICSP to multiple processors...
« Reply #3 on: August 19, 2014, 02:36:13 am »
Some are within inches of each other, some more than 4-5 feet... It depends on the device.
Using a bootloader was my first idea, but making it capable of sending over RS485 the way it is laid out in our system is a lot of work. It would require some smart resetting (soft resetting) and state management...   It was thinking of adding a "hardware cap" to the programing distribution to keep it in a locked out (the actual pins held in a high / low state) state when the car is in normal running mode. You wouldn't program the device while the car was being driven around anyway...
 

Offline Jeroen3

  • Super Contributor
  • ***
  • Posts: 4079
  • Country: nl
  • Embedded Engineer
    • jeroen3.nl
Re: Multiplexing ICSP to multiple processors...
« Reply #4 on: August 19, 2014, 05:30:45 pm »
CAN bus bootloader  ;)
Or some addressable bus.
 

Offline RABeng224

  • Contributor
  • Posts: 24
Re: Multiplexing ICSP to multiple processors...
« Reply #5 on: August 20, 2014, 04:27:55 pm »
Microchip offers a pretty good bootloader, AN1310 I think its called.  I have modified it to run on RS485 and have deployed it on several projects.  We have never had issues with it.  It is written totally in ASM but it is fairly clean so it is easy to follow.  Our micros (PIC18F) have built in EEPROM so we used it to store flags so that a particular micro can be reset into boot mode.  From there, you can use the serial protocol and just add some addressing capabilities.

Good Luck!
 

Offline SL4P

  • Super Contributor
  • ***
  • Posts: 2318
  • Country: au
  • There's more value if you figure it out yourself!
Re: Multiplexing ICSP to multiple processors...
« Reply #6 on: August 20, 2014, 11:36:35 pm »
I suspect you could get away with 'sending' ICSP code pretty safely with appropriate buffering and worst case reset/write timing, however the verify pass would require a bit more thinking to be sure each processor is at the party..

Perhaps if this is really necessary without a bootloader, your code could execute a code verification before 'running' - and 'not' blink a LED or whatever to let you know a specific processor is not actively participating.

Why multiple processors running the same code in close proximity in a dirty, high-rel environment?
Other than a very specific application, I can see many ways this might go wrong.

Let us know what you come up with!
Don't ask a question if you aren't willing to listen to the answer.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf