Page 1 of 1

24FJ128GC006 Support

Posted: Sun May 21, 2017 7:00 pm
by Quartz
Hi

I have only just got my hands on Flowcode V7 Pro to use to re-write software for a product my company produces that originally was programmed in a different flavour of C by a collegue that has since left.
I got Flowcode V7 as I had previously used Flowcode Pro V5 and found it a very useful tool in speeding up software development.

However, having now got V7 I find that the processor I need to program (PIC24FJ128GC006) isn't in the list of supported processors. Previously the product used a PIC24FJ128GA006 which I think may be very similar to the GC006.

So I may be able to write the code with the GA006 selected in Flowcode but how then can I program the GC006 chip?
I use a Microchip ICD3 which when I use the MAPLAB X IDE it complains if the processor doesn't match so what do I do?

Can Flowcode be tricked into programming the GC006 or is there support for the GC006 coming any time soon?

Thanks for any help anyone can give.

Regards
Gypo

Re: 24FJ128GC006 Support

Posted: Mon May 22, 2017 1:54 pm
by Benj
Hello,

I've made a start on adding these devices for you. There may still be some problems lurking that will need ironing out but hopefully most things should be in and working.

Simply extract the attached files into your "Flowcode 7/FCD/PIC16" folder, restart Flowcode and the new devices should be available in the list.
PIC16.zip
(27.14 KiB) Downloaded 296 times
You will also need a new ADC CAL file which will need to be placed into the "Flowcode 7\CAL\PIC16BIT" folder.
PIC16BIT_CAL_ADC.c
(52.08 KiB) Downloaded 309 times
If you have a go then let us know how you get on.

Re: 24FJ128GC006 Support

Posted: Mon May 22, 2017 10:39 pm
by Quartz
Wow!
Thats support!

I have put them in the directories you said to put them.
I'll be able to get my teeth into this Wednesday or failing that by the week end so I'll have a look and get back to you with how I get on.

There is now another thing that hopefully just information could get me sorted but I'll post that in the relevant area as it's regarding using my own fonts with one of your GLCD components.

Many thaks for this,
I'll keep you posted on progress.

Re: 24FJ128GC006 Support

Posted: Wed May 24, 2017 6:20 pm
by Quartz
Hi

Not a lot to report yet,

I have put the files where you said to place them and restarted Flowcode, on restarting Flowcode and loading the project Flowcode froze and my PC froze too, after a short time Flowcode closed itself and gave me my PC back.
It did exactly the same when I ran flowcode and loaded the project a second time.

I tried a third time and this time flowcode & the project loaded OK but then complained that I was trying to use a pin that wasn't available.
I removed the gLCD component from the project, re-added it and all was fine.

Just to note that each time I added the gLCD to the project I had let Flowcode define the gLCD connections I had not customised the connections for my hardware yet.

I will give it a try again tonight and will change the connections to my hardware then with a basic display routine program my board and see what happens....

I'll update this when I have had the time to give it another try.

Regards

Re: 24FJ128GC006 Support

Posted: Tue Sep 26, 2017 10:48 pm
by Quartz
Hi

Sorry it's been so long but I was taken to work on other things so until recently I didn't get to try using your files.

So I have now had some time to test the PIC24FJ128GC006 files you posted and I have been able to connect to the board and load a program onto the PIC.

Unfortunately the only board I have to play with has a shed load of other components on connected to the PIC chip and so I only have the components on the board to play with and they are proving to be difficult.
The gLCD display is hardwired to use parallel mode and 8086.

I have limited the first test to the hello world flashing LED test.
That works fine, so I guess at least I'm able to program the chip and use a port pin or 2.

I have a gLCD ST7565 display (this RS part No.564-399) connected to these pins
D0 - D7 to RE0 - RE7
CS to RF0
RST to RF1
A0 to RD5
EN to RD6
R/W to RD4
Backlight 1 to RB2 (Red)
Backlight 2 to RB3 (Blue)
Backlight 3 to RF7 (Green)

Just in case my understanding of this is wrong these are the pin to pin numbers.
gLCD------Pic24FJ128GC006---Signal Name
1---------RF0--------------------/CS1
2---------RF1--------------------/RES
3---------RD5--------------------A0 (DISPLAY DATA /CONTROL DATA)
4---------RD4--------------------/WR (R/W)
5---------RD6--------------------/RD (E)
6-13-----D0 - D7----------------DATA
27-------Tied Lo----------------C86
28-------Tied Hi----------------P/S


I used the RED backlight LED for the Hello World test which works fine.
But using the component for the ST7565 doesn't seem to do anything, nothing shows on the gLCD screen, I have attached the simple test file I tried.
Perm_GLCD.fcfx
gLCD issues
(13.45 KiB) Downloaded 272 times
One problem I have found with the files for the PIC you posted is that I can't connect to RF7 to use the Green backlight, can that be fixed so that I can connect to it?

Regards.