Page 1 of 1

problems with the 18F2xJ50/ 18F14K50 USB

Posted: Sat Jun 09, 2012 3:18 pm
by HjH
Hi,

I have a big problem with the USB.

Flowcode5 can't correctly compile code with containing USB code. Flowcode4 can this. This problem is independent from the PIC (18F26J50 or. 18F14K50)
The same problem I had with flowcode 4 in the first time. See the posts from 12.09.2011.
The same programm have I posted at 12.09.2011


From my point of view is the problem Flowcode5 send no configuration words in the hex file.

For your analysis I have listed the start prameter from my program

I have a USB progamm written with flowcode 4 for the pic 18f26j50. This programm run correct.
The same programm with flowcode 5 and the same pic 18f26j50 runs not correct.
The Primary Oscillator frequency is 2.0 MHz with a 12.0 MHz quartz. This is my problem I can modify the configuration register without results.
The same problem I had with flowcode 4 in the first time. See the posts from 12.09.2011

The error with USB Initialization could I corrected.
OSCTUNEbits.PLLEN = 1; Error
was replaced through
set_bit(osctune, PLLEN);


The start points are:

1. PIC 18F26J50
2. Primary Oscillator frequency is 12MHz
3. Serial USB
4. configuration register
CONFIG1L 0x8a
CONFIG1H 0xff
CONFIG2L 0x95
CONFIG2H 0xff
CONFIG3L 0xf5
CONFIG3H 0xf9
CONFIG4L 0xc0
CONFIG4H 0xf1

//Konfigurations-Daten
#ifdef _BOOSTC
#pragma DATA 0x300000, 0x8a
#endif
#ifdef _HI_TECH_C
%C__CONFIG(%A, %V);
#endif
#ifdef _BOOSTC
#pragma DATA 0x300001, 0xff
#endif
#ifdef _HI_TECH_C
%C__CONFIG(%A, %V);
#endif
#ifdef _BOOSTC
#pragma DATA 0x300002, 0x15
#endif
#ifdef _HI_TECH_C
%C__CONFIG(%A, %V);
#endif
#ifdef _BOOSTC
#pragma DATA 0x300003, 0xff
#endif
#ifdef _HI_TECH_C
%C__CONFIG(%A, %V);
#endif
#ifdef _BOOSTC
#pragma DATA 0x300004, 0xf5
#endif
#ifdef _HI_TECH_C
%C__CONFIG(%A, %V);
#endif
#ifdef _BOOSTC
#pragma DATA 0x300005, 0xf8
#endif
#ifdef _HI_TECH_C
%C__CONFIG(%A, %V);
#endif
#ifdef _BOOSTC
#pragma DATA 0x300006, 0xc0
#endif
#ifdef _HI_TECH_C
%C__CONFIG(%A, %V);
#endif
#ifdef _BOOSTC
#pragma DATA 0x300007, 0xf1
#endif
#ifdef _HI_TECH_C
%C__CONFIG(%A, %V);
#endif


Please can you help me

Re: problems with the 18F2xJ50/ 18F14K50 USB

Posted: Sat Jun 09, 2012 7:38 pm
by kersing
Could you please post Flowcode 5 issues in the Flowcode 5 part of the forum?

Re: problems with the 18F2xJ50/ 18F14K50 USB

Posted: Mon Jun 11, 2012 2:26 pm
by DavidA
I have moved this topic to the relevant forum