GHOST on ECIO40-P16

Any bugs you encounter with Flowcode should be discussed here.
Post Reply
DAVIDJOINER
Posts: 140
http://meble-kuchenne.info.pl
Joined: Wed Dec 02, 2020 7:35 pm
Been thanked: 18 times

GHOST on ECIO40-P16

Post by DAVIDJOINER »

Hi

I tried to use my Flowkit HP299 for ICD using FC9 on a couple of my ECIO40-P16 but appears not to work now in FC9

I keep getting " The chip does not contain the latest ICD Build you need to compile to chip "

i keep re compiling but get the same message

Note i was using the same flow kit on FC8 before i upgraded to FC9 with no problems

Can you check that FC9 still works with a Flowkit 1 HP299 / advise a fix

Best Regards
David

lucibel
Posts: 172
Joined: Thu Sep 23, 2021 3:44 pm
Location: France
Has thanked: 29 times
Been thanked: 22 times

Re: GHOST on ECIO40-P16

Post by lucibel »

Flowcode V9 + BL0080 + PIC16F1786
Same message like many user in FC7, FC8, when push GO with ICD enabled : "The chip does not contain the latest ICD.
Even after COMPILE TO TARGET, power OFF/ON , enable ICD ....
Seb

BenR
Matrix Staff
Posts: 1726
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 438 times
Been thanked: 602 times

Re: GHOST on ECIO40-P16

Post by BenR »

Hello,

Sorry to hear of this problem, Are you able to attach your project file so we can check to make sure that isn't the cause of the problem.

lucibel
Posts: 172
Joined: Thu Sep 23, 2021 3:44 pm
Location: France
Has thanked: 29 times
Been thanked: 22 times

Re: GHOST on ECIO40-P16

Post by lucibel »

Dear Ben,
sorry for my late reply but I was out of office these 2 days .
1- as you can see, on the picture, we can see TX signal even if Tx is not used
Ghost RX TX.jpg
Ghost RX TX.jpg (113.64 KiB) Viewed 2607 times
2- Still same message when push GO with ICD enabled : "The chip does not contain the latest ICD"

3- As you can see on the picture, I'm also using a GLCD BL0157 , there is also many bug
-Set Display orientation dont work. SOLVED I wrote 90 instead of 1 !

-Set background color don't work, as you can see on the picture, only the background color the text is updated
GLCD BL0157.jpg
GLCD BL0157.jpg (75.97 KiB) Viewed 2607 times
Program updated
Xb040 test UART C8 bl0157 v02.1.fcfx
(30.09 KiB) Downloaded 101 times
Thx for your prompt reply
Last edited by lucibel on Tue Nov 09, 2021 1:53 pm, edited 1 time in total.
Seb

BenR
Matrix Staff
Posts: 1726
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 438 times
Been thanked: 602 times

Re: GHOST on ECIO40-P16

Post by BenR »

Hello,

As your using the internal oscillator the chip will startup at a fairly low speed and so will not be at the correct speed for the ICD communications to be established before your program starts. To get around this you can place your INT OSC configuration code into the Flowcode definition file and this will allow the chip to be up to speed before we try and initialise the ICD comms.

To do this you can simply edit the chip definition file by copying and pasting this into your file browser address bar.

C:\ProgramData\MatrixTSL\FlowcodeV9\FCD\PIC

Open up the correct definition file into a text editor and towards the bottom of the file you will see this section.

Code: Select all

    <main >
        <start code='\nvoid main()\n{\n' />
        <end code='\tmainendloop: goto mainendloop;\n}\n\n' />
        <init code='ANSELA = 0x00;\nANSELB = 0x00;\n' />
    </main>
Simply add your initialise code to the init code line for example.

Code: Select all

    <main >
        <start code='\nvoid main()\n{\n' />
        <end code='\tmainendloop: goto mainendloop;\n}\n\n' />
        <init code='ANSELA = 0x00;\nANSELB = 0x00;\nOSCTUNE = 0x1F; // max frequency\nOSCCON = 0xF8; //  32Mhz clock\n' />
    </main>
Then reload your Flowcode project and hopefully now ICD will work correctly.

As for the GLCD options. The set display orientation will not refresh the display but any subsiquent writes should be in the new orientation, also the parameter values should be 0,1,2 or 3, values greater than 3 will be ignored. Also with the setBackgroundColour this will effect any subsiquent writes and so if you set the colour and then clear the display this will draw the entire display in the new background colour.

lucibel
Posts: 172
Joined: Thu Sep 23, 2021 3:44 pm
Location: France
Has thanked: 29 times
Been thanked: 22 times

Re: GHOST on ECIO40-P16

Post by lucibel »

thx Ben
After Flowcode PIC definition file changed, the ICD can GO , step by step...
But this not solve the data on TX
TX not used.jpg
TX not used.jpg (16.31 KiB) Viewed 2598 times
Data on Tx.jpg
Data on Tx.jpg (27.65 KiB) Viewed 2598 times
Seb

BenR
Matrix Staff
Posts: 1726
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 438 times
Been thanked: 602 times

Re: GHOST on ECIO40-P16

Post by BenR »

Hello,

It looks like the TX pin is maybe floating and hence ghost is picking up spurious data. Maybe try outputting a 0 or 1 to the pin and that should get rid of the none existant data.

Post Reply