This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TM4C123GH6PM

Other Parts Discussed in Thread: TM4C123GH6PM

直流电机调速控制 ccsv5.4 程序编译中出现如下错误

#16001 object files have incompatible byte orderings ("C:\ti\TivaWare_C_Series-2.1.0.12573\examples\driverlib\ccs\Debug\driverlib.lib<sysctl.obj>" = little endian, "./main.obj" = big endian)

请问该如何解决???

程序如下

#ifndef TARGET_IS_BLIZZARD_RB1
#define TARGET_IS_BLIZZARD_RB1
#endif

#ifndef PART_TM4C123GH6PM
#define PART_TM4C123GH6PM
#endif

/*****************************************************
* PWM_Tiva 生成4个PWM信号,
* 4个PWM 每路信号相位正好有90°的偏移。
* 四路PWM信号的占空比稳定在25%
* ***************************************************/

#include <stdbool.h>
#include <stdint.h>
#include "rom.h"
#include "rom.h"
#include"hw_ints.h"
#include "interrupt.h"
#include "hw_memmap.h"
#include "hw_gpio.h"
#include "LCDDriver.h"
#include "MenuFrame.h"
#include "math.h"


/************************************************************
* @brief 对LCD初始化
* @param none
* @param none
***********************************************************/
Init_LCD_Show()
{
// 使能LCD
LCD_Enable();

// 初始化LCD
LCD_Init();

// 初始化LCD屏做清屏工作
LCD_ScreenClr();

}


/***********************************************************
* @brief 主函数
*
* **********************************************************/
uint32_t index_Statistics = 0; // 频率统计

int main(void) {

SysCtlClockSet(SYSCTL_SYSDIV_2_5 | SYSCTL_USE_PLL | SYSCTL_OSC_MAIN
| SYSCTL_XTAL_16MHZ);

Init_ADC(ADC_BASE, SYSCTL_PERIPH_GPIOE,
GPIO_PORTE_BASE, GPIO_PIN_0,
SequenceNum_ADC_WHEEL, ADC_CTL_CH3);

Init_LCD_Show();

//初始化按钮
Init_Int_Key();

Init_Main();

// Init_Res_I2C();
while (1)
{
Handler_ADCWheel();

Handler_Test();

Refresh_LCDView();
}
}