Basic Programming Via UART

For questions and comments on programming in general. And for any items that don't fit into the forums below.

Moderators: Benj, Mods

Post Reply
Lord Grezington
Flowcode V4 User
Posts: 288
Joined: Wed Nov 02, 2011 11:15 pm
Has thanked: 29 times
Been thanked: 30 times

Basic Programming Via UART

Post by Lord Grezington »

Hello Everyone...

I have dome some software on Visual Studio to communicate with a pic through UART, and so far its working great. However, my next task is to somehow allow some programmability through the software into the PIC so that the pic can run the program when not connected to the software.

Now the easiest way I can think of doing this is by programming the PIC up with various macros for every possible command from the UART and have a flowcode chart deciding which ones to use based on some variables saved in EEPROM. But, this is extremely tedious, can cause many bugs, uses loads of programming memory as well as takes up a massive amount of EEPROM.

There must be an easier way, anyone have any idea's?

Thanks

medelec35
Matrix Staff
Posts: 9521
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times

Re: Basic Programming Via UART

Post by medelec35 »

Hi
Hi Don't know if this site will help as it;s not something I have tried myself
There is also another site to try.

Martin
Martin

Lord Grezington
Flowcode V4 User
Posts: 288
Joined: Wed Nov 02, 2011 11:15 pm
Has thanked: 29 times
Been thanked: 30 times

Re: Basic Programming Via UART

Post by Lord Grezington »

Hello Martin

Yes, the mini boot-loader looks like it may solve my little problem, however it introduces many more little problems...

The PIC i am using is not listed on any of their compatibility lists, however going through the datasheet it is possible for me to read/write to the flash memory through software. ""GOOD news!!!""

This is where my non-experience with this sort of thing comes in... The PC software will need to create a program of the users choice, then I will need to run it through a compiler and generate a HEX code. I will then need to take the HEX code and send it to the boot-loader installed in the PIC and will be initiated through a C-Code block in Flowcode and hopefully follow the instructions on the PIC datasheet.

Not complicated at all :cry: :cry: :cry:

Thanks, looks like I have the next few months booked up...

Post Reply