mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/CAN-Demo.git
synced 2025-06-10 19:15:59 +00:00
working but messy
This commit is contained in:
parent
026bd46137
commit
145294991d
@ -5,7 +5,7 @@
|
||||
<provider copy-of="extension" id="org.eclipse.cdt.ui.UserLanguageSettingsProvider"/>
|
||||
<provider-reference id="org.eclipse.cdt.core.ReferencedProjectsLanguageSettingsProvider" ref="shared-provider"/>
|
||||
<provider-reference id="org.eclipse.cdt.managedbuilder.core.MBSLanguageSettingsProvider" ref="shared-provider"/>
|
||||
<provider class="com.st.stm32cube.ide.mcu.toolchain.armnone.setup.CrossBuiltinSpecsDetector" console="false" env-hash="1691560592812839866" id="com.st.stm32cube.ide.mcu.toolchain.armnone.setup.CrossBuiltinSpecsDetector" keep-relative-paths="false" name="MCU ARM GCC Built-in Compiler Settings" parameter="${COMMAND} ${FLAGS} -E -P -v -dD "${INPUTS}"" prefer-non-shared="true">
|
||||
<provider class="com.st.stm32cube.ide.mcu.toolchain.armnone.setup.CrossBuiltinSpecsDetector" console="false" env-hash="-1080687771005896909" id="com.st.stm32cube.ide.mcu.toolchain.armnone.setup.CrossBuiltinSpecsDetector" keep-relative-paths="false" name="MCU ARM GCC Built-in Compiler Settings" parameter="${COMMAND} ${FLAGS} -E -P -v -dD "${INPUTS}"" prefer-non-shared="true">
|
||||
<language-scope id="org.eclipse.cdt.core.gcc"/>
|
||||
<language-scope id="org.eclipse.cdt.core.g++"/>
|
||||
</provider>
|
||||
@ -16,7 +16,7 @@
|
||||
<provider copy-of="extension" id="org.eclipse.cdt.ui.UserLanguageSettingsProvider"/>
|
||||
<provider-reference id="org.eclipse.cdt.core.ReferencedProjectsLanguageSettingsProvider" ref="shared-provider"/>
|
||||
<provider-reference id="org.eclipse.cdt.managedbuilder.core.MBSLanguageSettingsProvider" ref="shared-provider"/>
|
||||
<provider class="com.st.stm32cube.ide.mcu.toolchain.armnone.setup.CrossBuiltinSpecsDetector" console="false" env-hash="1691560592812839866" id="com.st.stm32cube.ide.mcu.toolchain.armnone.setup.CrossBuiltinSpecsDetector" keep-relative-paths="false" name="MCU ARM GCC Built-in Compiler Settings" parameter="${COMMAND} ${FLAGS} -E -P -v -dD "${INPUTS}"" prefer-non-shared="true">
|
||||
<provider class="com.st.stm32cube.ide.mcu.toolchain.armnone.setup.CrossBuiltinSpecsDetector" console="false" env-hash="-1080687771005896909" id="com.st.stm32cube.ide.mcu.toolchain.armnone.setup.CrossBuiltinSpecsDetector" keep-relative-paths="false" name="MCU ARM GCC Built-in Compiler Settings" parameter="${COMMAND} ${FLAGS} -E -P -v -dD "${INPUTS}"" prefer-non-shared="true">
|
||||
<language-scope id="org.eclipse.cdt.core.gcc"/>
|
||||
<language-scope id="org.eclipse.cdt.core.g++"/>
|
||||
</provider>
|
||||
|
@ -15,35 +15,83 @@
|
||||
|
||||
sta::STM32CanController canController(handle);
|
||||
|
||||
//canController.start();
|
||||
canController.start();
|
||||
|
||||
|
||||
CAN_TxHeaderTypeDef txHeader;
|
||||
/*CAN_TxHeaderTypeDef txHeader;
|
||||
txHeader.DLC = 8;
|
||||
txHeader.IDE = CAN_ID_STD;
|
||||
txHeader.RTR = CAN_RTR_DATA;
|
||||
txHeader.StdId = 0x030;
|
||||
txHeader.ExtId = 0x02;
|
||||
txHeader.TransmitGlobalTime = DISABLE;
|
||||
txHeader.IDE = CAN_ID_STD;
|
||||
txHeader.RTR = CAN_RTR_DATA;
|
||||
txHeader.StdId = 0x030;
|
||||
//txHeader.ExtId = 0x02;
|
||||
txHeader.TransmitGlobalTime = DISABLE;*/
|
||||
|
||||
HAL_CAN_Start(handle);
|
||||
//HAL_CAN_Start(handle);
|
||||
// Create a CanTxHeader for your message
|
||||
/*sta::CanTxHeader txHeader;
|
||||
sta::CanTxHeader txHeader;
|
||||
txHeader.id.format = sta::CanIdFormat::STD; // Set to EXT for extended ID
|
||||
txHeader.id.sid = 0x123; // Set the standard ID or extended ID
|
||||
txHeader.payloadLength = 8; // Set the payload length (max 8 bytes)*/
|
||||
txHeader.id.sid = 0x030; // Set the standard ID or extended ID
|
||||
txHeader.payloadLength = 8; // Set the payload length (max 8 bytes)
|
||||
|
||||
// Create your message payload
|
||||
uint8_t payload[8] = {0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08};
|
||||
|
||||
bool okay;
|
||||
uint32_t canMailbox; //CAN Bus Mail box variable
|
||||
// Send the CAN message
|
||||
while (true){
|
||||
//okay = canController.sendFrame(txHeader, payload);
|
||||
HAL_CAN_AddTxMessage(handle,&txHeader,payload,&canMailbox);
|
||||
canController.sendFrame(txHeader, payload);
|
||||
//HAL_CAN_AddTxMessage(handle,&txHeader,payload,&canMailbox);
|
||||
HAL_Delay(1000);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
extern "C" void testCanMsg(CAN_HandleTypeDef * handle, uint8_t payload[8]){
|
||||
|
||||
sta::STM32CanController canController(handle);
|
||||
|
||||
//canController.start();
|
||||
|
||||
|
||||
CAN_TxHeaderTypeDef txHeader;
|
||||
txHeader.DLC = 8;
|
||||
txHeader.IDE = CAN_ID_STD;
|
||||
txHeader.RTR = CAN_RTR_DATA;
|
||||
txHeader.StdId = 0x030;
|
||||
//txHeader.ExtId = 0x02;
|
||||
txHeader.TransmitGlobalTime = DISABLE;
|
||||
|
||||
//HAL_CAN_Start(handle);
|
||||
// Create a CanTxHeader for your message
|
||||
/*sta::CanTxHeader txHeader;
|
||||
txHeader.id.format = sta::CanIdFormat::STD; // Set to EXT for extended ID
|
||||
txHeader.id.sid = 0x123; // Set the standard ID or extended ID
|
||||
txHeader.payloadLength = 8; // Set the payload length (max 8 bytes)*/
|
||||
|
||||
uint32_t canMailbox; //CAN Bus Mail box variable
|
||||
// Send the CAN message
|
||||
//okay = canController.sendFrame(txHeader, payload);
|
||||
HAL_CAN_AddTxMessage(handle,&txHeader,payload,&canMailbox);
|
||||
HAL_Delay(1000);
|
||||
|
||||
|
||||
}
|
||||
|
||||
void unpackValues(uint8_t packedByte, uint8_t* type_id, uint8_t* sensor_ID, uint8_t* value, uint8_t* include) {
|
||||
*type_id = (packedByte >> 6) & 0x03; // Extracting two bits for type_id
|
||||
*sensor_ID = (packedByte >> 3) & 0x07; // Extracting three bits for sensorID
|
||||
*include = (packedByte >> 2) & 0x01; // Extracting the flag for included value
|
||||
*value = (packedByte >> 1) & 0x01; // Extracting one bit for value
|
||||
}
|
||||
|
||||
uint8_t packValues(uint8_t type_id, uint8_t sensor_ID, uint8_t value, uint8_t include) {
|
||||
uint8_t packedByte = 0;
|
||||
|
||||
// Shifting and ORing the values
|
||||
packedByte |= (type_id & 0x03) << 6; // Two bits for type_id, left-shifted by 6
|
||||
packedByte |= (sensor_ID & 0x07) << 3; // Three bits for sensorID, left-shifted by 3
|
||||
packedByte |= (include & 0x01) << 2; // Flag for included value
|
||||
packedByte |= (value & 0x01) << 1; // One bit for value
|
||||
|
||||
return packedByte;
|
||||
}
|
||||
|
@ -24,28 +24,30 @@ Mcu.Name=STM32F407Z(E-G)Tx
|
||||
Mcu.Package=LQFP144
|
||||
Mcu.Pin0=PH0-OSC_IN
|
||||
Mcu.Pin1=PH1-OSC_OUT
|
||||
Mcu.Pin10=PA14
|
||||
Mcu.Pin11=PA15
|
||||
Mcu.Pin12=PC10
|
||||
Mcu.Pin13=PC11
|
||||
Mcu.Pin14=PC12
|
||||
Mcu.Pin15=PB3
|
||||
Mcu.Pin10=PA13
|
||||
Mcu.Pin11=PA14
|
||||
Mcu.Pin12=PA15
|
||||
Mcu.Pin13=PC10
|
||||
Mcu.Pin14=PC11
|
||||
Mcu.Pin15=PC12
|
||||
Mcu.Pin16=PB3
|
||||
Mcu.Pin2=PA0-WKUP
|
||||
Mcu.Pin3=PA1
|
||||
Mcu.Pin4=PB12
|
||||
Mcu.Pin5=PB13
|
||||
Mcu.Pin6=PD8
|
||||
Mcu.Pin7=PA11
|
||||
Mcu.Pin8=PA12
|
||||
Mcu.Pin9=PA13
|
||||
Mcu.PinsNb=16
|
||||
Mcu.Pin7=PD9
|
||||
Mcu.Pin8=PA11
|
||||
Mcu.Pin9=PA12
|
||||
Mcu.PinsNb=17
|
||||
Mcu.ThirdPartyNb=0
|
||||
Mcu.UserConstants=
|
||||
Mcu.UserName=STM32F407ZGTx
|
||||
MxCube.Version=6.9.2
|
||||
MxDb.Version=DB.6.0.92
|
||||
MxCube.Version=6.10.0
|
||||
MxDb.Version=DB.6.0.100
|
||||
NVIC.BusFault_IRQn=true\:0\:0\:false\:false\:true\:false\:false\:false
|
||||
NVIC.CAN1_RX0_IRQn=true\:0\:0\:false\:false\:true\:true\:true\:true
|
||||
NVIC.CAN1_RX1_IRQn=true\:0\:0\:false\:false\:true\:true\:true\:true
|
||||
NVIC.DebugMonitor_IRQn=true\:0\:0\:false\:false\:true\:false\:false\:false
|
||||
NVIC.ForceEnableDMAVector=true
|
||||
NVIC.HardFault_IRQn=true\:0\:0\:false\:false\:true\:false\:false\:false
|
||||
@ -91,6 +93,8 @@ PC12.Locked=true
|
||||
PC12.Signal=SPI3_MOSI
|
||||
PD8.Locked=true
|
||||
PD8.Signal=GPIO_Output
|
||||
PD9.Locked=true
|
||||
PD9.Signal=GPIO_Output
|
||||
PH0-OSC_IN.Locked=true
|
||||
PH0-OSC_IN.Mode=HSE-External-Oscillator
|
||||
PH0-OSC_IN.Signal=RCC_OSC_IN
|
||||
|
@ -56,6 +56,7 @@ void DebugMon_Handler(void);
|
||||
void PendSV_Handler(void);
|
||||
void SysTick_Handler(void);
|
||||
void CAN1_RX0_IRQHandler(void);
|
||||
void CAN1_RX1_IRQHandler(void);
|
||||
/* USER CODE BEGIN EFP */
|
||||
|
||||
/* USER CODE END EFP */
|
||||
|
@ -23,6 +23,9 @@
|
||||
/* USER CODE BEGIN Includes */
|
||||
//#include <sta/devices/stm32/can.hpp>
|
||||
extern void testCan(CAN_HandleTypeDef * handle);
|
||||
extern void testCanMsg(CAN_HandleTypeDef * handle, uint8_t payload[8]);
|
||||
extern void unpackValues(uint8_t packedByte, uint8_t* type_id, uint8_t* sensor_ID, uint8_t* value, uint8_t* include);
|
||||
extern uint8_t packValues(uint8_t type_id, uint8_t sensor_ID, uint8_t value, uint8_t include);
|
||||
/* USER CODE END Includes */
|
||||
|
||||
/* Private typedef -----------------------------------------------------------*/
|
||||
@ -35,8 +38,10 @@ extern void testCan(CAN_HandleTypeDef * handle);
|
||||
CAN_RxHeaderTypeDef rxHeader; //CAN Bus Transmit Header
|
||||
CAN_TxHeaderTypeDef txHeader; //CAN Bus Receive Header
|
||||
uint8_t canRX[8] = {0,0,0,0,0,0,0,0}; //CAN Bus Receive Buffer
|
||||
CAN_FilterTypeDef canfil; //CAN Bus Filter
|
||||
CAN_FilterTypeDef canfilterconfig;
|
||||
uint32_t canMailbox; //CAN Bus Mail box variable
|
||||
|
||||
uint8_t received = 0;
|
||||
/* USER CODE END PD */
|
||||
|
||||
/* Private macro -------------------------------------------------------------*/
|
||||
@ -99,19 +104,35 @@ int main(void)
|
||||
MX_CAN1_Init();
|
||||
/* USER CODE BEGIN 2 */
|
||||
|
||||
txHeader.DLC = 8;
|
||||
/*txHeader.DLC = 8;
|
||||
txHeader.IDE = CAN_ID_STD;
|
||||
txHeader.RTR = CAN_RTR_DATA;
|
||||
txHeader.StdId = 0x030;
|
||||
txHeader.ExtId = 0x02;
|
||||
txHeader.TransmitGlobalTime = DISABLE;
|
||||
txHeader.TransmitGlobalTime = DISABLE;*/
|
||||
|
||||
HAL_CAN_ConfigFilter(&hcan1,&canfil);
|
||||
canfilterconfig.FilterActivation = CAN_FILTER_ENABLE;
|
||||
canfilterconfig.FilterBank = 18;
|
||||
canfilterconfig.FilterFIFOAssignment = CAN_RX_FIFO0;
|
||||
canfilterconfig.FilterIdHigh = 0;
|
||||
canfilterconfig.FilterIdLow = 0x466<<5;
|
||||
canfilterconfig.FilterMaskIdHigh = 0;
|
||||
canfilterconfig.FilterMaskIdLow = 0x466<<5;
|
||||
canfilterconfig.FilterMode = CAN_FILTERMODE_IDMASK;
|
||||
canfilterconfig.FilterScale = CAN_FILTERSCALE_32BIT;
|
||||
canfilterconfig.SlaveStartFilterBank = 20;
|
||||
|
||||
HAL_CAN_ConfigFilter(&hcan1, &canfilterconfig);
|
||||
HAL_CAN_Start(&hcan1);
|
||||
//HAL_CAN_ActivateNotification(&hcan1,CAN_IT_RX_FIFO0_MSG_PENDING);
|
||||
|
||||
|
||||
if (HAL_CAN_ActivateNotification(&hcan1, CAN_IT_RX_FIFO0_MSG_PENDING) != HAL_OK)
|
||||
{
|
||||
Error_Handler();
|
||||
}
|
||||
//HAL_GPIO_WritePin(GPIOB,GPIO_PIN_12, GPIO_PIN_SET);
|
||||
//testCan(&hcan1);
|
||||
testCan(&hcan1);
|
||||
|
||||
/* USER CODE END 2 */
|
||||
|
||||
@ -124,18 +145,26 @@ int main(void)
|
||||
//HAL_GPIO_WritePin(GPIOB,GPIO_PIN_12, GPIO_PIN_RESET);
|
||||
//HAL_Delay(100);
|
||||
//HAL_GPIO_WritePin(GPIOB,GPIO_PIN_12, GPIO_PIN_SET);#
|
||||
//testCan(&hcan1);
|
||||
|
||||
HAL_CAN_GetRxMessage(&hcan1, CAN_RX_FIFO0, &rxHeader, canRX);
|
||||
/*HAL_CAN_GetRxMessage(&hcan1, CAN_RX_FIFO0, &rxHeader, canRX);
|
||||
if (canRX[0] != 0){
|
||||
HAL_GPIO_TogglePin(GPIOD,GPIO_PIN_8);
|
||||
HAL_Delay(1000);
|
||||
}
|
||||
|
||||
uint8_t csend[] = {0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08};
|
||||
HAL_CAN_AddTxMessage(&hcan1,&txHeader,csend,&canMailbox);
|
||||
//HAL_CAN_AddTxMessage(&hcan1,&txHeader,csend,&canMailbox);*/
|
||||
/*HAL_GPIO_WritePin(GPIOD,GPIO_PIN_8, GPIO_PIN_RESET);
|
||||
HAL_Delay(100);
|
||||
HAL_GPIO_WritePin(GPIOD,GPIO_PIN_8, GPIO_PIN_SET);*/
|
||||
|
||||
//testCanMsg(&hcan1, canRX);
|
||||
|
||||
if (received == 1){
|
||||
testCanMsg(&hcan1, canRX);
|
||||
received = 0;
|
||||
}
|
||||
HAL_Delay(1000);
|
||||
/* USER CODE END WHILE */
|
||||
|
||||
@ -282,7 +311,7 @@ static void MX_GPIO_Init(void)
|
||||
HAL_GPIO_WritePin(GPIOB, GPIO_PIN_12|GPIO_PIN_13, GPIO_PIN_RESET);
|
||||
|
||||
/*Configure GPIO pin Output Level */
|
||||
HAL_GPIO_WritePin(GPIOD, GPIO_PIN_8, GPIO_PIN_RESET);
|
||||
HAL_GPIO_WritePin(GPIOD, GPIO_PIN_8|GPIO_PIN_9, GPIO_PIN_RESET);
|
||||
|
||||
/*Configure GPIO pins : PB12 PB13 */
|
||||
GPIO_InitStruct.Pin = GPIO_PIN_12|GPIO_PIN_13;
|
||||
@ -291,8 +320,8 @@ static void MX_GPIO_Init(void)
|
||||
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
|
||||
HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
|
||||
|
||||
/*Configure GPIO pin : PD8 */
|
||||
GPIO_InitStruct.Pin = GPIO_PIN_8;
|
||||
/*Configure GPIO pins : PD8 PD9 */
|
||||
GPIO_InitStruct.Pin = GPIO_PIN_8|GPIO_PIN_9;
|
||||
GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
|
||||
GPIO_InitStruct.Pull = GPIO_NOPULL;
|
||||
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
|
||||
@ -316,10 +345,22 @@ void HAL_CAN_RxFifo0MsgPendingCallback(CAN_HandleTypeDef *hcan1)
|
||||
{
|
||||
|
||||
HAL_GPIO_TogglePin(GPIOD,GPIO_PIN_8);
|
||||
HAL_Delay(1000);
|
||||
received = 1;
|
||||
|
||||
HAL_CAN_GetRxMessage(hcan1, CAN_RX_FIFO0, &rxHeader, canRX);
|
||||
|
||||
/*uint8_t type_id, sensor_ID, value, include;
|
||||
|
||||
unpackValues(canRX, *type_id, *sensor_ID, *value, *include);
|
||||
|
||||
if (type_id == 0 && sensor_ID == 1){
|
||||
if (value == 0){
|
||||
HAL_GPIO_WritePin(GPIOD,GPIO_PIN_8, GPIO_PIN_RESET);
|
||||
}else{
|
||||
HAL_GPIO_WritePin(GPIOD,GPIO_PIN_8, GPIO_PIN_SET);
|
||||
}
|
||||
}*/
|
||||
|
||||
|
||||
}
|
||||
|
||||
@ -336,6 +377,8 @@ void Error_Handler(void)
|
||||
__disable_irq();
|
||||
while (1)
|
||||
{
|
||||
HAL_GPIO_TogglePin(GPIOD,GPIO_PIN_9);
|
||||
HAL_Delay(1000);
|
||||
}
|
||||
/* USER CODE END Error_Handler_Debug */
|
||||
}
|
||||
|
@ -109,6 +109,8 @@ void HAL_CAN_MspInit(CAN_HandleTypeDef* hcan)
|
||||
/* CAN1 interrupt Init */
|
||||
HAL_NVIC_SetPriority(CAN1_RX0_IRQn, 0, 0);
|
||||
HAL_NVIC_EnableIRQ(CAN1_RX0_IRQn);
|
||||
HAL_NVIC_SetPriority(CAN1_RX1_IRQn, 0, 0);
|
||||
HAL_NVIC_EnableIRQ(CAN1_RX1_IRQn);
|
||||
/* USER CODE BEGIN CAN1_MspInit 1 */
|
||||
|
||||
/* USER CODE END CAN1_MspInit 1 */
|
||||
@ -140,6 +142,7 @@ void HAL_CAN_MspDeInit(CAN_HandleTypeDef* hcan)
|
||||
|
||||
/* CAN1 interrupt DeInit */
|
||||
HAL_NVIC_DisableIRQ(CAN1_RX0_IRQn);
|
||||
HAL_NVIC_DisableIRQ(CAN1_RX1_IRQn);
|
||||
/* USER CODE BEGIN CAN1_MspDeInit 1 */
|
||||
|
||||
/* USER CODE END CAN1_MspDeInit 1 */
|
||||
|
@ -212,6 +212,20 @@ void CAN1_RX0_IRQHandler(void)
|
||||
/* USER CODE END CAN1_RX0_IRQn 1 */
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief This function handles CAN1 RX1 interrupt.
|
||||
*/
|
||||
void CAN1_RX1_IRQHandler(void)
|
||||
{
|
||||
/* USER CODE BEGIN CAN1_RX1_IRQn 0 */
|
||||
|
||||
/* USER CODE END CAN1_RX1_IRQn 0 */
|
||||
HAL_CAN_IRQHandler(&hcan1);
|
||||
/* USER CODE BEGIN CAN1_RX1_IRQn 1 */
|
||||
|
||||
/* USER CODE END CAN1_RX1_IRQn 1 */
|
||||
}
|
||||
|
||||
/* USER CODE BEGIN 1 */
|
||||
|
||||
/* USER CODE END 1 */
|
||||
|
@ -1 +1,4 @@
|
||||
../App/Src/test.cpp:14:18:void testCan(CAN_HandleTypeDef*) 1
|
||||
../App/Src/test.cpp:49:18:void testCanMsg(CAN_HandleTypeDef*, uint8_t*) 1
|
||||
../App/Src/test.cpp:80:7:void unpackValues(uint8_t, uint8_t*, uint8_t*, uint8_t*, uint8_t*) 1
|
||||
../App/Src/test.cpp:87:10:uint8_t packValues(uint8_t, uint8_t, uint8_t, uint8_t) 1
|
||||
|
Binary file not shown.
@ -1 +1,4 @@
|
||||
../App/Src/test.cpp:14:18:void testCan(CAN_HandleTypeDef*) 624 static
|
||||
../App/Src/test.cpp:14:18:void testCan(CAN_HandleTypeDef*) 608 static
|
||||
../App/Src/test.cpp:49:18:void testCanMsg(CAN_HandleTypeDef*, uint8_t*) 616 static
|
||||
../App/Src/test.cpp:80:7:void unpackValues(uint8_t, uint8_t*, uint8_t*, uint8_t*, uint8_t*) 24 static
|
||||
../App/Src/test.cpp:87:10:uint8_t packValues(uint8_t, uint8_t, uint8_t, uint8_t) 24 static
|
||||
|
@ -1,7 +1,7 @@
|
||||
../Core/Src/main.c:74:5:main 2
|
||||
../Core/Src/main.c:152:6:SystemClock_Config 3
|
||||
../Core/Src/main.c:198:13:MX_CAN1_Init 2
|
||||
../Core/Src/main.c:235:13:MX_UART4_Init 2
|
||||
../Core/Src/main.c:268:13:MX_GPIO_Init 1
|
||||
../Core/Src/main.c:315:6:HAL_CAN_RxFifo0MsgPendingCallback 1
|
||||
../Core/Src/main.c:332:6:Error_Handler 1
|
||||
../Core/Src/main.c:79:5:main 3
|
||||
../Core/Src/main.c:181:6:SystemClock_Config 3
|
||||
../Core/Src/main.c:227:13:MX_CAN1_Init 2
|
||||
../Core/Src/main.c:264:13:MX_UART4_Init 2
|
||||
../Core/Src/main.c:297:13:MX_GPIO_Init 1
|
||||
../Core/Src/main.c:344:6:HAL_CAN_RxFifo0MsgPendingCallback 1
|
||||
../Core/Src/main.c:373:6:Error_Handler 1
|
||||
|
Binary file not shown.
@ -1,7 +1,7 @@
|
||||
../Core/Src/main.c:74:5:main 16 static
|
||||
../Core/Src/main.c:152:6:SystemClock_Config 88 static
|
||||
../Core/Src/main.c:198:13:MX_CAN1_Init 8 static
|
||||
../Core/Src/main.c:235:13:MX_UART4_Init 8 static
|
||||
../Core/Src/main.c:268:13:MX_GPIO_Init 48 static
|
||||
../Core/Src/main.c:315:6:HAL_CAN_RxFifo0MsgPendingCallback 16 static
|
||||
../Core/Src/main.c:332:6:Error_Handler 4 static,ignoring_inline_asm
|
||||
../Core/Src/main.c:79:5:main 8 static
|
||||
../Core/Src/main.c:181:6:SystemClock_Config 88 static
|
||||
../Core/Src/main.c:227:13:MX_CAN1_Init 8 static
|
||||
../Core/Src/main.c:264:13:MX_UART4_Init 8 static
|
||||
../Core/Src/main.c:297:13:MX_GPIO_Init 48 static
|
||||
../Core/Src/main.c:344:6:HAL_CAN_RxFifo0MsgPendingCallback 16 static
|
||||
../Core/Src/main.c:373:6:Error_Handler 8 static,ignoring_inline_asm
|
||||
|
@ -1,5 +1,5 @@
|
||||
../Core/Src/stm32f4xx_hal_msp.c:64:6:HAL_MspInit 1
|
||||
../Core/Src/stm32f4xx_hal_msp.c:86:6:HAL_CAN_MspInit 2
|
||||
../Core/Src/stm32f4xx_hal_msp.c:125:6:HAL_CAN_MspDeInit 2
|
||||
../Core/Src/stm32f4xx_hal_msp.c:156:6:HAL_UART_MspInit 2
|
||||
../Core/Src/stm32f4xx_hal_msp.c:192:6:HAL_UART_MspDeInit 2
|
||||
../Core/Src/stm32f4xx_hal_msp.c:127:6:HAL_CAN_MspDeInit 2
|
||||
../Core/Src/stm32f4xx_hal_msp.c:159:6:HAL_UART_MspInit 2
|
||||
../Core/Src/stm32f4xx_hal_msp.c:195:6:HAL_UART_MspDeInit 2
|
||||
|
Binary file not shown.
@ -1,5 +1,5 @@
|
||||
../Core/Src/stm32f4xx_hal_msp.c:64:6:HAL_MspInit 16 static
|
||||
../Core/Src/stm32f4xx_hal_msp.c:86:6:HAL_CAN_MspInit 48 static
|
||||
../Core/Src/stm32f4xx_hal_msp.c:125:6:HAL_CAN_MspDeInit 16 static
|
||||
../Core/Src/stm32f4xx_hal_msp.c:156:6:HAL_UART_MspInit 48 static
|
||||
../Core/Src/stm32f4xx_hal_msp.c:192:6:HAL_UART_MspDeInit 16 static
|
||||
../Core/Src/stm32f4xx_hal_msp.c:127:6:HAL_CAN_MspDeInit 16 static
|
||||
../Core/Src/stm32f4xx_hal_msp.c:159:6:HAL_UART_MspInit 48 static
|
||||
../Core/Src/stm32f4xx_hal_msp.c:195:6:HAL_UART_MspDeInit 16 static
|
||||
|
@ -8,3 +8,4 @@
|
||||
../Core/Src/stm32f4xx_it.c:170:6:PendSV_Handler 1
|
||||
../Core/Src/stm32f4xx_it.c:183:6:SysTick_Handler 1
|
||||
../Core/Src/stm32f4xx_it.c:204:6:CAN1_RX0_IRQHandler 1
|
||||
../Core/Src/stm32f4xx_it.c:218:6:CAN1_RX1_IRQHandler 1
|
||||
|
Binary file not shown.
@ -8,3 +8,4 @@
|
||||
../Core/Src/stm32f4xx_it.c:170:6:PendSV_Handler 4 static
|
||||
../Core/Src/stm32f4xx_it.c:183:6:SysTick_Handler 8 static
|
||||
../Core/Src/stm32f4xx_it.c:204:6:CAN1_RX0_IRQHandler 8 static
|
||||
../Core/Src/stm32f4xx_it.c:218:6:CAN1_RX1_IRQHandler 8 static
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -4,14 +4,14 @@
|
||||
../Libs/sta-core/src/devices/stm32/can.cpp:25:10:void sta::STM32CanController::start() 1
|
||||
../Libs/sta-core/src/devices/stm32/can.cpp:30:10:void sta::STM32CanController::stop() 1
|
||||
../Libs/sta-core/src/devices/stm32/can.cpp:36:10:virtual bool sta::STM32CanController::sendFrame(const sta::CanTxHeader&, const uint8_t*) 3
|
||||
../Libs/sta-core/src/devices/stm32/can.cpp:61:10:virtual bool sta::STM32CanController::receiveFrame(uint8_t, sta::CanRxHeader*, uint8_t*) 3
|
||||
../Libs/sta-core/src/devices/stm32/can.cpp:92:14:virtual uint32_t sta::STM32CanController::getRxFifoFlags() 2
|
||||
../Libs/sta-core/src/devices/stm32/can.cpp:100:10:virtual void sta::STM32CanController::configureFilter(uint8_t, const sta::CanFilter&, bool) 3
|
||||
../Libs/sta-core/src/devices/stm32/can.cpp:125:10:virtual void sta::STM32CanController::enableFilter(uint8_t) 1
|
||||
../Libs/sta-core/src/devices/stm32/can.cpp:134:10:virtual void sta::STM32CanController::disableFilter(uint8_t) 1
|
||||
../Libs/sta-core/src/devices/stm32/can.cpp:143:10:virtual void sta::STM32CanController::clearFilters() 3
|
||||
../Libs/sta-core/src/devices/stm32/can.cpp:159:10:void sta::STM32CanController::initFilters() 2
|
||||
../Libs/sta-core/src/devices/stm32/can.cpp:173:13:virtual uint8_t sta::STM32CanController::maxFilterCount() const 1
|
||||
../Libs/sta-core/src/devices/stm32/can.cpp:176:13:virtual uint8_t sta::STM32CanController::maxFifoCount() const 1
|
||||
../Libs/sta-core/src/devices/stm32/can.cpp:179:13:virtual uint8_t sta::STM32CanController::maxPayloadSize() const 1
|
||||
../Libs/sta-core/src/devices/stm32/can.cpp:184:23:virtual sta::CanPendingRxFifos sta::STM32CanController::getPendingRxFifos() 1
|
||||
../Libs/sta-core/src/devices/stm32/can.cpp:60:10:virtual bool sta::STM32CanController::receiveFrame(uint8_t, sta::CanRxHeader*, uint8_t*) 3
|
||||
../Libs/sta-core/src/devices/stm32/can.cpp:91:14:virtual uint32_t sta::STM32CanController::getRxFifoFlags() 2
|
||||
../Libs/sta-core/src/devices/stm32/can.cpp:99:10:virtual void sta::STM32CanController::configureFilter(uint8_t, const sta::CanFilter&, bool) 3
|
||||
../Libs/sta-core/src/devices/stm32/can.cpp:124:10:virtual void sta::STM32CanController::enableFilter(uint8_t) 1
|
||||
../Libs/sta-core/src/devices/stm32/can.cpp:133:10:virtual void sta::STM32CanController::disableFilter(uint8_t) 1
|
||||
../Libs/sta-core/src/devices/stm32/can.cpp:142:10:virtual void sta::STM32CanController::clearFilters() 3
|
||||
../Libs/sta-core/src/devices/stm32/can.cpp:158:10:void sta::STM32CanController::initFilters() 2
|
||||
../Libs/sta-core/src/devices/stm32/can.cpp:172:23:virtual sta::CanPendingRxFifos sta::STM32CanController::getPendingRxFifos() 1
|
||||
../Libs/sta-core/src/devices/stm32/can.cpp:182:13:virtual uint8_t sta::STM32CanController::maxFilterCount() const 1
|
||||
../Libs/sta-core/src/devices/stm32/can.cpp:186:13:virtual uint8_t sta::STM32CanController::maxFifoCount() const 1
|
||||
../Libs/sta-core/src/devices/stm32/can.cpp:190:13:virtual uint8_t sta::STM32CanController::maxPayloadSize() const 1
|
||||
|
Binary file not shown.
@ -4,14 +4,14 @@
|
||||
../Libs/sta-core/src/devices/stm32/can.cpp:25:10:void sta::STM32CanController::start() 16 static
|
||||
../Libs/sta-core/src/devices/stm32/can.cpp:30:10:void sta::STM32CanController::stop() 16 static
|
||||
../Libs/sta-core/src/devices/stm32/can.cpp:36:10:virtual bool sta::STM32CanController::sendFrame(const sta::CanTxHeader&, const uint8_t*) 56 static
|
||||
../Libs/sta-core/src/devices/stm32/can.cpp:61:10:virtual bool sta::STM32CanController::receiveFrame(uint8_t, sta::CanRxHeader*, uint8_t*) 56 static
|
||||
../Libs/sta-core/src/devices/stm32/can.cpp:92:14:virtual uint32_t sta::STM32CanController::getRxFifoFlags() 24 static
|
||||
../Libs/sta-core/src/devices/stm32/can.cpp:100:10:virtual void sta::STM32CanController::configureFilter(uint8_t, const sta::CanFilter&, bool) 32 static
|
||||
../Libs/sta-core/src/devices/stm32/can.cpp:125:10:virtual void sta::STM32CanController::enableFilter(uint8_t) 24 static
|
||||
../Libs/sta-core/src/devices/stm32/can.cpp:134:10:virtual void sta::STM32CanController::disableFilter(uint8_t) 24 static
|
||||
../Libs/sta-core/src/devices/stm32/can.cpp:143:10:virtual void sta::STM32CanController::clearFilters() 24 static
|
||||
../Libs/sta-core/src/devices/stm32/can.cpp:159:10:void sta::STM32CanController::initFilters() 24 static
|
||||
../Libs/sta-core/src/devices/stm32/can.cpp:173:13:virtual uint8_t sta::STM32CanController::maxFilterCount() const 16 static
|
||||
../Libs/sta-core/src/devices/stm32/can.cpp:176:13:virtual uint8_t sta::STM32CanController::maxFifoCount() const 16 static
|
||||
../Libs/sta-core/src/devices/stm32/can.cpp:179:13:virtual uint8_t sta::STM32CanController::maxPayloadSize() const 16 static
|
||||
../Libs/sta-core/src/devices/stm32/can.cpp:184:23:virtual sta::CanPendingRxFifos sta::STM32CanController::getPendingRxFifos() 16 static
|
||||
../Libs/sta-core/src/devices/stm32/can.cpp:60:10:virtual bool sta::STM32CanController::receiveFrame(uint8_t, sta::CanRxHeader*, uint8_t*) 56 static
|
||||
../Libs/sta-core/src/devices/stm32/can.cpp:91:14:virtual uint32_t sta::STM32CanController::getRxFifoFlags() 24 static
|
||||
../Libs/sta-core/src/devices/stm32/can.cpp:99:10:virtual void sta::STM32CanController::configureFilter(uint8_t, const sta::CanFilter&, bool) 32 static
|
||||
../Libs/sta-core/src/devices/stm32/can.cpp:124:10:virtual void sta::STM32CanController::enableFilter(uint8_t) 24 static
|
||||
../Libs/sta-core/src/devices/stm32/can.cpp:133:10:virtual void sta::STM32CanController::disableFilter(uint8_t) 24 static
|
||||
../Libs/sta-core/src/devices/stm32/can.cpp:142:10:virtual void sta::STM32CanController::clearFilters() 24 static
|
||||
../Libs/sta-core/src/devices/stm32/can.cpp:158:10:void sta::STM32CanController::initFilters() 24 static
|
||||
../Libs/sta-core/src/devices/stm32/can.cpp:172:23:virtual sta::CanPendingRxFifos sta::STM32CanController::getPendingRxFifos() 16 static
|
||||
../Libs/sta-core/src/devices/stm32/can.cpp:182:13:virtual uint8_t sta::STM32CanController::maxFilterCount() const 16 static
|
||||
../Libs/sta-core/src/devices/stm32/can.cpp:186:13:virtual uint8_t sta::STM32CanController::maxFifoCount() const 16 static
|
||||
../Libs/sta-core/src/devices/stm32/can.cpp:190:13:virtual uint8_t sta::STM32CanController::maxPayloadSize() const 16 static
|
||||
|
Binary file not shown.
Binary file not shown.
@ -38,6 +38,9 @@ endif
|
||||
ifneq ($(strip $(C++_DEPS)),)
|
||||
-include $(C++_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(CCM_DEPS)),)
|
||||
-include $(CCM_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(C_UPPER_DEPS)),)
|
||||
-include $(C_UPPER_DEPS)
|
||||
endif
|
||||
@ -50,6 +53,12 @@ endif
|
||||
ifneq ($(strip $(S_UPPER_DEPS)),)
|
||||
-include $(S_UPPER_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(CXXM_DEPS)),)
|
||||
-include $(CXXM_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(C++M_DEPS)),)
|
||||
-include $(C++M_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(C_DEPS)),)
|
||||
-include $(C_DEPS)
|
||||
endif
|
||||
|
@ -3,21 +3,26 @@
|
||||
# Toolchain: GNU Tools for STM32 (11.3.rel1)
|
||||
################################################################################
|
||||
|
||||
C++M_SRCS :=
|
||||
CPP_SRCS :=
|
||||
S_UPPER_SRCS :=
|
||||
O_SRCS :=
|
||||
ELF_SRCS :=
|
||||
C_UPPER_SRCS :=
|
||||
CXX_SRCS :=
|
||||
CCM_SRCS :=
|
||||
C++_SRCS :=
|
||||
OBJ_SRCS :=
|
||||
S_SRCS :=
|
||||
CC_SRCS :=
|
||||
C_SRCS :=
|
||||
CPP_SRCS :=
|
||||
S_UPPER_SRCS :=
|
||||
O_SRCS :=
|
||||
CXXM_SRCS :=
|
||||
CYCLO_FILES :=
|
||||
OBJDUMP_LIST :=
|
||||
CCM_DEPS :=
|
||||
C_UPPER_DEPS :=
|
||||
S_DEPS :=
|
||||
CXXM_DEPS :=
|
||||
C_DEPS :=
|
||||
CC_DEPS :=
|
||||
SIZE_OUTPUT :=
|
||||
@ -28,6 +33,7 @@ OBJS :=
|
||||
CXX_DEPS :=
|
||||
MAP_FILES :=
|
||||
S_UPPER_DEPS :=
|
||||
C++M_DEPS :=
|
||||
CPP_DEPS :=
|
||||
|
||||
# Every subdirectory with source files must be described here
|
||||
|
Loading…
x
Reference in New Issue
Block a user