I just trying to create a new RTCS project inin CW10.1 & MQX3.7 for TWRK60N512 and I'm getting some errors and warnings when compiling.
CW10.1 has all the current updates installed.
Here are the steps I'm following to create the new project:
- New MQX 3.7 Project:
- TWRK60N512 Board
- Add RTCS Support
- Basic Application
- RTCS Options - Static IP
- Connection: P&E Open Source JTAG
When compiling for RAM - I getting the errors&warings from the attached figure, if I compile for FLASH (Debug or Release) I'm getting only the warnings but the project is not working as it should be.
Any idea what is going wrong? Any help is appreciated.
adis
PS When I did same thing with CW10.0 and MQX3.6.2 for a CF tower board everything worked fine
Solved! Go to Solution.
Adis,
there is not enough RAM to run RTCS application on K60. You have to use FLASH target, it works OK.
I have tested it with console remapped to TWR-SER board (Default is K60 USB-SER)
// change in user_config.h and recompile the BSP
#define BSPCFG_ENABLE_TTYD 1
#define BSP_DEFAULT_IO_CHANNEL "ttyd:" /* TWR-SER polled mode */
#define BSP_DEFAULT_IO_CHANNEL_DEFINED
If you connect serial terminal to UART you should see
Waiting for ethernet cable plug in ... Cable connected
IP Address : 192.168.1.200
Subnet Address : 255.255.255.0
Gateway Address : 0.0.0.0
DNS Address : 0.0.0.0
Ping from PC connected on the same network
Ethernet adapter Local Area Connection 4:
Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : 192.168.1.100
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . :
D:\Profiles\r51423>ping 192.168.1.200
Pinging 192.168.1.200 with 32 bytes of data:
Reply from 192.168.1.200: bytes=32 time=46ms TTL=64
Reply from 192.168.1.200: bytes=32 time=1ms TTL=64
Reply from 192.168.1.200: bytes=32 time=2ms TTL=64
Reply from 192.168.1.200: bytes=32 time<1ms TTL=64
Everything works OK. Can you please describe your issue in more details?
There is one error I have found in MQX Project Wizard.
When you create new project which uses USB HOST library, wizard does not copy usb_classes.h into project directory.
The following workaround can be used.
Copy "usb_classes.h" file from
"{MQX 3.7 Install Directory}\tools\codewarrior_extensions\CW MCU v10.1\mqx_p2_repository\wizard_files\mqx\3.7\src\usb_classes.h"
to
"{New Project Directory}\Sources\usb_classes.h"
and rebuild project.
Adis,
there is not enough RAM to run RTCS application on K60. You have to use FLASH target, it works OK.
I have tested it with console remapped to TWR-SER board (Default is K60 USB-SER)
// change in user_config.h and recompile the BSP
#define BSPCFG_ENABLE_TTYD 1
#define BSP_DEFAULT_IO_CHANNEL "ttyd:" /* TWR-SER polled mode */
#define BSP_DEFAULT_IO_CHANNEL_DEFINED
If you connect serial terminal to UART you should see
Waiting for ethernet cable plug in ... Cable connected
IP Address : 192.168.1.200
Subnet Address : 255.255.255.0
Gateway Address : 0.0.0.0
DNS Address : 0.0.0.0
Ping from PC connected on the same network
Ethernet adapter Local Area Connection 4:
Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : 192.168.1.100
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . :
D:\Profiles\r51423>ping 192.168.1.200
Pinging 192.168.1.200 with 32 bytes of data:
Reply from 192.168.1.200: bytes=32 time=46ms TTL=64
Reply from 192.168.1.200: bytes=32 time=1ms TTL=64
Reply from 192.168.1.200: bytes=32 time=2ms TTL=64
Reply from 192.168.1.200: bytes=32 time<1ms TTL=64
Everything works OK. Can you please describe your issue in more details?
There is one error I have found in MQX Project Wizard.
When you create new project which uses USB HOST library, wizard does not copy usb_classes.h into project directory.
The following workaround can be used.
Copy "usb_classes.h" file from
"{MQX 3.7 Install Directory}\tools\codewarrior_extensions\CW MCU v10.1\mqx_p2_repository\wizard_files\mqx\3.7\src\usb_classes.h"
to
"{New Project Directory}\Sources\usb_classes.h"
and rebuild project.
+1
I have exactly the same error. I am using the K40X256 KwikStik board, and am just using the "Basic" project with no code changes at all. I am interested in solution.