• AVR Freaks

Hot!HOW TO: PIC32MZ USB without Harmony

Page: < 1234 Showing page 4 of 4
Author
TimmonsNew
New Member
  • Total Posts : 1
  • Reward points : 0
  • Joined: 2019/10/17 23:15:15
  • Location: 0
  • Status: offline
Re: HOW TO: PIC32MZ USB without Harmony 2019/10/25 01:46:42 (permalink)
0
Good Morning Everybody
 
Unlikely, I changed my work but my registration e-mail, for this forum was, the one of work and I did not see the updating for this post. I'm Timmons.
 
I stopped for some month my developing un Pic32 USB and I only start again in the last weeks
 
I Reach the followings target on Windows 10
  1. Right Enumeration for USB Device implemented on pic32mz2048efh144
  2. Right Receive on EP1 USB Messages sent by PC (HOST)
  3. Right Send by EP2 messages to PC (Host)
If someone had some issues for above task can ask me (If I am able to reply :)) 
 
#61
ric
Super Member
  • Total Posts : 25592
  • Reward points : 0
  • Joined: 2003/11/07 12:41:26
  • Location: Australia, Melbourne
  • Status: online
Re: HOW TO: PIC32MZ USB without Harmony 2019/10/25 15:05:44 (permalink)
0
MisterHemi
I attempted to edit the first post and add this to it but the forum won't allow it.... annoying!
It often says "you don't have permission".
 ...

 
That is because of the live link towards the end of the post
See: How to avoid errors when editing posts
 

I wish they would FIX it!

Unfortunately the forum admin does not have the power or knowledge to fix problems with the web server.
 

I also post at: PicForum
Links to useful PIC information: http://picforum.ric323.co...opic.php?f=59&t=15
NEW USERS: Posting images, links and code - workaround for restrictions.
To get a useful answer, always state which PIC you are using!
#62
MisterHemi
Super Member
  • Total Posts : 209
  • Reward points : 0
  • Joined: 2017/11/02 12:24:21
  • Location: Commerce, CA USA
  • Status: offline
Re: HOW TO: PIC32MZ USB without Harmony 2019/10/26 07:27:06 (permalink)
0
ric
MisterHemi
I attempted to edit the first post and add this to it but the forum won't allow it.... annoying!
It often says "you don't have permission".
 ...

 
That is because of the live link towards the end of the post
See: How to avoid errors when editing posts 
 

I wish they would FIX it!

Unfortunately the forum admin does not have the power or knowledge to fix problems with the web server.
 




I recently saw that... some work arounds did work but i've still had a some problems.
 
At the moment i'm working on USB audio and slowly getting parts of it to work though not the entirety of it yet.
 

My configuration:
MacBook Pro (Retina, 15-inch, Mid 2015) with MacOS High Sierra (10.14.5) and MPLAB X IDE v5.20
 
Curiosity PIC32MZ EF, PIC24F Curiosity, XPRESS EVAL BOARD (PIC16F18855), SAMA5D3 Xplained and various custom boards.
#63
MisterHemi
Super Member
  • Total Posts : 209
  • Reward points : 0
  • Joined: 2017/11/02 12:24:21
  • Location: Commerce, CA USA
  • Status: offline
Re: HOW TO: PIC32MZ USB without Harmony 2020/01/19 22:45:01 (permalink)
5 (1)
Just an update... I have a Basic USB Audio Speaker example however it's 216KB and the forum has a limit of 200KB.
 
I'll have to find another way to post it if anyone is interested.
 
Read my updates in the very first post!
 
EDITED TO ADD: I have uploaded the project to Github, i'll post the link in the first post.
post edited by MisterHemi - 2020/01/19 22:51:06

My configuration:
MacBook Pro (Retina, 15-inch, Mid 2015) with MacOS High Sierra (10.14.5) and MPLAB X IDE v5.20
 
Curiosity PIC32MZ EF, PIC24F Curiosity, XPRESS EVAL BOARD (PIC16F18855), SAMA5D3 Xplained and various custom boards.
#64
JarekC
New Member
  • Total Posts : 29
  • Reward points : 0
  • Joined: 2016/10/20 07:06:52
  • Location: 0
  • Status: offline
Re: HOW TO: PIC32MZ USB without Harmony 2020/01/20 12:40:26 (permalink)
0
Hi,
Why you don't initialize register USBFIFOA (USB FIFO Address)?
#65
MisterHemi
Super Member
  • Total Posts : 209
  • Reward points : 0
  • Joined: 2017/11/02 12:24:21
  • Location: Commerce, CA USA
  • Status: offline
Re: HOW TO: PIC32MZ USB without Harmony 2020/01/20 13:42:52 (permalink)
0
JarekC
Hi,
Why you don't initialize register USBFIFOA (USB FIFO Address)?


 
I forget if there was a specific reason but I believe it defaults to 0x000
 

My configuration:
MacBook Pro (Retina, 15-inch, Mid 2015) with MacOS High Sierra (10.14.5) and MPLAB X IDE v5.20
 
Curiosity PIC32MZ EF, PIC24F Curiosity, XPRESS EVAL BOARD (PIC16F18855), SAMA5D3 Xplained and various custom boards.
#66
JarekC
New Member
  • Total Posts : 29
  • Reward points : 0
  • Joined: 2016/10/20 07:06:52
  • Location: 0
  • Status: offline
Re: HOW TO: PIC32MZ USB without Harmony 2020/01/20 13:47:27 (permalink)
0
But you have all FIFOs buffers in the same place in the dedicated USB RAM (9kB)
#67
MisterHemi
Super Member
  • Total Posts : 209
  • Reward points : 0
  • Joined: 2017/11/02 12:24:21
  • Location: Commerce, CA USA
  • Status: offline
Re: HOW TO: PIC32MZ USB without Harmony 2020/01/20 21:15:19 (permalink)
0
JarekC
But you have all FIFOs buffers in the same place in the dedicated USB RAM (9kB)




I would assume if they're dynamically allocated (USBE0CSR3bits.DYNFIFOS = 1) that would take care of that.
 
In previous versions I did assign addresses (see below) but upon trying the Dynamic FIFO option I didn't see any difference and didn't have any problems.
 
Here's how I assigned them before, this is from a previous but different project:

USBCSR3bits.ENDPOINT = 1;
USBFIFOAbits.TXFIFOAD = 0x0040; // Transmit Endpoint FIFO Address bits (64 dec.)

USBCSR3bits.ENDPOINT = 2;
USBFIFOAbits.RXFIFOAD = 0x0440; // Receive Endpoint FIFO Address bits (1088 dec.)

USBCSR3bits.ENDPOINT = 3;
USBFIFOAbits.RXFIFOAD = 0x0840; // Transmit Endpoint FIFO Address bits (2112 dec.)

USBCSR3bits.ENDPOINT = 4;
USBFIFOAbits.TXFIFOAD = 0x0A40; // Receive Endpoint FIFO Address bits (2624 dec.)

USBCSR3bits.ENDPOINT = 5;
USBFIFOAbits.RXFIFOAD = 0x0A48; // Transmit Endpoint FIFO Address bits (2632 dec.)

USBCSR3bits.ENDPOINT = 6;
USBFIFOAbits.TXFIFOAD = 0x0A50; // Transmit Endpoint FIFO Address bits (2640 dec.)

 
I can only say it seems to work fine but if a problem arises feedback would be appreciated.

My configuration:
MacBook Pro (Retina, 15-inch, Mid 2015) with MacOS High Sierra (10.14.5) and MPLAB X IDE v5.20
 
Curiosity PIC32MZ EF, PIC24F Curiosity, XPRESS EVAL BOARD (PIC16F18855), SAMA5D3 Xplained and various custom boards.
#68
MisterHemi
Super Member
  • Total Posts : 209
  • Reward points : 0
  • Joined: 2017/11/02 12:24:21
  • Location: Commerce, CA USA
  • Status: offline
Re: HOW TO: PIC32MZ USB without Harmony 2020/01/21 20:34:24 (permalink)
5 (1)
If anyone tries the USB Audio Speaker project let me know and let me know if it's working fine fine you.
 
If you haven't seen the project I posted a link to the Github archive in the very first post. It was too big to upload here, there is a size limit of 200KB and the audio project is 216KB.

If you happen to get the USB DMA working please share that here too. 
I may try it again soon when I have a bit more time.

My configuration:
MacBook Pro (Retina, 15-inch, Mid 2015) with MacOS High Sierra (10.14.5) and MPLAB X IDE v5.20
 
Curiosity PIC32MZ EF, PIC24F Curiosity, XPRESS EVAL BOARD (PIC16F18855), SAMA5D3 Xplained and various custom boards.
#69
Page: < 1234 Showing page 4 of 4
Jump to:
© 2020 APG vNext Commercial Version 4.5