Page 1 of 1

BL0080 and PIC18877

Posted: Tue Jun 25, 2019 1:56 pm
by JFinlayson
Hi
I am having trouble with programming PIC 16F18877, I am using EB023 and unable to get this working using 16FPIC18877 but switched to PIC 18F2680 and it works fine. I also have problems with this chip using SPI and I2C. but other chips work fine. Any idea why?

Re: BL0080 and PIC18877

Posted: Wed Jun 26, 2019 5:02 pm
by Benj
Hello,

Does the 16F18877 work ok with simple none comms based programs e.g. a 1 second flasher?

Can you post a program that is currently not working on the 16F18877 device?

Is your copy of v8 fully up to date? e.g. 8.2 with all the latest updates?

Re: BL0080 and PIC18877

Posted: Fri Jun 28, 2019 8:29 am
by JFinlayson
V8 not up to date I will test it later with update and let you know. :o

Re: BL0080 and PIC18877

Posted: Sat Jun 29, 2019 10:24 am
by JFinlayson
OK Flowcode 8 fully up to date ver 8.2.0.12.

The attached program works fine with 18F2680, But not with 16F18877. This is still the case it hangs on first call to EB023.
My guess is that there may be something not correct with remap pins, but its only a guess.

:?

Re: BL0080 and PIC18877

Posted: Sat Jun 29, 2019 12:30 pm
by LeighM
Could you try setting SPI to read sample point middle.
I cannot check the project at the moment.
You might need to configure Flowcode to expose the component property tree

Re: BL0080 and PIC18877

Posted: Sun Jun 30, 2019 7:56 pm
by JFinlayson
I tried SPI component on middle and end. There was no difference

Re: BL0080 and PIC18877

Posted: Sun Jun 30, 2019 8:00 pm
by JFinlayson
On other devices it was working sometimes but not others so added Rx::setdestination and its reliable on other devices. but not on PIC18877.

Re: BL0080 and PIC18877

Posted: Sun Jun 30, 2019 8:04 pm
by JFinlayson
Here is working code, I am using. works fine.