Tag Archives: bug

an inconceivable bug of STM32CubeMX….

The default value of Heap and Stack in STM32CubeMX is 0x200 bytes Heap and 0x400 bytes Stack. Which is work fine in most situation. BUT the middleware of USBStack use malloc! for TX and RX buffer!!! That will make the … Continue reading

Posted in Memo | Tagged , , , , | Comments Off on an inconceivable bug of STM32CubeMX….

Bug in Python3.6 standard library when compile using MinGW

Python36 is compiled by Visual Studio 2015 or MSBuild tools 2015, which included Compiler v19.00 (MSC_VER 1600). But “C:\Python36\Lib\distutils\cygwinccompiler.py” can’t handle it… I modify it simply like this:

Posted in Memo | Tagged , , , , , , , | Comments Off on Bug in Python3.6 standard library when compile using MinGW

Bug in data2mem…

I using data2mem to replace data in BlockRAM, It confused me when I try to replace BlockRAM data in Spartan6 Devices. There are correct in BRAM16 with 8bits and 16bits, only error BRAM18 with 18bits. Update: bug exist in ISE … Continue reading

Posted in Memo | Tagged , , , , | Comments Off on Bug in data2mem…

发现STM32的SPI2有问题(invalid)

最近需要用到SPI1和SPI2协同工作,想弄个2位的SPI通信: 硬件的接线如下: SPI1.SCK -> DEV.SCK SPI1.SCK -> SPI2.SCK SPI1.MOSI -> DEV.MOSI[0] SPI1.MISO < - DEV.MISO[0] SPI2.MISO -> DEV.MOSI[1] SPI2.MOSI < - DEV.MISO[1] 将SPI1设置为Master方式,将SPI2设置为Slave。 设置为CPOL=0,CPHA=0(就是不传输的时候时钟是低电平,上升沿采样,下降沿更新数据)。 具体的配置就不贴了,在stm32fwlib的例子里面有。 注意:官方和网上能用的配置都是SPI1是Slave、SPI2为Master!接下来会说。

Posted in Memo | Tagged , , , , , , | 1 Comment