Original Attachment has been moved to: 1100134_Console%20Output.txt.zip
Original Attachment has been moved to: 1100134_Console%20Output.txt.zip
Original Attachment has been moved to: 1100134_Console%20Output.txt.zip
Original Attachment has been moved to: 1100134_Console%20Output.txt.zip
Original Attachment has been moved to: 1100134_Console%20Output.txt.zip
Original Attachment has been moved to: 1100134_Console%20Output.txt.zip
Status CAN_SendMsg (LPC_CAN_TypeDef *CANx, CAN_MSG_Type *CAN_Msg) .... CANx->CMR = 0x21; ... CANx->CMR = 0x41; ... CANx->CMR = 0x81; |
Status CAN_SendMsg (LPC_CAN_TypeDef *CANx, CAN_MSG_Type *CAN_Msg) .... CANx->CMR = 0x30; ... CANx->CMR = 0x50; ... CANx->CMR = 0x90; |
// CAN1 // P0.0~1, function 0x01, Pin46 RxD1, Pin47 TxD1 LPC_PINCON->PINSEL0 &=~0x0F; //clear P0.0~1 LPC_PINCON->PINSEL0 |= 0x05; //set b0101 // CAN2: // P0.4~5, function 0x01, Pin81 RxD2, Pin80 TxD2 LPC_PINCON->PINSEL0 &=~(0x0F<<8); //clear P0.4~5 LPC_PINCON->PINSEL0 |= (0x0A<<8); //set b1010 |
Please http://http//www.2shared.com/file/jnNEk7xY/canTest.html upload this canTest file , i am not able to access , whenever i try to send a can message in lpc1768 my controller is going in RESET mode.
i.e LPC_CAN1->MOD is getting set to 1.
LPC_CAN1->MOD = LPC_CAN2->MOD = 0x00; //CAN in normal operation mode |
LPC_CAN1->MOD = LPC_CAN2->MOD = (1<<2); //local self test |
LPC_CAN1->CMR = 0x21; ... LPC_CAN1->CMR = 0x41; ... LPC_CAN1->CMR = 0x81; |
LPC_CAN1->CMR = 0x30; ... LPC_CAN1->CMR = 0x50; ... LPC_CAN1->CMR = 0x90; |
**** Build of configuration Debug for project lpc17xx.cmsis.driver.library **** make libs makefile:45: C:/Users/Dewrek/Documents/lpcxpresso_3.4/workspace/lpc17xx.cmsis.driver.library\makesection\makerule\LPC17xx\make.LPC17xx.gnu: No such file or directory make: *** No rule to make target `C:/Users/Dewrek/Documents/lpcxpresso_3.4/workspace/lpc17xx.cmsis.driver.library\makesection\makerule\LPC17xx\make.LPC17xx.gnu'. Stop. |
include $(PROJ_ROOT)\makesection\makerule\$(DEVICE)\make.$(DEVICE).$(TOOL) |