How to make new board with PIC18F47K42 working with ARDUINO IDE

hi to all. i have a question about a pic micro controller board that i made. it using a powerful pic micro controller from microchip model PIC18F47K42.

link is here >>> https://www.microchip.com/en-us/product/PIC18F47K42

i want to make some software driver for board and linked with arduino ide to can be board programmed with microchip compiler XC8 that is for pic micro controllers.

but have no idea from where to start this project. i found after small research info about pinguino, but pingo use it different type pic micro and is not mine.

a picture of board that i upload is basic working pcb design with 1 pic micro pic18F47K42, usb to serial converter CH340, some leds end power module. it is tested with software compiled with XC8 compiler and i have a bootloader projec tested and uploaded to pic micro with working application for bootloader from microchip. project pcb work perfectly with XC8 but for develop ide i want to use arduino ide and need some help to make a pcb board drive and some software to make connection between XC8 compiler and arduino ide.

i have many projects on my website, if is not a problem can share a link, but now want to use same compiler XC8 for pic micros and arduino ide for develop :slight_smile:

best regard to all :slight_smile: waiting for answer :slight_smile:

how to make new board with PIC18F47K42 working with ARDUINO IDE

Its a question for higher ups...

What I do know is that arduino uses ATmega8U2/16U2 as a makeshift serial converter, along with some firmware,and drivers for the 8U2 and arduino bootloader on the main chip, to interface the IDE, but Arduino is Atmel based, idk if it has compatibility, if the methods are simmilar, or you would need to tweak, write your own bootloader, not sure how that works...

Maybe you could make use of the mega8U2 and existing drivers, for the programmer to interface your micro, there are 15 available in the IDE, the code should be acessible, as for the Arduino bootloader on the PIC, or external compiler I am clueless...

It looks like you need to write an Arduino core to support the PIC18F47K42 .
Have a read here: Why is there still no core to program PIC using the Arduino platform? | Microchip
But generally google for "pic arduino core "

First you need to find a C++ compiler for PIC18. Preferably OSSW, but at least "free."

i can use this form visual studio 2022. or it is not will work ?!!?!?!?!?!

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.