That is a programming issue not a library issue. Check hardware, supply,
cable length, wires with cold solder or even not connected, programmer
speed, programmer software malfunction. I guess you need pickit3 plus or
pickit3 minus to program that pic. With a correct definition file.

On Tue, Apr 9, 2024 at 10:45 PM jos smans <[email protected]> wrote:

> hi Rob,
> I have compiled  the 18f4431 and a hex file was made, but after
> programming  the pic with pickit 3, the error occurred "programming failed
> at program memory address 0x000000".Maybe the adc library must, as you said
> before, changed.
> kind regards
> Jos
>
> Op di 9 apr 2024 om 21:09 schreef jos smans <[email protected]>:
>
>> Hi Rob,
>> Thank you very much for your support. It works excellent.
>> Kind regards
>> Jos
>>
>> Op di 9 apr 2024 om 19:48 schreef Rob CJ <[email protected]>:
>>
>>> Hi Jos,
>>>
>>> The problem is in the ADC library. Apparently the 18F4431 has a
>>> different way of selecting the ADC channel that I have never seen before.
>>>
>>> I made a quick fix and added the channel selection for your PIC but to
>>> the attached ADC library did not test this so you should give it a try. The
>>> code I added could be simplified but that is something that could be done
>>> later.
>>>
>>> So place the attached ADC library in the directory of your program
>>> recompile it and let me know if it works.
>>>
>>> Thanks.
>>>
>>> Kind regards,
>>>
>>> Rob
>>>
>>> ------------------------------
>>> *Van:* [email protected] <[email protected]> namens jos
>>> smans <[email protected]>
>>> *Verzonden:* dinsdag 9 april 2024 16:56
>>> *Aan:* jallib <[email protected]>
>>> *Onderwerp:* [jallib] Greenhouse
>>>
>>> Good day, i have a problem with a program to make   automatic my
>>> greenhouse. With pic 18f4455,  it  works fine, but not with pic 18f4431.I
>>> think its a adc fault but i am not sure.
>>> Can someone help me? thanks
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "jallib" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/jallib/eaae0d75-efe1-4bdc-b6ce-ca87db6dd560n%40googlegroups.com
>>> <https://groups.google.com/d/msgid/jallib/eaae0d75-efe1-4bdc-b6ce-ca87db6dd560n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "jallib" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/jallib/GVXP195MB1637171120AC6BA343AB4AFFE6072%40GVXP195MB1637.EURP195.PROD.OUTLOOK.COM
>>> <https://groups.google.com/d/msgid/jallib/GVXP195MB1637171120AC6BA343AB4AFFE6072%40GVXP195MB1637.EURP195.PROD.OUTLOOK.COM?utm_medium=email&utm_source=footer>
>>> .
>>>
>> --
> You received this message because you are subscribed to the Google Groups
> "jallib" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jallib/CAMK-nAftmPUHcT-g_kMvgQW0HykAT40z2yZi7z_cKAsxjbO%2BUQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/jallib/CAMK-nAftmPUHcT-g_kMvgQW0HykAT40z2yZi7z_cKAsxjbO%2BUQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jallib/CAM%2Bj4qs-jwoRSyH81N8gqEEgXhp1fRuJ_OkfYku55YFm5dK_hg%40mail.gmail.com.

Reply via email to