[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [N8VEM-S100:7673] Re: PIC32 Ascii Terminal



If your going to re-compile the code, I made some minor change to remove the warning from the orgional... I also added the support for the larger PIC32MX270 chip

Some minor change I made in ther code to fix complier warnings with XC32 1.32 to 1.34... ( it will NOT compile with ver 1.4 as Microchip has removed plib)
( i changed ver to 1.3a)

1) spelling error for Terminal in usb_descriptors.c

//Product string descriptor
ROM struct{BYTE bLength;BYTE bDscType;WORD string[14];}sd002={
sizeof(sd002),USB_DESCRIPTOR_STRING,
{'V','i','d','e','o',' ','T','e','r','m','i','n','a','l'}
};

2) Added in preprocessor macro in Project Properties

_DISABLE_OPENADC10_CONFIGPORT_WARNING
_SUPPRESS_PLIB_WARNING

3) changes all ISR to be of this format: (added IPLxAUTO)

In Keyboard.c
void __ISR( _EXTERNAL_3_VECTOR , ipl2AUTO) INT3Interrupt(void) { 

In Main.c

void __ISR(_UART2_VECTOR, ipl3AUTO) IntUart2Handler(void) {        
void __ISR( _TIMER_4_VECTOR, ipl1AUTO) T4Interrupt(void) {


4) Added code to support PIC32MX270xx (what I had on hand) in Terminal.h

// grab as much memory as possible for video and Rx buffers

#if (__32MX250F128B__)
#define BUFFER_SIZE             (29820)                             // this should be the largest possible size allowed by the compiler/linker
#elif (__32MX270F256B__)
#define BUFFER_SIZE             (56000)         
#endif

5) changed all <p32xxxx.h> tobe <xc.h>

/* System include files */
#include <xc.h>
//#include <p32xxxx.h>


6) remove the linker scrip from the project...ie: let the IDE pick the correct one...



On Sat, Sep 26, 2015 at 12:57 PM, David Fry <dgf...@googlemail.com> wrote:
Thanks Gary,

I think I'll pick up one of the programmers from Ebay, it will be useful if I want to play with the code.

regards

David


On Saturday, September 26, 2015 at 8:32:17 PM UTC+1, Gary Kaufman wrote:
David -

Jim Orchard is also in the UK (at least by his email address).

I purchased this PICkit3, but would tell you the ZIF board included was
useless with the PIC32 (at least I couldn't get it working and there was
Zero documentation).  The ICSP cable worked fine with a breadboard.
http://www.ebay.com/itm/141636162194?_trksid=p2057872.m2749.l2649&ssPageName=STRK%3AMEBIDX%3AIT

A bunch of vendors in Hong Kong or China have them for less than $15

I used the PICkit3 "Header with self power supply" on this site for
actually burning.  I just set it up on a temporary breadboard and used
an LM317 circuit and 9V battery.
https://sites.google.com/site/pcusbprojects/5-custom-projects/r-pickit-3-header-for-pic32mx250f128b-programming

Again, happy to burn them and include them in a shipment to Jim if he's
ok with that.

- Gary

On 9/26/2015 3:19 PM, David Fry wrote:
> Hi Gary,
>
> good point,
> can you post a link to the programmer you purchased on ebay ?
>
> Also, I think I might be the only one in the UK
>
> regards
>
> David

--
You received this message because you are subscribed to the Google Groups "N8VEM-S100" group.
To unsubscribe from this group and stop receiving emails from it, send an email to n8vem-s100+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

~~ _/) ~~~~ _/) ~~~~ _/) ~~~~ _/) ~~

Tom Lafleur