• AVR Freaks

Helpful Replywhat would you do with a dual core dspic?

Page: << < ..678910.. > >> Showing page 10 of 19
Author
Antipodean
Super Member
  • Total Posts : 2020
  • Reward points : 0
  • Joined: 2008/12/09 10:19:08
  • Location: Didcot, United Kingdom
  • Status: offline
Re: what would you do with a dual core dspic? 2018/07/02 08:19:14 (permalink)
4 (1)
das blinken pages are back ...
 

Do not use my alias in your message body when replying, your message will disappear ...

Alan
DarioG
Allmächtig.
  • Total Posts : 54081
  • Reward points : 0
  • Joined: 2006/02/25 08:58:22
  • Location: Oesterreich
  • Status: offline
Re: what would you do with a dual core dspic? 2018/07/02 09:01:34 (permalink)
0
FaulknerPD
DarioG
I also tried creating CONFIG bits from MPLAB, and it works for Master, and does nothing (empty window) for slave... without an alert :)



SLAVE config bits are specified in MASTER





Yep, *now* I know, as I wrote. Still a warning when you try to ask for COnfig Windows for a slave could be useful...

GENOVA :D :D ! GODO
Jim Nickerson
User 452
  • Total Posts : 6912
  • Reward points : 0
  • Joined: 2003/11/07 12:35:10
  • Location: San Diego, CA
  • Status: offline
Re: what would you do with a dual core dspic? 2018/07/02 11:29:34 (permalink)
0
missing post
du00000001
Just Some Member
  • Total Posts : 4119
  • Reward points : 0
  • Joined: 2016/05/03 13:52:42
  • Location: Germany
  • Status: offline
Re: what would you do with a dual core dspic? 2018/07/02 13:50:26 (permalink)
3 (1)
Hi all,
now the can of worms has been opened!
 
https://www.eeweb.com/pro...ital-signal-controller

PEBKAC / EBKAC / POBCAK / PICNIC (eventually see en.wikipedia.org)
DarioG
Allmächtig.
  • Total Posts : 54081
  • Reward points : 0
  • Joined: 2006/02/25 08:58:22
  • Location: Oesterreich
  • Status: offline
Re: what would you do with a dual core dspic? 2018/07/02 14:03:03 (permalink)
0
waiting for an explanation about CAN-FD now Smile

GENOVA :D :D ! GODO
Antipodean
Super Member
  • Total Posts : 2020
  • Reward points : 0
  • Joined: 2008/12/09 10:19:08
  • Location: Didcot, United Kingdom
  • Status: offline
Re: what would you do with a dual core dspic? 2018/07/02 15:24:09 (permalink)
4 (1)
https://www.can-cia.org/can-knowledge/can/can-fd/ is the first link that Google gives for "can fd".
 

Do not use my alias in your message body when replying, your message will disappear ...

Alan
DarioG
Allmächtig.
  • Total Posts : 54081
  • Reward points : 0
  • Joined: 2006/02/25 08:58:22
  • Location: Oesterreich
  • Status: offline
Re: what would you do with a dual core dspic? 2018/07/02 15:46:13 (permalink)
0
Thanks Alan! I had no time to search and only gave a quick look now: interesting... will see in the future.

GENOVA :D :D ! GODO
du00000001
Just Some Member
  • Total Posts : 4119
  • Reward points : 0
  • Joined: 2016/05/03 13:52:42
  • Location: Germany
  • Status: offline
Re: what would you do with a dual core dspic? 2018/07/02 15:51:31 (permalink)
4 (1)
Want to know more about CAN (FD).
You can get a really great poster from Vector Informatik:
https://vector.com/vi_can_poster_en.html

PEBKAC / EBKAC / POBCAK / PICNIC (eventually see en.wikipedia.org)
JimDrew
Super Member
  • Total Posts : 344
  • Reward points : 0
  • Joined: 2003/11/07 12:37:26
  • Status: offline
Re: what would you do with a dual core dspic? 2018/07/02 22:25:55 (permalink)
4 (2)
OK, so I have been bantering back and forth with Microchip tech support.  It seems that Microchip has neglected to include *any* of the new bit definitions in their includes files... you know, the ones with the .inc at the end.  Apparently, Microchip tech support says I should be using header files... you know, the ones with the .h at the end.  However, I am not using any C coding at all.  I couldn't tell you how to even setup a project to use C.  I know only assembly, so I need the includes files to contain all of the bit definitions.  I did create a new includes file for the dsPIC33CH128MP505 and dsPIC33CH128MP505S1 if someone needs them.  I am able to assemble my code correctly with these includes files.  I know most of you guys are using C so you probably don't need them, but if you do I am happy to share.  I am in the process of writing code for the flashing of the slave from the master, because the only way to have that active in the existing setup with assembly is if you turn on data initialization.  I don't use that because I don't need anything initialized and it burns up a bunch of program memory unnecessarily.  The canned routines proceeded by double underscore, like __start_slave invoke the data initialization whether you like it or not and includes the various code for handling the master to slave transfer, starting it up, mem copy, and other things.
 
JimDrew
Super Member
  • Total Posts : 344
  • Reward points : 0
  • Joined: 2003/11/07 12:37:26
  • Status: offline
Re: what would you do with a dual core dspic? 2018/07/02 23:48:21 (permalink)
0
OK, finally got Microchip tech support to understand.  They now know (and admit) that every one of the includes files (.inc) for the CH (and CK) chips are missing numerous bit definitions.  They say that the .h files have all of them.  That might be true, but I can't use them.
 
 
post edited by JimDrew - 2018/07/02 23:49:24
DarioG
Allmächtig.
  • Total Posts : 54081
  • Reward points : 0
  • Joined: 2006/02/25 08:58:22
  • Location: Oesterreich
  • Status: offline
Re: what would you do with a dual core dspic? 2018/07/03 02:04:17 (permalink)
0
du00000001
Want to know more about CAN (FD).
You can get a really great poster from Vector Informatik:
https://vector.com/vi_can_poster_en.html




ordered it, thanks :)

GENOVA :D :D ! GODO
NorvisLM
Super Member
  • Total Posts : 80
  • Reward points : 0
  • Joined: 2015/10/06 07:32:11
  • Location: 0
  • Status: offline
Re: what would you do with a dual core dspic? 2018/07/03 06:25:07 (permalink)
3 (1)
JimDrew
 The canned routines proceeded by double underscore, like __start_slave invoke the data initialization whether you like it or not and includes the various code for handling the master to slave transfer, starting it up, mem copy, and other things.



You can lift the SLAVE Code for Program/Verify/Start and Stop from the Program Memory Tab before shutting off Data initialization. It's fairly brief and relatively easy to follow. I would advise caution however as Microchip appears to have a specific format for the SLAVE code image produced by the compiler which is at this point undocumented and subject to change. 
JimDrew
Super Member
  • Total Posts : 344
  • Reward points : 0
  • Joined: 2003/11/07 12:37:26
  • Status: offline
Re: what would you do with a dual core dspic? 2018/07/03 15:19:25 (permalink)
4 (1)
Yeah, I looked at their code.  If you look at how it works you will notice that the slave code is larger than normal code found in the program memory space.  They do the code building a lot like an Intel hex file, where each "line" of code starts with a record entry that dictates the length of the line and where in the PRAM the code is suppose to go.
 
I figured out why your code would not assemble.  PSVPAG is known as "psvpage" not "psvpag" in the reference.  ie:
 
mov #psvpage(_Slave),w2  ; this assembles
 
mov #psvpag(_Slave),w2  ; this does not!
 
This makes sense because it's tblpage, not tblpag.  :)  I have never used PSV statements before, only tblpage to set the EDS.
 
 
post edited by JimDrew - 2018/07/03 15:26:03
marcov
Super Member
  • Total Posts : 292
  • Reward points : 0
  • Joined: 2006/10/08 01:59:40
  • Location: Eindhoven, NL.
  • Status: offline
Re: what would you do with a dual core dspic? 2018/07/06 03:13:30 (permalink)
0
Seems quite a lot of FRM manuals are updated in recent days.
 
I got my PIM yesterday, and the example (on my old explorer16) works fine with pickit3 as programmer. Getting the uart and a SCCP based 32-bit time to run was also fairly trivial. Still early days though.
post edited by marcov - 2018/07/07 03:49:59
NorvisLM
Super Member
  • Total Posts : 80
  • Reward points : 0
  • Joined: 2015/10/06 07:32:11
  • Location: 0
  • Status: offline
Re: what would you do with a dual core dspic? 2018/07/06 11:49:52 (permalink)
3 (1)
Contrary to my earlier report, I am able to Program/Debug the dsPIC33CH Curiosity Board with the PKOB (Not sure why it was showing No-Support before).
 
This allowed me to move my PICKIT 3 to the SLAVE Debug Port and simultaneously debug both cores. For those wanting a bit more info on Simultaneous Debug, MC has published AN2721 (Getting Started with Dual Core).
 
The Master Slave Interface MSI interface is working as expected and I am able to pass messages from the MASTER to the SLAVE Core. 
 
For me, the Dual Core PIC is a "solution looking for a problem". As of yet, I don't have an application for it. Our Company produces products in the low hundreds quantity so the $1 cost differential isn't going to break the bank but is it worth the Code Configuration and IDE Headaches? Time will tell.
 
DarioG
Allmächtig.
  • Total Posts : 54081
  • Reward points : 0
  • Joined: 2006/02/25 08:58:22
  • Location: Oesterreich
  • Status: offline
Re: what would you do with a dual core dspic? 2018/07/06 11:56:26 (permalink)
0
FaulknerPD
 
For me, the Dual Core PIC is a "solution looking for a problem". As of yet, I don't have an application for it.



Perfect definition!
 
but we'll see...

GENOVA :D :D ! GODO
DarioG
Allmächtig.
  • Total Posts : 54081
  • Reward points : 0
  • Joined: 2006/02/25 08:58:22
  • Location: Oesterreich
  • Status: offline
Re: what would you do with a dual core dspic? 2018/07/06 11:56:43 (permalink)
0
bump
 

GENOVA :D :D ! GODO
DarioG
Allmächtig.
  • Total Posts : 54081
  • Reward points : 0
  • Joined: 2006/02/25 08:58:22
  • Location: Oesterreich
  • Status: offline
Re: what would you do with a dual core dspic? 2018/07/06 11:56:58 (permalink)
0
bump more

GENOVA :D :D ! GODO
Gort2015
Klaatu Barada Nikto
  • Total Posts : 4014
  • Reward points : 0
  • Joined: 2015/04/30 10:49:57
  • Location: 0
  • Status: offline
Re: what would you do with a dual core dspic? 2018/07/06 13:19:26 (permalink)
0
BLINK !

MPLab X playing up, bug in your code? Nevermind, Star Trek:Discovery will be with us soon.
https://www.youtube.com/watch?v=Iu1qa8N2ID0
+ ST:Continues, "What Ships are Made for", Q's back.
Gort2015
Klaatu Barada Nikto
  • Total Posts : 4014
  • Reward points : 0
  • Joined: 2015/04/30 10:49:57
  • Location: 0
  • Status: offline
Re: what would you do with a dual core dspic? 2018/07/06 13:22:49 (permalink)
3 (1)
Plenty of stuff you could do with the slave that would previously need a 2nd chip.

MPLab X playing up, bug in your code? Nevermind, Star Trek:Discovery will be with us soon.
https://www.youtube.com/watch?v=Iu1qa8N2ID0
+ ST:Continues, "What Ships are Made for", Q's back.
Page: << < ..678910.. > >> Showing page 10 of 19
Jump to:
© 2021 APG vNext Commercial Version 4.5