Page 1 of 1
GHOST on ECIO40-P16
Posted: Fri Apr 02, 2021 9:52 pm
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
Re: GHOST on ECIO40-P16
Posted: Fri Nov 05, 2021 2:39 pm
by Xbiotec
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 ....
Re: GHOST on ECIO40-P16
Posted: Fri Nov 05, 2021 4:33 pm
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.
Re: GHOST on ECIO40-P16
Posted: Tue Nov 09, 2021 12:25 pm
by Xbiotec
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 (113.64 KiB) Viewed 5970 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 (75.97 KiB) Viewed 5970 times
Program updated
Thx for your prompt reply
Re: GHOST on ECIO40-P16
Posted: Tue Nov 09, 2021 1:47 pm
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.
Re: GHOST on ECIO40-P16
Posted: Tue Nov 09, 2021 2:23 pm
by Xbiotec
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 (16.31 KiB) Viewed 5961 times

- Data on Tx.jpg (27.65 KiB) Viewed 5961 times
Re: GHOST on ECIO40-P16
Posted: Tue Nov 09, 2021 4:07 pm
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.