Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ds30loader ok testboard- doesn't work in device [solved]
#3
I did not use the same PLL settings, since I am now using a 30 MHz crystal instead of a 7.375MhZ crystal.

The config statements are shown below for two different cases I tried.

I read the characters since by the pic24HJ128GP502 fine with a terminal program, so the ds30 loader is running and the baud rate is OK.


Configuration settings for running with 30MHz crystal

;------------------------------------------------------------------------------
;config __FBS, RBS_NO_RAM & BSS_NO_FLASH & BWRP_WRPROTECT_OFF
;config __FSS, RSS_NO_RAM & SSS_NO_FLASH & SWRP_WRPROTECT_OFF
;config __FGS,GSS_OFF & GCP_OFF & GWRP_OFF
config __FOSCSEL, FNOSC_PRI & IESO_OFF
config __FOSC,FCKSM_CSDCMD & OSCIOFNC_OFF & POSCMD_HS& IOL1WAY_OFF
;config __FWDT,FWDTEN_OFF & WINDIS_OFF
;config __FPOR,FPWRT_PWR1
;config __FICD,BKBUG_ON & COE_ON & JTAGEN_OFF & ICS_PGD1

I also tried using internal oscillator. Configs are:
;------------------------------------------------------------------------------
;config __FBS, RBS_NO_RAM & BSS_NO_FLASH & BWRP_WRPROTECT_OFF
;config __FSS, RSS_NO_RAM & SSS_NO_FLASH & SWRP_WRPROTECT_OFF
;config __FGS,GSS_OFF & GCP_OFF & GWRP_OFF
config __FOSCSEL, FNOSC_FRC & IESO_OFF
config __FOSC,FCKSM_CSDCMD & OSCIOFNC_ON & POSCMD_XT
;config __FWDT,FWDTEN_OFF & WINDIS_OFF
;config __FPOR,FPWRT_PWR1
;config __FICD,BKBUG_ON & COE_ON & JTAGEN_OFF & ICS_PGD1


I left those commented out so you could see they were still commented out.

Also below is the configuration (pin selection) for the uart receiver on the 24HJ128GP502. If this were wrong, then that could explain my entire problem.

; Receive, map pin to uart1 pin b14 1110;
bclr RPINR18, #U1RXR0 ;xxx
bset RPINR18, #U1RXR1 ;xxx
bset RPINR18, #U1RXR2 ;xxx
bset RPINR18, #U1RXR3 ;xxx
bclr RPINR18, #U1RXR4 ;xxx


Reply


Messages In This Thread
RE: ds30loader ok testboard- doesn't work in device - by Donheli - 2011-05-10, 15:55:25

Forum Jump:


Users browsing this thread: 1 Guest(s)