[Flashforth-devel] Microstick 2
Brought to you by:
oh2aun
From: Peter F. <fis...@gm...> - 2015-08-15 09:16:34
|
I note there are problems with the Microstick 2 config files for the PIC24HJ and dsPIC33. This is the latest download FF5: Flashforth PIC24 14.06.02015 This is a bit of a killer if you are unfamiliar with these chips. The chips included with the Microstick 2 is the dsPIC33FJ128MC802 and the PIC24HJ128GP502. I haven't used the PIC24FJ64GB002 with FlashForth. p33_config.inc : The TX and DX pins are REVERSED in the config file. My amendment: ; Map UART1 pins .ifdecl RPINR18 ;.equ RPINR18VAL, 6 ; RP6 (U1RXPIN) ;.equ U1TXPIN, 5 ; RP5 .equ RPINR18VAL, 10 ; U1RXPIN RP42 PB10 pin21 microstick2 .equ U1TXPIN, 11 ; U1TXPIN RP43 PB11 pin22 microstick2 Likewise amended for p24hj_config.inc ; Map UART1 pins .ifdecl RPINR18 ;.equ RPINR18VAL, 0x000f ; (U1RXPIN) ;.equ U1TXPIN, 0xe .equ RPINR18VAL, 0x000a ; U1RXPIN RP10 pin21 microstick2 .equ U1TXPIN, 0xb ; U1TXPIN RP11 pin22 microstick2 With config __FOSCSEL, IESO_ON & FNOSC_FRCPLL in p33_config.inc and config __FOSCSEL, IESO_ON & FNOSC_FRCPLL config __FOSC, FCKSM_CSECMD & IOL1WAY_OFF & OSCIOFNC_OFF & POSCMD_NONE in p24hj_config.inc these chips should run Flashforth 5 after compiling with MPLAB X. FTDI usb to uart board connected to J6. Regards Peter. |