The functions smsc9220_receive_by_chunks and smsc9220_send_by_chunks are supposed to implement receiving and sending packets by chunks. However, the functions SMSC9220_EMAC::low_level_input and SMSC9220_EMAC::link_out, which call them respectively, already require or assemble the full packet. Also, smsc9220_receive_by_chunks doesn't implement the "chunks" part. This commit renames the functions to smsc9220_receive_packet and smsc9220_send_packet. The functions now do their operations by word instead of by bytes. The functions SMSC9220_EMAC::low_level_input and SMSC9220_EMAC::link_out already handle allocation, continuity and word alignment of the packet buffer. |
||
|---|---|---|
| .. | ||
| device | ||
| CMakeLists.txt | ||
| PeripheralNames.h | ||
| PinNames.h | ||
| PortNames.h | ||
| README.md | ||
| analogin_api.c | ||
| cmsdk_ticker.c | ||
| cmsdk_ticker.h | ||
| device.h | ||
| flash_api.c | ||
| gpio_api.c | ||
| gpio_irq_api.c | ||
| gpio_objects.h | ||
| i2c_api.c | ||
| lp_ticker.c | ||
| mbed_overrides.c | ||
| objects.h | ||
| pinmap.c | ||
| port_api.c | ||
| rtc_api.c | ||
| serial_api.c | ||
| sleep_api.c | ||
| spi_api.c | ||
| trng_api.c | ||
| us_ticker.c | ||
README.md
Cortex-M3 Design Start Eval package example on MPS2+ board
This folder includes the port of Mbed OS on the example system of the Cortex-M3 Design Start Eval package. This example is implemented in FPGA on the MPS2+ board. Please see this target's Mbed page for more information. For convenience, this target is called CM3DS.
Compiling
The target name is ARM_CM3DS_MPS2. You can compile Mbed OS
projects for CM3DS with:
mbed compile -t COMPILER -m ARM_CM3DS_MPS2
Mbed OS supports the following compilers (replace COMPILER with):
ARMfor Arm Compiler version 5.GCC_ARMfor GNU Compiler for Arm.IARfor IAR compiler.
Running
Because of the new memory configuration introduced in commit CM3DS: switch to larger memories for code and data, it
has become easier (and portable among all compilers) to use .elf files
instead of .bin. .elf files are now the default for CM3DS projects, and compilation
generates only them.
For .elf files to work, you need at least version 2.2.5 of the MPS2+
firmware. For more information, please see the firmware version 2.2.6 and instructions on how to put it
in the MPS2+ board.
Testing
If you want to execute the Mbed OS greentea tests on CM3DS, you need at least firmware version 2.2.6.
mbedlsdoes not automatically recognize which serial port is linked to the board. Check it manually, and create a file namedmbedls.jsoncontaining (at the same level than where you execute all commands):
{
"50040200074D652F3828F333": {
"serial_port": "/dev/ttyUSB0"
}
}
Replace /dev/ttyUSB0 with your correct serial port
(something like COM6 on Windows).
mbedlsdoes not link CM3DS target ID with its name, so execute the command:
mbedls --mock 5004:ARM_CM3DS_MPS2
- You can now compile and run the tests:
mbed test -m ARM_CM3DS_MPS2 -t COMPILER