完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
刚测试了几行代码,只是想看下程序是否运行,但是一直没有成功,求帮组。附件为整个工程包文件。求救
|
|
相关推荐
8 个讨论
|
|
非常感谢您的答复, 但是我用那你的外设CMD文件,编译出错呢。似乎外设分配的地址空间用问题呢 Severity and Description Path Resource Location Creation Time Id errors encountered during linking; "SPY37.out" not built SPY37 line 0 1449476595605 5794 creating output section "AdcResultFile" without a SECTIONS specification SPY37 line 0 1449476595599 5765 run placement fails for object "AdcRegsFile", size 0x50 (page 1). Available ranges: ADC size: 0x20 unused: 0x20 max hole: 0x20 SPY37 line 0 1449476595603 5786 run placement fails for object "EPwm1RegsFile", size 0x40 (page 1). Available ranges: EPWM1 size: 0x22 unused: 0x22 max hole: 0x22 SPY37 line 0 1449476595604 5787 run placement fails for object "EPwm2RegsFile", size 0x40 (page 1). Available ranges: EPWM2 size: 0x22 unused: 0x22 max hole: 0x22 SPY37 line 0 1449476595604 5788 run placement fails for object "EPwm3RegsFile", size 0x40 (page 1). Available ranges: EPWM3 size: 0x22 unused: 0x22 max hole: 0x22 SPY37 line 0 1449476595604 5789 run placement fails for object "EPwm4RegsFile", size 0x40 (page 1). Available ranges: EPWM4 size: 0x22 unused: 0x22 max hole: 0x22 SPY37 line 0 1449476595604 5790 run placement fails for object "EPwm5RegsFile", size 0x40 (page 1). Available ranges: EPWM5 size: 0x22 unused: 0x22 max hole: 0x22 SPY37 line 0 1449476595604 5791 run placement fails for object "EPwm6RegsFile", size 0x40 (page 1). Available ranges: EPWM6 size: 0x22 unused: 0x22 max hole: 0x22 SPY37 line 0 1449476595604 5792 run placement fails for object "SysCtrlRegsFile", size 0x30 (page 1). Available ranges: SYSTEM size: 0x20 unused: 0x20 max hole: 0x20 SPY37 line 0 1449476595605 5793 creating output section "Cla1RegsFile" without a SECTIONS specification SPY37 line 0 1449476595600 5766 creating output section "Comp1RegsFile" without a SECTIONS specification SPY37 line 0 1449476595600 5767 creating output section "Comp2RegsFile" without a SECTIONS specification SPY37 line 0 1449476595600 5768 creating output section "Comp3RegsFile" without a SECTIONS specification SPY37 line 0 1449476595600 5769 creating output section "DmaRegsFile" without a SECTIONS specification SPY37 line 0 1449476595600 5770 creating output section "EmuBModeVar" without a SECTIONS specification SPY37 line 0 1449476595601 5773 creating output section "EmuKeyVar" without a SECTIONS specification SPY37 line 0 1449476595601 5774 creating output section "EPwm7RegsFile" without a SECTIONS specification SPY37 line 0 1449476595601 5771 creating output section "EPwm8RegsFile" without a SECTIONS specification SPY37 line 0 1449476595601 5772 creating output section "FlashCallbackVar" without a SECTIONS specification SPY37 line 0 1449476595601 5775 creating output section "FlashScalingVar" without a SECTIONS specification SPY37 line 0 1449476595602 5776 creating output section "HRCap1RegsFile" without a SECTIONS specification SPY37 line 0 1449476595602 5777 creating output section "HRCap2RegsFile" without a SECTIONS specification SPY37 line 0 1449476595602 5778 creating output section "HRCap3RegsFile" without a SECTIONS specification SPY37 line 0 1449476595602 5779 creating output section "HRCap4RegsFile" without a SECTIONS specification SPY37 line 0 1449476595602 5780 creating output section "McbspaRegsFile" without a SECTIONS specification SPY37 line 0 1449476595603 5781 creating output section "NmiIntruptRegsFile" without a SECTIONS specification SPY37 line 0 1449476595603 5782 creating output section "PartIdRegsFile" without a SECTIONS specification SPY37 line 0 1449476595603 5783 creating output section "SysPwrCtrlRegsFile" without a SECTIONS specification SPY37 line 0 1449476595603 5784 creating output section "U***0RegsFile" without a SECTIONS specification SPY37 line 0 1449476595603 5785 |
|
|
|
|
|
初始化flash之前,要调用Memcopy,把flash相关的代码复制到RAM中运行。 MemCopy(&RamfuncsLoadStart, &RamfuncsLoadEnd, &RamfuncsRunStart); 先熟悉例程C:ticontrolSUITEdevice_supportf280xv170DSP280x_examples_ccsv4flash_f2808 Eric - ERIC |
|
|
|
|
|
试着能输出高低电平测试,但是有个疑问,系统时钟怎么去配置的,看那个初始化系统InitSysCtrl();
void InitSysCtrl(void) [ // Disable the watchdog DisableDog(); // Initialize the PLL control: PLLCR and CLKINDIV // DSP28_PLLCR and DSP28_CLKINDIV are defined in DSP280x_Examples.h InitPll(DSP28_PLLCR,DSP28_CLKINDIV); // Initialize the peripheral clocks InitPeripheralClocks(); ] 这个函数,里面似乎没有看是用CLKIN引脚输入的还是 X1,X2引脚输入的时钟。我按照例子中的_CPU_TIMER去执行,发现定时器没有运行。目前我的板子实际是用X1 X2 20M的晶振。想配置成100M,配置 /*----------------------------------------------------------------------------- Specify the PLL control register (PLLCR) and clock in divide (CLKINDIV) value. if CLKINDIV = 0: SYSCLKOUT = (OSCCLK * PLLCR)/2 if CLKINDIV = 1: SYSCLKOUT = (OSCCLK * PLLCR) -----------------------------------------------------------------------------*/ #define DSP28_CLKINDIV 0 // #define DSP28_PLLCR 10 定时器初始化函数 void InitSystemTimer0() [ unsigned char i; //SystemTimeTick=0; for(i=0;i DelayTimerParam=0xff; ] InitCpuTimer0(); ConfigCpuTimer(&CpuTimer0, 100, 1000);//cpu 100M 100us period CpuTimer0Regs.TCR.all = 0x4001; // Use write-only instruction to set TSS bit = 0 StartCpuTimer0(); IER |= M_INT1; // Enable CPU int1 which is connected to CPU-Timer 0 PieCtrlRegs.PIEIER1.bit.INTx7 = 1; // Enable TINT0 in the PIE: Group 1 interrupt 7 /****************************定时器配置***************************/ ] |
|
|
|
|
|
只有小组成员才能发言,加入小组>>
336 浏览 1 评论
529 浏览 2 评论
NA555DR VCC最低电压需要在5V供电,为什么用3.3V供电搭了个单稳态触发器也使用正常?
774 浏览 3 评论
MSP430F249TPMR出现高温存储后失效了的情况,怎么解决?
651 浏览 1 评论
对于多级放大电路板,在PCB布局中,电源摆放的位置应该注意什么?
1130 浏览 1 评论
AT32F407在USART2 DMA发送数据时,接包接到了要发送的数据,程序还是处于等待传输完成的标识判断中,为什么?
60浏览 29评论
154浏览 23评论
请问下tpa3220实际测试引脚功能和官方资料不符,哪位大佬可以帮忙解答下
252浏览 20评论
请教下关于TAS5825PEVM评估模块原理图中不太明白的地方,寻求答疑
202浏览 14评论
两个TMP117传感器一个可以正常读取温度值,一个读取的值一直是0,为什么?
59浏览 13评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-23 16:32 , Processed in 0.975007 second(s), Total 55, Slave 49 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号