Helpful ReplyHot!want to save the data in pen drive from pic32 eth starter kit.

Page: 12 > Showing page 1 of 2
Author
mohammad faizan
New Member
  • Total Posts : 21
  • Reward points : 0
  • Joined: 2017/10/24 04:53:06
  • Location: 0
  • Status: offline
2018/02/10 02:17:30 (permalink)
0

want to save the data in pen drive from pic32 eth starter kit.

Hi, 
I am working on PIC32 Eth starter kit II, tcpip tcp client project, harmony 2.04, mplab x ide 3.65. 
I am able to send the text bet PIC32 (client) and server (PC). As the connection is established, client send the text to server and then from server I send the text to client to make the leds on and off. Now I am trying  to store the received(pic) text into a USB flash drive (Pendrive) through the OTG port of PIC kit or using  a USB Host to somewhere on PC. 
Or any simple way to check the functionality of OTG and USB host on PIC32 eth starter kit 2.
Please help me.
#1
karan123
Super Member
  • Total Posts : 697
  • Reward points : 0
  • Joined: 2009/02/02 11:11:21
  • Location: 0
  • Status: offline
Re: want to save the data in pen drive from pic32 eth starter kit. 2018/02/10 06:28:14 (permalink)
0
Are you using Harmony or Mal or What?
#2
RISC
Super Member
  • Total Posts : 4899
  • Reward points : 0
  • Status: offline
Re: want to save the data in pen drive from pic32 eth starter kit. 2018/02/10 10:41:33 (permalink)
0
Hi,
You should better post in the Harmony thread : http://www.microchip.com/forums/f291.aspx
Regards
 
#3
mohammad faizan
New Member
  • Total Posts : 21
  • Reward points : 0
  • Joined: 2017/10/24 04:53:06
  • Location: 0
  • Status: offline
Re: want to save the data in pen drive from pic32 eth starter kit. 2018/02/11 21:31:01 (permalink)
0
Hi,
I am using a harmony 2.04 tcpip tcp client.
#4
NKurzman
A Guy on the Net
  • Total Posts : 15515
  • Reward points : 0
  • Joined: 2008/01/16 19:33:48
  • Location: 0
  • Status: offline
Re: want to save the data in pen drive from pic32 eth starter kit. 2018/02/11 22:27:44 (permalink)
0
Than usb otg is not supported.
You can find usb host for msd examples in the harmony samples.
#5
mohammad faizan
New Member
  • Total Posts : 21
  • Reward points : 0
  • Joined: 2017/10/24 04:53:06
  • Location: 0
  • Status: offline
Re: want to save the data in pen drive from pic32 eth starter kit. 2018/02/12 00:01:36 (permalink)
0
Thanks,
I have seen that, but when I open .X file, their is no option for pic32 eth sk 2 instead pic32 usb sk 2 or several. I am using a pic32 eth starter kit II, does my board support this files.
 
#6
Akshayy
Super Member
  • Total Posts : 259
  • Reward points : 0
  • Joined: 2016/07/29 06:35:35
  • Location: 0
  • Status: online
Re: want to save the data in pen drive from pic32 eth starter kit. 2018/02/14 05:06:21 (permalink)
0
Try to use Sample codes of harmony.Which are present in harmony folder.Use USB-MSD firmware
#7
mohammad faizan
New Member
  • Total Posts : 21
  • Reward points : 0
  • Joined: 2017/10/24 04:53:06
  • Location: 0
  • Status: offline
Re: want to save the data in pen drive from pic32 eth starter kit. 2018/02/14 05:27:48 (permalink)
0
Thanks Akshay,
Can you please elaborate, I found the example in harmony msd_basic.x, I want to know that  can I insert the pen drive in usb host A socket or I need to use a usb otg socket ( micro usb female cable) to connect pen drive.
#8
Akshayy
Super Member
  • Total Posts : 259
  • Reward points : 0
  • Joined: 2016/07/29 06:35:35
  • Location: 0
  • Status: online
Re: want to save the data in pen drive from pic32 eth starter kit. 2018/02/14 05:38:32 (permalink)
0
This firmware doesnt support OTG.
#9
Akshayy
Super Member
  • Total Posts : 259
  • Reward points : 0
  • Joined: 2016/07/29 06:35:35
  • Location: 0
  • Status: online
Re: want to save the data in pen drive from pic32 eth starter kit. 2018/02/14 05:39:40 (permalink)
0
MSD_BASIC firmware is all what you need.
#10
mohammad faizan
New Member
  • Total Posts : 21
  • Reward points : 0
  • Joined: 2017/10/24 04:53:06
  • Location: 0
  • Status: offline
Re: want to save the data in pen drive from pic32 eth starter kit. 2018/02/14 05:40:29 (permalink)
0
Thanks Akshay,
So I have to insert the pen drive or a sdcard(card reader) in usb host socket
#11
Akshayy
Super Member
  • Total Posts : 259
  • Reward points : 0
  • Joined: 2016/07/29 06:35:35
  • Location: 0
  • Status: online
Re: want to save the data in pen drive from pic32 eth starter kit. 2018/02/14 05:40:42 (permalink)
0
Connect pendrive. Make sure that it gets detected or not.
 
#12
Akshayy
Super Member
  • Total Posts : 259
  • Reward points : 0
  • Joined: 2016/07/29 06:35:35
  • Location: 0
  • Status: online
Re: want to save the data in pen drive from pic32 eth starter kit. 2018/02/14 05:42:14 (permalink)
0
Card reader firmware is different I think.I am not sure.
It will work with pendrive for sure.
#13
mohammad faizan
New Member
  • Total Posts : 21
  • Reward points : 0
  • Joined: 2017/10/24 04:53:06
  • Location: 0
  • Status: offline
Re: want to save the data in pen drive from pic32 eth starter kit. 2018/02/14 05:44:54 (permalink)
0
In app.c their is a case condition when pen drive is detected led 2 will start blinking, but when I inserted the pen drive so such thing occur. I am inserting a  strontium 8GB. 
#14
Akshayy
Super Member
  • Total Posts : 259
  • Reward points : 0
  • Joined: 2016/07/29 06:35:35
  • Location: 0
  • Status: online
Re: want to save the data in pen drive from pic32 eth starter kit. 2018/02/14 05:57:43 (permalink)
0
 case APP_STATE_WAIT_FOR_DEVICE_ATTACH:

            /* Wait for device attach. The state machine will move
             * to the next state when the attach event
             * is received. */
            if(appData.deviceIsConnected)
            {
                BSP_LEDOn( APP_USB_LED_3 );
                BSP_LEDOff( APP_USB_LED_2 );
                appData.state = APP_STATE_DEVICE_CONNECTED;
            }

            break;

#15
Akshayy
Super Member
  • Total Posts : 259
  • Reward points : 0
  • Joined: 2016/07/29 06:35:35
  • Location: 0
  • Status: online
Re: want to save the data in pen drive from pic32 eth starter kit. 2018/02/14 06:00:38 (permalink)
0
One file must have been created in pendrive.Can u check pendrive with your PC? .
#16
mohammad faizan
New Member
  • Total Posts : 21
  • Reward points : 0
  • Joined: 2017/10/24 04:53:06
  • Location: 0
  • Status: offline
Re: want to save the data in pen drive from pic32 eth starter kit. 2018/02/14 23:10:32 (permalink)
0
Hi Akshay,
I run this project, but no led blinked I insert the pen drive (8 GB) wait for message programming/verify complete.
After that I open a pen drive with PC to check the create file, but their is no file create. Is their anything I am missing, Please help me
#17
Akshayy
Super Member
  • Total Posts : 259
  • Reward points : 0
  • Joined: 2016/07/29 06:35:35
  • Location: 0
  • Status: online
Re: want to save the data in pen drive from pic32 eth starter kit. 2018/02/14 23:57:32 (permalink)
0
programming/verify complete.

Dont use it in release mode.Use debug mode
#18
mohammad faizan
New Member
  • Total Posts : 21
  • Reward points : 0
  • Joined: 2017/10/24 04:53:06
  • Location: 0
  • Status: offline
Re: want to save the data in pen drive from pic32 eth starter kit. 2018/02/15 00:09:33 (permalink)
0
I debug the project and I got the following message in output window.
/../../../../../framework/system/fs/fat_fs/src/file_system/ff.c:4622:1: fatal error: error writing to C:\Users\Faizan\AppData\Local\Temp\ccPQy7Bd.s: No space left on device
}
^
compilation terminated.
make[2]: *** [build/pic32mx_usb_pic32mx_usb_sk2_int_dyn/debug/_ext/2143635134/ff.o] Error 1
build failed
And when I simply build the project it get build successfully, what I am missing, please help me
 
#19
mohammad faizan
New Member
  • Total Posts : 21
  • Reward points : 0
  • Joined: 2017/10/24 04:53:06
  • Location: 0
  • Status: offline
Re: want to save the data in pen drive from pic32 eth starter kit. 2018/02/15 00:34:51 (permalink)
0
Hi Akshay,
Now I enter in to a debug mode, halt at main and take a step into, should I place a break point in app.c file and where. please help me. 
#20
Page: 12 > Showing page 1 of 2
Jump to:
© 2018 APG vNext Commercial Version 4.5