README_en.txt 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. wolfSSL/AlphaProject Boad demo setup Guide
  2. This demo is tested with the following condition.
  3. Renesas : CS+ v6.01, v8.01
  4. Board : AP-RX71M-0A
  5. wolfSSL : 3.15.3, 4.0.0
  6. Setup process:
  7. 1. Download software
  8. - Unzip AlphaProject firmware
  9. - Unzip wolfssl under the same directory
  10. 2. Set up wolfSSL
  11. - open wolfssl\IDE\Renesas\cs+\Projects\wolfssl\lib.mtpj with CS+ and build
  12. - open t4_demo.mtpj and build. This create demo program library.
  13. 3. Set up AlphaProject
  14. !!** When you use version 2.0 of a sample program, **!!
  15. !!** please replace _ether_ to _usbfunc_ **!!
  16. - The demo uses ap_rx71m_0a_sample_cs\Sample\ap_rx71m_0a_ether_sample_cs\
  17. ap_rx71m_0a_ether_sample_cs.mtpj
  18. - Open and edit ap_rx71m_0a_sample_cs\Sample\ap_rx71m_0a_ether_sample_cs\src\AP_RX71M_0A.c
  19. insert wolfSSL_init() in echo_srv_init().
  20. ===
  21. sci_init();
  22. can_init();
  23. echo_srv_init();
  24. wolfSSL_init(); <- insert this line
  25. ===
  26. !!** when you use version 2.0 **!!
  27. ===
  28. CanInit();
  29. SciInit();
  30. EthernetAppInit();
  31. UsbfInit();
  32. wolfSSL_init(); <- insert this line
  33. ===
  34. !!******************************!!
  35. - Modify stack and heap size in ap_rx71m_0a_sample_cs\Sample\ap_rx71m_0a_ether_sample_cs\src\r_config
  36. Line 120#pragma stacksize su=0x2000
  37. Line 139 #define BSP_CFG_HEAP_BYTES (0xa000)
  38. !!** when you use version 2.0 **!!
  39. - Modify stack and heap size in ap_rx71m_0a_sample_cs\Sample\ap_rx71m_0a_usbfunc_sample_cs\src\smc_gen\r_bsp_config.h
  40. Line 154#pragma stacksize su=0x2000
  41. Line 175#define BSP_CFG_HEAP_BYTES (0xa000)
  42. !!******************************!!
  43. - Modify IP address Sample\ap_rx71m_0a_ether_sample_cs\src\r_t4_rx\src\config_tcpudp.c
  44. as needed
  45. !!** when you use version 2.0 **!!
  46. - Modify IP address Sample\ap_rx71m_0a_usbfunc_sample_cs\src\tcp_sample\src\config_tcpudp.c
  47. as needed
  48. !!******************************!!
  49. ===
  50. #define MY_IP_ADDR0 192,168,1,200 /* Local IP address */
  51. #define GATEWAY_ADDR0 192,168,1,254 /* Gateway address (invalid if all 0s) */
  52. #define SUBNET_MASK0 255,255,255,0
  53. ===
  54. - Add project properties of linking library in ap_rx71m_0a_ether_sample_cs.mtpj
  55. wolfssl\IDE\Renesas\cs+\Projects\wolfssl_lib\DefaultBuild\wolfssl_lib.lib
  56. wolfssl\IDE\Renesas\cs+\Projects\t4_demo\DefaultBuild\t4_demo.lib
  57. - Set CC-RX(Build Tool)->Library Geberation->Library Configuration to"C99" and enable ctype.h.
  58. - Build the project and start execute. You see message on the console prompting command.
  59. ===
  60. wolfSSL Demo
  61. t: test, b: benchmark, s: server, or c <IP addr> <Port>: client
  62. $
  63. ===
  64. Command can be executed only once. You need to reset and restart MPU for following command.
  65. Command instruction:
  66. t: Crypt algorithm test
  67. b: benchmark
  68. s: simple server acceptint at port 50000
  69. c: simple client. Specify IP address and port as following.
  70. c <IP Addr> <Port Num>
  71. 4. Testing TLS Connection
  72. You can use wolfssl/examples/server and client on your PC for TLS peer test.
  73. PC side
  74. $ ./examples/server/server -b -d
  75. Board side
  76. > c <IP Addr> 11111
  77. Board side
  78. > s
  79. PC side
  80. $ ./examples/client/client -h <IP Addr> -p 50000
  81. ---
  82. If you have any question, please contact support@wolfssl.com.
  83. wolfSSL Inc.