• AVR Freaks

Helpful ReplyHot!Simulator, UART with DMA, PIC32, MPLAB X IDE

Page: < 12 Showing page 2 of 2
Author
GeorgePauley
Moderator
  • Total Posts : 1117
  • Reward points : 0
  • Joined: 2009/12/01 13:59:30
  • Location: Chandler AZ
  • Status: online
Re: Simulator, UART with DMA, PIC32, MPLAB X IDE 2019/03/25 14:21:26 (permalink)
+2 (2)
Thanks, that was the missing piece of information that I needed.  I am now convinced the simulator is "broken".  I will write a trouble report to get this fixed.  Unfortunately I would guess this gets fixed in 5.25 not 5.20 :(  More unfortunately, I do not think there is a workaround that can be used for the current version of MPLAB X that you are using.

For those of you who enjoy observing the sausage being made (you know who you are...):  The simulator's DMA peripheral is writing directly to memory instead of to the SFR wrapper objects the simulator uses emulate SFRs.  The simulator's UART is faithfully observing (ala gang of four Observer pattern) the TXREG SFR for notification of a new value being written.  Unfortunately that notification never comes because the DMA did an end-run around the SFR by writing directly to memory. 

This all works perfectly when you use the DMA in the other direction, ie receive a bunch of characters and copy them to a memory buffer.
#21
qhb
Superb Member
  • Total Posts : 9998
  • Reward points : 0
  • Joined: 2016/06/05 14:55:32
  • Location: One step ahead...
  • Status: offline
Re: Simulator, UART with DMA, PIC32, MPLAB X IDE 2019/03/25 14:31:47 (permalink)
0
Is there any mechanism for the guy on the support line to feed this back into engineering, rather than just saying "nahhh, it doesn't work". (Despite the "known limitations" saying it should work...)
 

Nearly there...
#22
GeorgePauley
Moderator
  • Total Posts : 1117
  • Reward points : 0
  • Joined: 2009/12/01 13:59:30
  • Location: Chandler AZ
  • Status: online
Re: Simulator, UART with DMA, PIC32, MPLAB X IDE 2019/03/25 14:53:06 (permalink) ☄ Helpfulby qhb 2019/03/25 14:59:52
+2 (2)
And... it's fixed.  Should be in MPLAB X 5.20.  "012345678" is expected output right?
#23
GeorgePauley
Moderator
  • Total Posts : 1117
  • Reward points : 0
  • Joined: 2009/12/01 13:59:30
  • Location: Chandler AZ
  • Status: online
Re: Simulator, UART with DMA, PIC32, MPLAB X IDE 2019/03/25 14:59:08 (permalink)
0
qhb
Is there any mechanism for the guy on the support line to feed this back into engineering, rather than just saying "nahhh, it doesn't work". (Despite the "known limitations" saying it should work...)
 


Not sure what you're asking here qhb. 

As has been stated several times, this forum is for peer-to-peer help.  Microchip doesn't officially monitor this forum.  Fortunately for dvvrcognizant, I just happen to be the team lead for the simulator, and noticed this issue.


Had a ticket been opened, I'm pretty confident that this issue would have been well beyond the abilities of the first line support.  (Heck it took me a week to get my head wrapped around it.)  In that case there is an internal Microchip channel wherein they could direct the issue to the MPLAB X team, and eventually into my in-box.
#24
qhb
Superb Member
  • Total Posts : 9998
  • Reward points : 0
  • Joined: 2016/06/05 14:55:32
  • Location: One step ahead...
  • Status: offline
Re: Simulator, UART with DMA, PIC32, MPLAB X IDE 2019/03/25 15:07:25 (permalink)
+1 (1)
GeorgePauley
Had a ticket been opened, I'm pretty confident that this issue would have been well beyond the abilities of the first line support.  (Heck it took me a week to get my head wrapped around it.)  In that case there is an internal Microchip channel wherein they could direct the issue to the MPLAB X team, and eventually into my in-box.

According to post#9, a case was opened, and the support was abysmal.
My question is, would this have got back to you if you had NOT been monitoring the forum...
 

Nearly there...
#25
qhb
Superb Member
  • Total Posts : 9998
  • Reward points : 0
  • Joined: 2016/06/05 14:55:32
  • Location: One step ahead...
  • Status: offline
Re: Simulator, UART with DMA, PIC32, MPLAB X IDE 2019/03/25 15:15:01 (permalink)
+1 (1)
GeorgePauley
..
I'm pretty confident that this issue would have been well beyond the abilities of the first line support. 

Indeed, but it's certainly our impression as users that the first line are under pressure to NOT escalate issues they don't understand up the line. They just parrot boiler-plate responses and hope the problem goes away.
 
(For the record, I think the support you personally give us here on the forum is fantastic. It's the whole support ticket system that acts as a roadblock to genuine help.)
 
post edited by qhb - 2019/03/25 15:34:07

Nearly there...
#26
GeorgePauley
Moderator
  • Total Posts : 1117
  • Reward points : 0
  • Joined: 2009/12/01 13:59:30
  • Location: Chandler AZ
  • Status: online
Re: Simulator, UART with DMA, PIC32, MPLAB X IDE 2019/03/26 09:46:03 (permalink)
0
To be honest, I have no idea who is handling front line support.  I don't even know if it's here in Chandler.  Sorry.
#27
qhb
Superb Member
  • Total Posts : 9998
  • Reward points : 0
  • Joined: 2016/06/05 14:55:32
  • Location: One step ahead...
  • Status: offline
Re: Simulator, UART with DMA, PIC32, MPLAB X IDE 2019/03/26 15:57:59 (permalink)
0
So presumably the simulator team never get messages from front line support asking if the simulator SHOULD do something that a user is complaining doesn't work.
It appears that compiler bugs submitted as reports do often get through to the compiler team, so long as they are clearly documented and can't be fobbed off.
 
 

Nearly there...
#28
dvvrcognizant
Starting Member
  • Total Posts : 34
  • Reward points : 0
  • Joined: 2019/03/13 07:48:11
  • Location: 0
  • Status: offline
Re: Simulator, UART with DMA, PIC32, MPLAB X IDE 2019/04/01 01:50:53 (permalink)
0
GeorgePauley
And... it's fixed.  Should be in MPLAB X 5.20.  "012345678" is expected output right?


Hi Goerge,
 
The expected output is "0123456789", "9" is missing above. I am trying to send 10 bytes and receive the same in loop-back mode.
 
Thanks for your help!
#29
Page: < 12 Showing page 2 of 2
Jump to:
© 2019 APG vNext Commercial Version 4.5