Angus Gratton
230aa9fd37
Add new "RAM" storage macro for putting constant data in RAM
...
Also update comments in common_macros.h following #142
2016-05-28 12:39:56 +10:00
Angus Gratton
b304f65c21
Merge pull request #142 from SuperHouse/feature/rodata_defaults_flash
...
Store .rodata in flash by default
2016-05-28 11:25:45 +10:00
Angus Gratton
f0db26604f
brk/malloc: Allow malloc to fail when out of RAM
...
Fixes #76 .
2016-05-27 12:09:07 +10:00
Angus Gratton
d5221e7efa
mbedtls: Remove WIN32 #ifdef sections, use socket's SO_ERROR flag over errno when possible
2016-05-27 11:51:11 +10:00
Angus Gratton
367c17d1cf
lwip: Fix 'errno' not being set by sockets layer
2016-05-27 11:51:04 +10:00
Angus Gratton
d72aedf7b1
Store .rodata in flash by default
...
Closes #11
2016-05-23 15:20:06 +10:00
Angus Gratton
3ba19d7c4e
Merge pull request #137 from SuperHouse/feature/better_crash_dumps
...
Better crash dumps
2016-05-17 09:38:19 +10:00
Angus Gratton
1e9296f60c
Fatal exceptions: Cleanly deal with exceptions that occur inside fatal_exception_handler_inner()
...
In case of heap corruption or some other major problem, dumping details
in the exception handler can cause a crash loop - so fail out if we seem
to be going in circles.
2016-05-17 09:27:31 +10:00
Angus Gratton
3da022c132
Merge pull request #135 from SuperHouse/feature/phy
...
PHY management features
2016-05-16 07:51:44 +10:00
Drasko DRASKOVIC
e7607ffc2b
Add JSON support
...
This commits adds JSON support by adding Jsmn
(http://zserge.com/jsmn.html ), a minimalistic JSON parser.
Signed-off-by: Drasko DRASKOVIC <drasko.draskovic@gmail.com>
2016-05-15 22:32:14 +10:00
Angus Gratton
981c87899b
Add heap information to fatal exception & abort dumps
2016-05-15 22:30:01 +10:00
Angus Gratton
efedd24624
fatal exception handler: Only dump "registers" from stack for fatal user exceptions
2016-05-15 22:30:01 +10:00
Angus Gratton
36886412e6
Add abort() implementation
...
Also reduces the IRAM footprint of the fatal exception handler, as only
the prelude (which disables interrupts & enables the flash mapping) is
in IRAM now.
Closes #54 , relevant to #133 .
2016-05-15 22:30:01 +10:00
Angus Gratton
cf350efd8a
Dump register state on fatal exception
2016-05-15 22:30:01 +10:00
Angus Gratton
52f9b13faf
Break out debug dump functions into their own compilation unit
2016-05-15 22:30:01 +10:00
Angus Gratton
640609c3f5
lwip sys_arch: Add functional xInsideISR implementation
...
Relies on global flags set when the user ISR is executing.
Unclear if this fixes any bugs as ISR code may not have been calling
into LWIP, but the previous implementation was broken.
2016-05-15 22:30:01 +10:00
Angus Gratton
0caab973a5
Recompile libc with malloc locking enabled
...
newlib-xtensa revision cbe80794ed0083
This fixes a crash caused by heap operations occuring inside
ISRs. Particularly noticeable when sending a lot of network
traffic. Probably fixes #119 , maybe other crashing bugs.
Configure/compile steps same as previous:
../configure --with-newlib --enable-multilib
--disable-newlib-io-c99-formats --enable-newlib-supplied-syscalls
--enable-target-optspace
--program-transform-name="s&^&xtensa-lx106-elf-&"
--disable-option-checking --with-target-subdir=xtensa-lx106-elf
--target=xtensa-lx106-elf
--prefix=/home/gus/dev/esp/rtos/open-rtos/libc/
--enable-newlib-nano-malloc --enable-newlib-nano-formatted-io --enable-newlib-reent-small --prefix=path_to/esp-open-rtos/libc
CROSS_CFLAGS="-DSIGNAL_PROVIDED -DABORT_PROVIDED" make
make install
2016-05-15 22:30:01 +10:00
Angus Gratton
b414e0b946
Add 'filteroutput.py' tool to automatically do addr2line lookups on likely hex values
2016-05-15 22:30:00 +10:00
Angus Gratton
f9fb0f212c
Add stack memory dump to fatal exception handler
2016-05-15 22:24:40 +10:00
Angus Gratton
fd20b1a530
Add PHY hardware management for Bluetooth Coexistence pin choice
2016-05-15 22:21:10 +10:00
Angus Gratton
b61d06e940
Wrap structure around phy_info PHY initialisation settings
...
Add notes based on testing some of the values found there.
2016-05-15 22:21:10 +10:00
Angus Gratton
b2c032a867
Merge pull request #141 from SuperHouse/fix/travis_builds
...
Fix Travis toolchain build (again)
2016-05-15 22:20:40 +10:00
Angus Gratton
b83d4a4293
Travis: Update esp-open-sdk commit to work around rewritten history on submodule
2016-05-15 22:16:42 +10:00
Angus Gratton
57c718d835
Travis: Work around 4MB log limit when building all examples
2016-05-15 22:16:42 +10:00
Angus Gratton
fee987d5cf
Startup code: Move user_start_phase2 to irom section
...
This saves 1020 bytes from the text (IRAM) section by preventing
inlining of user_start_phase2() (and dump_flash_config_sectors() as
well) into the IRAM function sdk_user_start().
2016-05-15 22:16:42 +10:00
Angus Gratton
5809a0119b
Merge pull request #114 from doragasu/sntp
...
Added sntp support and example
2016-05-15 20:42:35 +10:00
Angus Gratton
11ec316038
Merge pull request #129 from jsuiker/feature/dht-sensors
...
Added DHT library to extras and sample code to examples
2016-04-25 14:28:01 +10:00
jsuiker
99eba80c4d
Added DHT library to extras and sample code to examples
2016-04-25 01:58:09 +00:00
Angus Gratton
dccc57433d
Move static constructor calls to after PHY, clock & baud rate are setup
...
Otherwise anything printed inside the constructor happens at unexpected baud rate.
Ref #128
2016-04-24 18:52:20 +10:00
Angus Gratton
b61b62136b
gcc __attribute__((constructor)): Remove hacked calling, move ctor sections to flash
...
More hacky moving of parts of .rodata to flash, until we can move all of
it.
Candidate fix for #128
2016-04-24 18:52:16 +10:00
Angus Gratton
2badeed523
cpp_01_tasks example: Remove spurious OTA=1 (ref #128 )
2016-04-20 09:25:40 +10:00
Angus Gratton
1c998a3edf
http_get_mbedtls example: Update for howsmyssl.com server-side changes
...
New letsencrypt CA cert since they left beta, and HTTP server now
expects a Host header.
2016-04-20 09:25:40 +10:00
Angus Gratton
8453445620
mbedtls: Update to upstream v2.3.0
2016-04-20 09:05:33 +10:00
Angus Gratton
736e790e80
Merge pull request #124 from kanflo/rboot-merge
...
Updated rboot to #75ca33b including the flash write bug.
2016-04-15 11:19:56 +10:00
Angus Gratton
a97fb75261
Stop gap workaround for 'esp-open-sdk STANDALONE=n' build failure
...
Stop gap measure. See #126 for context/options.
2016-04-14 17:34:03 +10:00
Yudi Ludkevich
7e9d5bd2e2
MQTT client api and example
...
This code based on ESP8266 port of the embedded C client in Eclipse Paho project
(http://www.eclipse.org/paho/ ) and it port for espressif
ESP8266_RTOS_SDK by baoshi (https://github.com/baoshi/ESP-RTOS-Paho.git )
2016-04-14 16:59:07 +10:00
Johan Kanflo
9c49134d61
Updated rboot to #75ca33b including the flash write bug.
2016-04-07 20:29:28 +02:00
Angus Gratton
83c5f91bc0
Merge pull request #121 from foogod/ds18b20-updates
...
DS18B20 API Improvements
2016-04-07 08:42:02 +10:00
Angus Gratton
4adddc2574
Merge pull request #122 from foogod/warning-handling
...
Add WARNINGS_AS_ERRORS make flag
2016-04-07 08:13:22 +10:00
Alex Stewart
5b16aa5ba4
Change #warning to #error in ssid_config.h
2016-04-06 11:42:58 -07:00
Alex Stewart
fa6dd22957
Add WARNINGS_AS_ERRORS=1 to Travis build config
2016-04-06 11:06:11 -07:00
Alex Stewart
373e7cae62
Add WARNINGS_AS_ERRORS make flag
...
Previous behavior was all warnings were treated as errors. This is now
controllable via a make variable and defaults to off (but can be turned on in
local.mk for those who still want the old behavior)
2016-04-05 16:45:36 -07:00
Alex Stewart
494c2d9cec
Implement new ds18b20 APIs
2016-04-05 10:05:42 -07:00
Alex Stewart
60e468bdb2
Misc ds18b20 fixups/enhancements
...
add onewire_power() after CONVERT_T
Fix naming of DS18B20_* constants
2016-04-05 10:04:56 -07:00
Alex Stewart
9c37da6834
Add more documentation for onewire.h
2016-04-05 10:04:31 -07:00
Alex Stewart
9b49b426f6
Added error-checking in onewire routines
2016-04-05 10:04:31 -07:00
Alex Stewart
a2b9d688ea
Multiple cleanups/tweaks for onewire driver
...
Use onewire_addr_t for onewire addresses
Move internal defines out of onewire.h
Remove global variables for search state
use taskENTER_CRITICAL instead of portDISABLE_INTERRUPTS
remove unnecessary onewire_init function
Remove unnecessary critical sections
Use GPIO_OUT_OPEN_DRAIN
reformat/style cleanup
2016-04-05 10:03:17 -07:00
doragasu
11c9031d9b
Removed my _time() implementation to use newlib provided one.
2016-03-31 16:05:15 +02:00
doragasu
f4a5675854
Merge branch 'master' of https://github.com/SuperHouse/esp-open-rtos into sntp
2016-03-31 15:41:20 +02:00
Angus Gratton
02c35d8a71
Merge pull request #118 from UncleRus/core/gpio_cpp_fix
...
esp/gpio.h c++ linker compatibility
2016-03-22 13:27:12 +11:00