My_ARM_Starter_Board_F4开发板串口例程

板子开放了2个串口,COM1和COM2。

COM1是使用CH340G芯片,将PA9 PA10的3.3V电平转换为USB接口的电平。

COM2是使用SP3232芯片,将的PA2 PA3的3.3V电平转换为DB9接口的电平。(SP3232相当于一个升压芯片)将单片机的TTL电平转换为计算机的标准232电平。

所以。。。

如果是用DB9线连接单片机与计算机,则使用COM2,SP3232芯片。。。

如果是USB线连接单片机与计算机,则使用COM1,CH340G芯片。。。

 

RS232的LabVIEW程序编译不通过

My_ARM_Starter_Board_F4开发板串口例程

[12:29:58] Status: Error
linking...
.\Obj\LabVIEW.axf: Error: L6406E: No space in execution regions with .ANY selector matching hal_cm4.o(.data).
.\Obj\LabVIEW.axf: Error: L6407E: Sections of aggregate size 0x4 bytes could not fit into .ANY selector(s).
Not enough information to produce a FEEDBACK file.
Not enough information to list image symbols.
Not enough information to list the image map.
Finished: 3 information, 0 warning and 2 error messages.
".\Obj\LabVIEW.axf" - 2 Error(s), 1 Warning(s).
*** Performing Cross-Module-Optimization:
*** Feedback file '.\Obj\LabVIEW.fed' not found.
Target not created
Status: Build failed.

 

需要请教王老师。。。

上网查了下,发现可能跟RAM空间不足有关

跟王老师teamview远程协助之后,成功解决。问题在于我使用的对应于keil5的.s启动文件中配置的堆栈大小不对,改完就好了

My_ARM_Starter_Board_F4开发板串口例程