I just finished a build with GNU Tools Arm Embedded (4.8 2013q4) on Win 32 per the core-firmware and I get the read flash.
It is a PANIC out of heap! So the I suspect that CodeSoucery does a better job of coalescing
In release mode the IWDT (wtach dog) is cutting short the SOS and blink codes.
In debug the output on tx,rx (3.3V) pin is a <PANIC> char* _sbrk(int) (139):Out Of Heap
0000000001:<DEBUG> int main() (103):Hello from Spark!
0000001994:<DEBUG> int Spark_Connect() (616):sparkSocket Now =-1
0000002000:<DEBUG> int Spark_Disconnect() (654):
0000002004:<DEBUG> set_socket_active_status (810):Sd=0, Status SOCKET_STATUS_ACTIVE
0000002012:<DEBUG> int Spark_Connect() (623):socketed sparkSocket=0
0000002018:<DEBUG> int Spark_Connect() (644):connect
0000002164:<DEBUG> int Spark_Connect() (646):connected connect=0
0000002306:<DEBUG> int Spark_Receive(unsigned char*, int) (366):bytes_received 40
0000002314:<PANIC> char* _sbrk(int) (139):Out Of Heap
There is a significant memory usage difference when building with the two different tool streams.
The fix for the GNU Tools Arm Embedded (4.8 2013q4) on Win 32 build was to add an #ifdef and #ifdef out out the first UDP object and itās code in my test app. (So under GCC the test app only does a UDP receive and and HTTP get)
@david_s5 Thanks for the quick turnaround. Iāll test your latest spark_master_new branch later today.
Like @sjunnesson, Iām running the Spark-recommended compiler: arm-none-eabi-gcc 4.8.3 20131129. Iām curious about a better ARM toolset if itās in the sub-$250 range but thatās another topic.
Just a bit ago, I built the latest master branch from Spark - the last merge was ātechnobly/spi_fixesā - and it seems very stable. I built that branch earlier this week and it was a blink-fest so I had to revert to the compile-server2 branch.
@bkize The spark master has some of my spark_master_new in it so I would expect it to be more stable. Once the Pull Request get in there it should match spark_master_new plus any other great fixes that have been submitted.
thanks for the update @david_s5 The new code flashed nicely and is now loaded on 4 Cores here that I will leave for a week to see how they go. Hopefully when I get back from my trip they all will breath happily and still report to the cloud.
@david_s5 Your updated spark_master_new branch is looking good so far. No issues whatsoever.
Yes, Iāve been monitoring the commits to the Spark core-* repositories. Kudos to you for all of your contributions. The next major firmware release by Spark should be significantly better with all of the contributions from the community plus the many improvements made by the Spark team. Great progress a short timeframe.
@david_s5 I tried to run make via command line but it gives me the following error probably because Iām setup with GNU Tools instead of what your using.
You have to replace ārmā and āmkdirā syntax in all the "makefile"s. The makefiles can be found in the ābuildā folder of all the repositories - core-firmware, core-communication-lib, core-common-lib.
@RWB If you have GitHub for Windows installed - which I highly recommend - see another option here:
Bottom line: Use the "Git Shell" app/shortcut to open a Git-aware command line that recognizes the commands above, instead of opening a "normal" command line that does not.
@david_s5 you just saved me a lot of time by getting me to try to fix my build situation. I had a problem where if I ran āmakeā from the build directory once, it worked. But if I ran it again it was failing. This was because of some file paths in some of the .d files. I was thinking maybe converting my PATH to DOS8.3 format would maybe change the situationā¦ worth a try at least. So I did, and it was now building over and over perfectly. But as a test, I put my PATH back to the normal long version expecting it to break again but it did not. Still builds perfectly. There must have been some updates to the make file that I wasnāt aware ofā¦ so thanks for inadvertently saving me a ton of time! I had to basically clean all build directories before EACH build prior to nowā¦ that really sucked.
@Bdub I had the same issue. I was able to run the Make via command prompt to load your firmware just fine the first time but when I tried to run it later via command prompt I just keep getting this error:
Others gave me links to ways to fix this but it didnāt and after 2 hours I gave up.
I tried to load your Firmware again but it would not compile either and gave me the same error message even though it worked the first time. I just figured the Communication-lib had been updated and that was causing the error message.
In frustration I just deleted all the programs needed to compile and figured I would start from scratch and try again.
So what exactly did you change to make it work again? Should this also work for me? I would like to try out David_s5ās latest firmware but canāt flash any new firmware because of this issue.
@david_s5 I can also report in happy Cores running for ~2 days soon. So the firmware seems to stand up for the test so far. I will be gone for 5 more days and hopefully when I come back they all will keep on breathing.