problems with the 18F2xJ50/ 18F14K50 USB

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 5.
To post in this forum you must have a registered copy of Flowcode 5 or higher.

Moderator: Benj

Post Reply
HjH
Posts: 108
Joined: Sat Jul 03, 2010 4:38 pm
Been thanked: 2 times

problems with the 18F2xJ50/ 18F14K50 USB

Post 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

kersing
Valued Contributor
Valued Contributor
Posts: 2045
Joined: Wed Aug 27, 2008 10:31 pm
Location: Netherlands
Has thanked: 553 times
Been thanked: 1081 times

Re: problems with the 18F2xJ50/ 18F14K50 USB

Post by kersing »

Could you please post Flowcode 5 issues in the Flowcode 5 part of the forum?
“Integrity is doing the right thing, even when no one is watching.”

― C.S. Lewis

User avatar
DavidA
Matrix Staff
Posts: 1076
Joined: Fri Apr 23, 2010 2:18 pm
Location: Matrix Multimedia Ltd
Has thanked: 58 times
Been thanked: 258 times
Contact:

Re: problems with the 18F2xJ50/ 18F14K50 USB

Post by DavidA »

I have moved this topic to the relevant forum

Post Reply