USB Transfer Error, Flash Memory Programming Failed

General discussion on mikroBasic for dsPIC30/33 and PIC24.
Post Reply
Author
Message
christophereet1
Posts: 15
Joined: 19 May 2007 09:54

USB Transfer Error, Flash Memory Programming Failed

#1 Post by christophereet1 » 01 Dec 2010 21:37

Hello all,

I am just coming back to an old project using the EASYdsPIC2 board and loaded the dsPIC software Ver 1.2.

I have the chip that came with the board still in. The PIC30F4013 and the Oscillator is 8.000 on the can.

The code I used is just some example. I get the message with the simple led blink.

Under the Project Setup: I have it set to Device P30F4013 and Clock 10.0000

I am using USB18F Firmware V1.2


Now I know that this chip worked because I had a little program I made 3 years ago running on it and now I get this error. ( can't find that program )

I remember I had a problem before and I solved it on my own. I think the setting need to be changed in the Project Edit or something!

under, Project Edit, I set it to "DEFAULT" settings. ( don't think that is correct. )



'*******************************************************************************
'*Project Name as Uart_Test
'*Date/Author as 2005-02-11 VD
'*Description as This program demonstrates how to use Soft UART on dsPIC*
'*Environment as The program has been tested with p30F4103, @10MHz,
'* Crystal oscillator, ECPLL 4x, EasyDsPic2 board.
'*Remarks as Put jumpers to connect UART-A to dsPIC
'*******************************************************************************
program Soft_Uart_example

dim rx, _err as word

main:
ADPCFG=$FFFF
Soft_Uart_Init(LATF.2, LATF.3, 9600, 0 , 0)
while true
rx=Soft_Uart_Read(_err)
Soft_Uart_Write(rx)
wend
end.

when I try to install the embedded code I get using and example piece of code

"USB Transfer Error, Flash Memory Programming Failed!"


any idea would be great. Thanks. :roll:

christophereet1
Posts: 15
Joined: 19 May 2007 09:54

Re: USB Transfer Error, Flash Memory Programming Failed

#2 Post by christophereet1 » 25 May 2011 21:38

Found the problem. It was because I was using an old piece of software for the ds pics. An older version does NOT work for new ds pic 6 boards!

Got it.

Muphy
Posts: 318
Joined: 24 Feb 2008 14:05
Location: Stonehaven Scotland

Re: USB Transfer Error, Flash Memory Programming Failed

#3 Post by Muphy » 25 May 2011 21:42

I do not know the dsPIC that well but how can you set the clock in the project as 10MHz but the crystal is 8MHz??

If I am misunderstanding then happy to be set straight.

M

Post Reply

Return to “mikroBasic for dsPIC30/33 and PIC24 General”