The MCR20A Wireless UART application functions as an wireless UART bridge between two (one-to-one) or several (one to many) boards. The application can be used with both a TERM, or with software that is capable of opening a serial port and writing to or reading from it. The characters sent or received are not necessarily ASCII printable characters.

Dependencies:   fsl_phy_mcr20a fsl_smac mbed-rtos mbed

Fork of mcr20_wireless_uart by Freescale

By default, the application uses broadcast addresses for OTA communication. This way, the application can be directly downloaded and run without any user intervention. The following use case assumes no changes have been done to the project.

  • Two (or more) MCR20A platforms (plugged into the FRDM-K64F Freescale Freedom Development platform) have to be connected to the PC using the mini/micro-USB cables.
  • The code must be downloaded on the platforms via CMSIS-DAP (or other means).
  • After that, two or more TERM applications must be opened, and the serial ports must be configured with the same baud rate as the one in the project (default baud rate is 115200). Other necessary serial configurations are 8 bit, no parity, and 1 stop bit.
  • To start the setup, each platform must be reset, and one of the (user) push buttons found on the MCR20A platform must be pressed. The user can press any of the non-reset buttons on the FRDM-K64F Freescale Freedom Development platform as well. *This initiates the state machine of the application so user can start.

Documentation

SMAC Demo Applications User Guide

Committer:
sam_grove
Date:
Tue Apr 28 16:37:24 2015 -0500
Revision:
25:f40bc034cd8b
Add mem pool management. Dont use malloc with ARM std lib in IRQ context.
Tx running stable. Rx crashing instantly. Not allocating queue before
being needed.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
sam_grove 25:f40bc034cd8b 1
sam_grove 25:f40bc034cd8b 2 #ifndef MEM_H
sam_grove 25:f40bc034cd8b 3 #define MEM_H
sam_grove 25:f40bc034cd8b 4
sam_grove 25:f40bc034cd8b 5 #ifdef __cplusplus
sam_grove 25:f40bc034cd8b 6 extern "C" {
sam_grove 25:f40bc034cd8b 7 #endif
sam_grove 25:f40bc034cd8b 8
sam_grove 25:f40bc034cd8b 9
sam_grove 25:f40bc034cd8b 10 extern char extmem[0x1000];
sam_grove 25:f40bc034cd8b 11
sam_grove 25:f40bc034cd8b 12 void * myalloc(int elem_size);
sam_grove 25:f40bc034cd8b 13 void myfree(void *p);
sam_grove 25:f40bc034cd8b 14 void InitMem(char *ptr, int size_in_bytes);
sam_grove 25:f40bc034cd8b 15
sam_grove 25:f40bc034cd8b 16 #ifdef __cplusplus
sam_grove 25:f40bc034cd8b 17 }
sam_grove 25:f40bc034cd8b 18 #endif
sam_grove 25:f40bc034cd8b 19
sam_grove 25:f40bc034cd8b 20 #endif