Yuguo Zou
b1ca77b6b8
A better approach to flip "netif_inited"
2017-06-13 18:04:00 +08:00
Azim Khan
0b929199e4
Remove multiple definition of GREENTEA_SETUP added due to rebase
2017-06-13 10:02:55 +01:00
Martin Kojtal
35999be018
Merge pull request #4536 from c1728p9/fix_st_socket_problem
...
STM32 - fix bug where sockets stop receiving data
2017-06-13 09:09:35 +01:00
Russ Butler
9620b0fc7f
STM32 - fix bug were sockets stop receiving data
...
The function _eth_arch_low_level_input() is meant to pass data into
LWIP and to prepare the ethernet buffers to receive more data.
If the LWIP heap is empty and the call to pbuf_alloc() in
_eth_arch_low_level_input returns null, the ethernet receive buffers
are not updated to receive data. Because of this the ethernet RX
interrupt will not fire. Since the RX interrupt is the only thing that
triggers a call to _eth_arch_low_level_input(), the receive buffers
will never get cleared, and the device stops receiving data.
To prevent this from happening, this patch ensures that the function
_eth_arch_low_level_input() clears the receive buffers even if a new
pbuf for the data couldn't be allocated.
This issue can be reproduce by running the test
"features-feature_lwip-tests-mbedmicro-net-udp_echo_parallel"
and on the same machine running the below python script to flood the
device with UDP broadcast packets:
MY_IP = #ADD your local IP here
from socket import *
s = socket(AF_INET, SOCK_DGRAM)
s.bind((MY_IP, 1234))
s.setsockopt(SOL_SOCKET, SO_REUSEADDR, 1)
s.setsockopt(SOL_SOCKET, SO_BROADCAST, 1)
for _ in range(1000):
s.sendto("test data", ('255.255.255.255', 1234))
print("Message sent")
2017-06-12 22:18:04 -05:00
Brian Daniels
fd4cd43043
Enable verbose builds when running example build tests
2017-06-12 11:25:01 -05:00
Jimmy Brisson
946d160c0f
Check for IAR libraries as well
2017-06-12 11:10:23 -05:00
bcostm
8ede14dac1
DISCO_L475VG_IOT01A: Add include of LL timer file
2017-06-12 17:12:57 +02:00
bcostm
66cbc8b452
DISCO_L475VG_IOT01A: Update device files after CubeL4 update
2017-06-12 17:03:12 +02:00
bcostm
af2078f38d
DISCO_L475VG_IOT01A: Update cmsis_nvic files
2017-06-12 17:03:12 +02:00
bcostm
f6a48838ad
DISCO_L475VG_IOT01A: Move USB device config files
2017-06-12 17:03:12 +02:00
bcostm
3519d535a0
DISCO_L475VG_IOT01A: Add generic buttons declaration
2017-06-12 17:03:12 +02:00
bcostm
59bfa39b6d
DISCO_L475VG_IOT01A: remove rtos from build_travis.py
2017-06-12 17:03:12 +02:00
bcostm
2ed207efd4
DISCO_L475VG_IOT01A: change comment for 8-byte aligned adress for IAR .icf file
2017-06-12 17:03:12 +02:00
bcostm
6c585e6e05
DISCO_L475VG_IOT01A: add this target in i2c master/slave tests
2017-06-12 17:03:12 +02:00
bcostm
7a2d1bd74a
DISCO_L475VG_IOT01A: Move ADC internal channels in dedicated table.
2017-06-12 17:03:12 +02:00
bcostm
05c023bcad
DISCO_L475VG_IOT01A: Add all pins even those not available on connectors.
2017-06-12 17:03:12 +02:00
bcostm
a8ab839e2c
DISCO_L475VG_IOT: Re-organize folder
...
- Move TARGET_DISCO_L475VG_IOT01A/ in TARGET_STM32L475xG/
- Add STM32L475xG extra label in targets.json
2017-06-12 17:03:12 +02:00
bcostm
b40591f1e1
DISCO_L475VG_IOT: Add USB Device files
2017-06-12 17:03:12 +02:00
bcostm
72e85bf9fb
Put device_name in upper-case in targets.json
2017-06-12 17:03:12 +02:00
bcostm
2c12c6c13c
Remove fat, usb_host, USB_10, USB_11 in build_travis.py
...
--> alignment with other targets after rebase
2017-06-12 17:03:12 +02:00
bcostm
2871545bd7
Assign LED4 definition same as LED3
2017-06-12 17:03:12 +02:00
bcostm
b9cf7dbe69
Set ADC pins to MODE_ANALOG_ADC_CONTROL
2017-06-12 17:03:12 +02:00
bcostm
ac27f8288d
Add back PB_6/PB_7 pins definition used by STDIO_UART_TX/RX
2017-06-12 17:03:12 +02:00
bcostm
23140da035
Update PeripheralPins: add _ALTx pins and remove pins not available on connectors
2017-06-12 17:03:12 +02:00
bcostm
8c7000cce4
Add "01A" suffix in target name
2017-06-12 17:03:12 +02:00
bcostm
0e3b3efe93
DISCO_L475VG_IOT: Add ARDUINO in "supported_form_factor"
2017-06-12 17:03:12 +02:00
bcostm
9ced451307
Add target in unsupported main.cpp test files
2017-06-12 17:03:12 +02:00
bcostm
116d35ad9b
Update PinNames.h and remove PortNames.h after rebase with master
2017-06-12 17:03:12 +02:00
bcostm
b26eae581d
Add DISCO_L475VG_IOT in build, export and tests python files
2017-06-12 17:03:12 +02:00
bcostm
4cdbbcabc0
Add DISCO_L475VG_IOT in targets.json
2017-06-12 17:03:12 +02:00
bcostm
374f71ca66
Add DISCO_L475VG_IOT in mbed_rtx.h
2017-06-12 17:03:12 +02:00
bcostm
074e11dcc1
Add DISCO_L475VG_IOT specific files
2017-06-12 17:03:12 +02:00
Azim Khan
b3cbb07566
Merge greentea-client/test_env_c.h into greentea-client/test_env.h
2017-06-12 13:46:22 +01:00
Azim Khan
82d948de6b
Revert greentea_getc() to return 'int'
2017-06-12 13:46:22 +01:00
Azim Khan
088d151507
Use existing functions for Greentea client C API
2017-06-12 13:46:22 +01:00
Azim Khan
0edf082c59
Add getc in C API
2017-06-12 13:23:20 +01:00
Mohammad Azim Khan
bd5820f77c
C API for greentea client
2017-06-12 13:23:20 +01:00
Hasnain Virk
d29e05896f
Check Ethernet before including lwipopts_conf.h
...
lwipopts_conf.h is used by target dependent Ethernet drivers for
configuring various parameters.
By default, Ethernet is enabled and in this case lwipopts_conf.h
will be included.
In case of PPP being enabled, it is desirable to not pull in any Ethernet
related code.
2017-06-12 09:57:16 +03:00
Sam Grove
f31ea01237
Merge pull request #4487 from Archcady/Realtek_TCM
...
Resolve Realtek device small code space issue
2017-06-11 01:09:51 -05:00
Sam Grove
22e82659d1
Merge pull request #4483 from c1728p9/workshop_rebase_4061
...
Improve error messages for bootloader build errors
2017-06-11 01:09:35 -05:00
Sam Grove
cfc4159c3f
Merge pull request #4490 from pan-/reintroduce_ticker_test
...
tests: Reintroduce ticker test.
2017-06-11 01:09:24 -05:00
Sam Grove
91bececab9
Merge pull request #4470 from c1728p9/workshop_rebase_4064
...
Flash API support using the MCUXpresso drivers
2017-06-11 01:09:11 -05:00
Sam Grove
f56d64f0f5
Merge pull request #4369 from bridadan/networking_test_update
...
Increase DHCP timeout, and rework networking tests logic
2017-06-10 15:31:16 -05:00
Yuguo Zou
f4522134ed
Resolve Realtek device small code space issue
...
switch on TCM section usage, this should give user code more codespace.
2017-06-10 09:46:01 -05:00
Martin Kojtal
d0d7c6f4f6
lwip: fix stm32f4 eth conf file
...
This file is moved to targets that support eth. It can't be common for any F4, as
not all targets from this family support eth.
2017-06-10 15:20:30 +01:00
Brian Daniels
4f5a199336
Fix bad print message in test
2017-06-10 15:14:28 +01:00
Brian Daniels
00a41add12
Fixing typos in docs
2017-06-10 15:14:28 +01:00
Brian Daniels
94b4160347
Fixing bad asserts
2017-06-10 15:14:28 +01:00
Brian Daniels
f616bf28f6
Adding comments for added Greentea function
2017-06-10 15:14:28 +01:00
Brian Daniels
c38b709685
Cleaning up udp tests
2017-06-10 15:14:28 +01:00