mustang
易百纳技术社区
易百纳技术社区
0 访问量
0 原创专栏
2 资料
0 粉丝
个性签名:此E友还没有留下个性签名哦~
加入易百纳时间:2013-12-06

个人成就

易百纳技术社区 共获得 0 个点赞
易百纳技术社区 共获得 2 个收藏
易百纳技术社区 共获得 38 次评论/回复

个人勋章

暂无勋章
分类专栏

Ta擅长的领域

暂无
  • 有的兄弟能否共享一下,万分感谢!
    2017-06-13
    7 0 3890
  • 交叉编译后生成 insmod 后可以看到下面的信息 # ifconfig eth0      Link encap:Ethernet  HWaddr B6:63:E1:B8:42:D4             inet addr:192.168.1.20  Bcast:192.168.1.255  Mask:255.255.255.0           inet6 addr: fe80::b463:e1ff:feb8:42d4/64 Scope:Link           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1           RX packets:976 errors:0 dropped:0 overruns:0 frame:0           TX packets:228 errors:0 dropped:0 overruns:0 carrier:0           collisions:0 txqueuelen:1000           RX bytes:1058883 (1.0 MiB)  TX bytes:33700 (32.9 KiB)           Interrupt:56 wlan0     Link encap:Ethernet  HWaddr 00:1D:43:F1:09:AE             UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1           RX packets:0 errors:0 dropped:0 overruns:0 frame:0           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0           collisions:0 txqueuelen:1000           RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B) 但是 iwconfig wlan0     no wireless extensions. 求支招,是哪个地方配置不对?kernel ?
    2015-12-31
    7 1 4438
  • 谁能告诉我3520D V200和V300的区别? 还有人拿到V300的资料了?
    2015-12-03
    16 0 16456
  • Error instantiating RTE components Error #541: 'Keil::Device:Startup:1.0.0' component is missing, pack 'Keil.STM32F0xx_DFP.1.0.0' is not installed 刚刚使用 MDK 4.6的版本报上面的错误,发现4.6没有对STM32F030的支持。所以换成 MDK5.0出现如上错误。 解决方法:到Keil的安装目录下,uv4 下有个PackInstaller的东西 。安装相应的包。
    2014-05-06
    1 0 29936
  • STM32F030 是Cotex-M0的内核,芯片出来不久,所以以前版本的keil是不支持的。 有两种解决方法: 第一种,安装最新的MDK,测试了 5.1里面是有STM32F030的支持的。 其中device是通过 Package Installer安装的。这个注意下, 这个是新版本keil的新特性,就是支持在线安装device支持。   第二种,安装 MDK-ARM_AddOn_STM32F030 ,这个在4.73的版本测试可用。能添加进去f030的支持。 方便大家上传上来。
    2014-05-07
    4 1 9259
  • [code]void SPI_GPIO_Config(void) {         GPIO_InitTypeDef  GPIO_InitStruct;         //Enable Clock                   /*!< Configure SD_SPI pins: SCK */   GPIO_InitStruct.GPIO_Pin = SI4464_SCK_PIN;   GPIO_InitStruct.GPIO_Mode = GPIO_Mode_AF;   GPIO_InitStruct.GPIO_Speed = GPIO_Speed_Level_3;   GPIO_InitStruct.GPIO_OType = GPIO_OType_PP;   GPIO_InitStruct.GPIO_PuPd  = GPIO_PuPd_UP;   GPIO_Init(SI4464_SCK_PORT, &GPIO_InitStruct);         /*!< Configure SD_SPI pins: MISO */   GPIO_InitStruct.GPIO_Pin = SI4464_MISO_PIN;   GPIO_Init(SI4464_MISO_PORT, &GPIO_InitStruct);         /*!< Configure SD_SPI pins: MOSI */   GPIO_InitStruct.GPIO_Pin =SI4464_MOSI_PIN;   GPIO_Init(SI4464_MOSI_PORT, &GPIO_InitStruct); /* Connect PXx to SD_SPI_SCK */   GPIO_PinAFConfig(SI4464_SCK_PORT, SI4464_SCK_SOURCE, SI4464_SCK_AF);   /* Connect PXx to SD_SPI_MISO */   GPIO_PinAFConfig(SI4464_MISO_PORT, SI4464_MISO_SOURCE, SI4464_MISO_AF);   /* Connect PXx to SD_SPI_MOSI */   GPIO_PinAFConfig(SI4464_MOSI_PORT, SI4464_MOSI_SOURCE, SI4464_MOSI_AF);         /*!< Configure SD_SPI_CS_PIN pin: SD Card CS pin */ //   GPIO_InitStruct.GPIO_Pin =SI4464_CS_PIN;   GPIO_InitStruct.GPIO_Mode = GPIO_Mode_OUT;   GPIO_InitStruct.GPIO_OType = GPIO_OType_PP;   GPIO_InitStruct.GPIO_PuPd = GPIO_PuPd_UP;   GPIO_InitStruct.GPIO_Speed = GPIO_Speed_Level_3;   GPIO_Init(SI4464_CS_PORT, &GPIO_InitStruct); }[/code] 上面是SPI 的配置 这是SPI的初始化。 void SPI_init() {   SPI_InitTypeDef   SPI_InitStruct;   RCC_AHBPeriphClockCmd(RCC_AHBPeriph_GPIOA| RCC_AHBPeriph_GPIOB, ENABLE);   RCC_APB1PeriphClockCmd(RCC_APB2Periph_SPI1, ENABLE);   SPI_Cmd(SPI1, DISABLE);   /*!< SD_SPI Config */   SPI_InitStruct.SPI_Direction = SPI_Direction_2Lines_FullDuplex;   SPI_InitStruct.SPI_Mode = SPI_Mode_Master;   SPI_InitStruct.SPI_DataSize = SPI_DataSize_8b;   SPI_InitStruct.SPI_CPOL = SPI_CPOL_Low;   SPI_InitStruct.SPI_CPHA = SPI_CPHA_1Edge;   SPI_InitStruct.SPI_NSS = SPI_NSS_Soft;   SPI_InitStruct.SPI_BaudRatePrescaler = SPI_BaudRatePrescaler_16;   SPI_InitStruct.SPI_FirstBit = SPI_FirstBit_MSB;   SPI_InitStruct.SPI_CRCPolynomial = 7;   SPI_Init(SPI1, &SPI_InitStruct); // SPI_RxFIFOThresholdConfig(SPI2, SPI_RxFIFOThreshold_QF);   SPI_Cmd(SPI1, ENABLE); /*!< SD_SPI enable */ } 上面配置有什么问题么? 下面这个函数就出问题了,一致判断  if ((SPIx->SR & SPI_I2S_FLAG) != (uint16_t)RESET)  无法得到set的值。 [code]FlagStatus SPI_I2S_GetFlagStatus(SPI_TypeDef* SPIx, uint16_t SPI_I2S_FLAG) {   FlagStatus bitstatus = RESET;   /* Check the parameters */   assert_param(IS_SPI_ALL_PERIPH(SPIx));   assert_param(IS_SPI_I2S_GET_FLAG(SPI_I2S_FLAG));   /* Check the status of the specified SPI flag */   if ((SPIx->SR & SPI_I2S_FLAG) != (uint16_t)RESET)   {     /* SPI_I2S_FLAG is set */     bitstatus = SET;   }   else   {     /* SPI_I2S_FLAG is reset */     bitstatus = RESET;   }   /* Return the SPI_I2S_FLAG status */   return  bitstatus; }[/code] 继续debug.
    2014-05-07
    1 0 5794
  • 建了个工程,编译发现,st的库文件定义的找不到,可是这个明明添加了。 求助 Build target 'Target 1' compiling system_stm32f0xx.c... compiling main.c... user\main.c(26): warning:  #223-D: function "GPIO_SetBits" declared implicitly user\main.c(26): error:  #20: identifier "GPIO_Pin_11" is undefined user\main.c(33): error:  #20: identifier "GPIO_Pin_4" is undefined user\main.c(35): warning:  #223-D: function "GPIO_ResetBits" declared implicitly compiling uart.c... drive\uart.c(20): error:  #20: identifier "GPIO_InitTypeDef" is undefined drive\uart.c(21): error:  #20: identifier "USART_InitTypeDef" is undefined drive\uart.c(23): warning:  #223-D: function "RCC_AHBPeriphClockCmd" declared implicitly drive\uart.c(23): error:  #20: identifier "RCC_AHBPeriph_GPIOA" is undefined drive\uart.c(24): warning:  #223-D: function "RCC_APB2PeriphClockCmd" declared implicitly drive\uart.c(24): error:  #20: identifier "RCC_APB2Periph_USART1" is undefined drive\uart.c(26): warning:  #223-D: function "GPIO_PinAFConfig" declared implicitly drive\uart.c(26): error:  #20: identifier "GPIO_PinSource9" is undefined drive\uart.c(26): error:  #20: identifier "GPIO_AF_1" is undefined drive\uart.c(27): error:  #20: identifier "GPIO_PinSource10" is undefined drive\uart.c(31): error:  #20: identifier "GPIO_Pin_9" is undefined drive\uart.c(31): error:  #20: identifier "GPIO_Pin_10" is undefined drive\uart.c(32): error:  #20: identifier "GPIO_Mode_AF" is undefined drive\uart.c(33): error:  #20: identifier "GPIO_OType_PP" is undefined drive\uart.c(34): error:  #20: identifier "GPIO_PuPd_UP" is undefined drive\uart.c(35): error:  #20: identifier "GPIO_Speed_50MHz" is undefined drive\uart.c(36): warning:  #223-D: function "GPIO_Init" declared implicitly drive\uart.c(39): error:  #20: identifier "USART_WordLength_8b" is undefined drive\uart.c(40): error:  #20: identifier "USART_StopBits_1" is undefined drive\uart.c(41): error:  #20: identifier "USART_Parity_No" is undefined drive\uart.c(42): error:  #20: identifier "USART_HardwareFlowControl_None" is undefined drive\uart.c(43): error:  #20: identifier "USART_Mode_Rx" is undefined drive\uart.c(43): error:  #20: identifier "USART_Mode_Tx" is undefined drive\uart.c(44): warning:  #223-D: function "USART_Init" declared implicitly drive\uart.c(46): warning:  #223-D: function "USART_Cmd" declared implicitly drive\uart.c(82): warning:  #223-D: function "USART_SendData" declared implicitly drive\uart.c(83): warning:  #223-D: function "USART_GetFlagStatus" declared implicitly drive\uart.c(83): error:  #20: identifier "USART_FLAG_TXE" is undefined drive\uart.c(91): error:  #20: identifier "GPIO_InitTypeDef" is undefined drive\uart.c(92): warning:  #223-D: function "RCC_AHBPeriphClockCmd" declared implicitly drive\uart.c(92): error:  #20: identifier "RCC_AHBPeriph_GPIOB" is undefined drive\uart.c(93): error:  #20: identifier "GPIO_Pin_4" is undefined drive\uart.c(93): error:  #20: identifier "GPIO_Pin_5" is undefined drive\uart.c(93): error:  #20: identifier "GPIO_Pin_6" is undefined drive\uart.c(94): error:  #20: identifier "GPIO_Mode_OUT" is undefined drive\uart.c(95): error:  #20: identifier "GPIO_OType_PP" is undefined drive\uart.c(96): error:  #20: identifier "GPIO_Speed_Level_3" is undefined drive\uart.c(97): warning:  #223-D: function "GPIO_Init" declared implicitly drive\uart.c(98): warning:  #223-D: function "GPIO_SetBits" declared implicitly drive\uart.c(103): error:  #20: identifier "RCC_AHBPeriph_GPIOA" is undefined drive\uart.c(104): error:  #20: identifier "GPIO_Pin_11" is undefined compiling stm32f0xx_usart.c... lib\src\stm32f0xx_usart.c(81): error:  #5: cannot open source input file "stm32f0xx_usart.h": No such file or directory compiling stm32f0xx_rcc.c... lib\src\stm32f0xx_rcc.c(58): error:  #5: cannot open source input file "stm32f0xx_rcc.h": No such file or directory compiling stm32f0xx_gpio.c... lib\src\stm32f0xx_gpio.c(76): error:  #5: cannot open source input file "stm32f0xx_gpio.h": No such file or directory Target not created
    2014-05-06
    2 0 9668
易百纳技术社区
共7条
易百纳技术社区