[讨论] 请问28335进行浮点运算怎么配置呢

无知的萝卜   2015-9-18 17:46 楼主
我是新手,看了下controlSUITE里的example 中的 fpu_hardware 看了下前面的注释
  1. //###########################################################################
  2. // Description:
  3. //! \addtogroup f2833x_example_list
  4. //! <h1>Floating Point Unit (fpu_hardware)</h1>
  5. //!
  6. //! The code calculates two y=mx+b equations. The variables are all
  7. //! 32-bit floating-point.
  8. //!
  9. //! The compiler will generate floating point instructions to do these calculations.
  10. //! To compile the project for floating point, the following Build Options were used:
  11. //! -# Project->Properties-> C/C++ Build window-> Basic Settings->
  12. //! C2000 Compiler Vx.x \n
  13. //! In All Options textbox: add "--float_support=fpu32" . \n
  14. //! OR in Runtime Model Options, under "Specify floating point support
  15. //! (--float_support) pull-down menu: Select "fpu32".
  16. //! -# Project->Properties-> C/C++ Build window-> Basic Settings->
  17. //! C2000 Linker Vx.x-> File Search Path \n
  18. //! In "Include linker file or command file as input (--library, -l)"
  19. //! box, click green plus sign and add rts2800_fpu32.lib
  20. //! (run-time support library).
  21. //! -# Not included in this example: If the project includes any other libraries,
  22. //! they must also be compiled with floating point instructions.
  23. //!
  24. //! \b Watch \b Variables \n
  25. //! - y1
  26. //! - y2
  27. //! - FPU registers (optional)
貌似需要配置CCS,但是我按照这个顺序来Project->Properties-> C/C++ Build window-> Basic Settings-> 发现根本木有C/C++ Build window- 捕获.PNG //! OR in Runtime Model Options, under "Specify floating point support //! (--float_support) pull-down menu: Select "fpu32". 也没找到Specify floating point support 和有选择fpu32的下拉菜单 捕获.PNG 请问要用到浮点运算应该怎么做呢? 本帖最后由 无知的萝卜 于 2015-9-18 17:47 编辑

回复评论 (3)

这个不算吗?

a1.jpg
点赞  2015-9-18 21:35
要设置几个协处理器,

看看手册,有什么就设置什么(335有浮点处理器就设置它,没有CLA就不设置它)

a5.jpg
点赞  2015-9-18 21:44
引用: dontium 发表于 2015-9-18 21:44
要设置几个协处理器,

看看手册,有什么就设置什么(335有浮点处理器就设置它,没有CLA就不设置它)

...

原来如此~ 谢谢啦
点赞  2015-9-18 22:04
电子工程世界版权所有 京B2-20211791 京ICP备10001474号-1 京公网安备 11010802033920号
    写回复