ESP8266 Developer Zone The Official ESP8266 Forum 2015-07-21T18:15:34+08:00 https://bbs.espressif.com:443/feed.php?f=7&t=782 2015-07-21T18:15:34+08:00 2015-07-21T18:15:34+08:00 https://bbs.espressif.com:443/viewtopic.php?t=782&p=2773#p2773 <![CDATA[Re: SDK Layout & use in other projects]]>
Keep up the good work,
Ben

Statistics: Posted by bjpirt — Tue Jul 21, 2015 6:15 pm


]]>
2015-07-21T17:10:30+08:00 2015-07-21T17:10:30+08:00 https://bbs.espressif.com:443/viewtopic.php?t=782&p=2767#p2767 <![CDATA[SDK Layout & use in other projects]]> Currently, each time a new SDK is released we have to modify it to compile our code since the SDK insists on compiling only in the 'app' directory.
It would be very convenient if the SDK could be shipped to
a) compile a directory external to itself.
For example:
/opt/espressif/sdk/sdk1.2XXXX
/opt/espressif/sdk/current ->/opt/espressif/sdk/sdk1.2XXXX
/home/username/git/myapp/Makefile
/home/username/git/myapp/src/user.c
(Obviously other people have other preferences, but I think the concept is clear ;) )
Then, just like we can do with other sdks, we'd add
-I/opt/espressif/sdk/current/include
-l/opt/espressif/sdk/current/lib
/opt/espressif/sdk/current/src/*.c
in our project Makefile

b) the above should be _very_ consistently working between versions, so to encourage upgrades.
upgrades are painful ATM. Ideally, all that should be necessary is to download, unzip, change symlink: Done.

c) if there any requred flags, such as SPIspeed/flash-size etc. then they will be defined in our Makefile. They just need
to be documented very clearly by espressif.

d) the AT-Command set *must* be entirely optional, since it's usually of no use in applications

e) Generally, whilst it's great that it is meant to be userfriendly with windows click-and-drag tools, forcing the use of those tools actually makes harder for software development in teams. It should work well on linux (debian/ubuntu/centos) and with git ;-) - that's IMHO more-or-less the modern way ;). So the SDK should be more focused (or in addition to) on automated compilation during continous integration cycles.

btw: please get rid of the 76800 Baud rate when starting the cpu in rom. change it to 115200 or 57600 ;). It's annoying.

Statistics: Posted by SingingCat — Tue Jul 21, 2015 5:10 pm


]]>