-
Content Count
21 -
Joined
-
Last visited
About soccou
-
Rank
Member
-
Yes, I just tried renaming wdt_millis to a bad value, and the compiler does barf on compile. I also searched and couldn't find any other references. So I am puzzled why it still starts at zero.
-
Thanks for the suggestion, however it didn't seem to work. I changed: //volatile unsigned long wdt_millis = 0; volatile unsigned long wdt_millis = 0xffff0000; but it still starts the count at zero.
-
Hi, yes i have been trying all week, sorry for not getting back sooner. However, I think I may have complications from another source. It is time consuming to try a change then wait 37hours to see if it works. Do you know any way to preset the millis counter for easier testing?
-
@@chicken, wow, I really appreciate your support. Thank you for your time on this one. I will try to test this tomorrow. Scott
-
@@chicken, thanks for the quick reply. Initially I was attempting a simple conditional: #define SEND_DELAY 5000 volatile unsigned long transmitTime; void setup() { transmitTime = millis() + SEND_DELAY; } void loop() { if (millis() > transmitTime) { processIO(); transmitTime = millis() + SEND_DELAY; } } after that didn't work on energia, i tried the normal library i have used on many projects on the Arduino: http://playground.arduino.cc/code/timer but that failed too. I will look through your link and try some of those suggestions.
-
I am trying to get a simple program working that just takes some A/D readings and then every few seconds prints the values over serial. It works fine for about 37.2 hours, and then just stops. The chip appears to freeze. If I reset it, it will go back to work. Once millis is roughly larger than 134214583, nothing. I took the exact same code (changed i/o pin names) and ran it on an arduino and it does not have this problem, so I suspect a bug in the Energia libraries. Anyone have any ideas? Thanks, Scott
-
@reaper7, this is really great! I just got it hooked up to a board i have and it is working. I have been using the Ethercard library for over a year and it is what I am most familiar with. I wanted to port it myself, but don't yet have the knowledge. Did you find any online resources or do you have any quick tips that would guide to porting arduino libraries to energia stellerpad? btw I set the MAC higher than zero in the first digit and it worked. That has been one of my complaints with the Ethercard library, inconsistent DHCP results across different DHCP devices.
-
ENC28J60 Booster Pack
soccou replied to xpg's topic in Tiva-C, Hercules, CC3XXX Launchpad Booster Packs
Hey xpg, your new board looks good. very impressive. in other news, i setup the toolchain you linked to, yay! it finally compiled/flashed, and worked. I can ping it successfully. onward and upward ;-) -
ENC28J60 Booster Pack
soccou replied to xpg's topic in Tiva-C, Hercules, CC3XXX Launchpad Booster Packs
Hi MrDoomBringer, You are using CCS successfully? Are you using the lwip branch? I got the lwip branch to compile, but I had to switch over to linux/gcc to get it to compile. I am not very familiar with CCS, and every time I tried to compile I got a bunch of unresolved includes to the lwip dependencies. Did you experience that? -
ENC28J60 Booster Pack
soccou replied to xpg's topic in Tiva-C, Hercules, CC3XXX Launchpad Booster Packs
hmm, well as is typical for me. one mountain crossed another on the horizon looms. so I got the programmed flashed and running, with the ETH chip wired up. Now I am getting a hard fault like jalder @jalder did you ever make any progress on that error? here is a capture of the output, i added a print statement is the only change to the code so i am guessing it get's lost somewhere in here printf("netif setup\n"); netif_add(&netif, &ipaddr, &netmask, &gw, NULL, enc28j60_init, ethernet_input); netif_set_default(&netif); netif_set_up(&netif); printf( -
ENC28J60 Booster Pack
soccou replied to xpg's topic in Tiva-C, Hercules, CC3XXX Launchpad Booster Packs
awesome, it compiles now. and i was able to flash it. thanks for taking your time to check into this for me. now on to checking wiring of the enc28j60 and see if i can get connectivity. -
ENC28J60 Booster Pack
soccou replied to xpg's topic in Tiva-C, Hercules, CC3XXX Launchpad Booster Packs
No changes to the code, just the toolchainsettings. Ubuntu 12.04 with gcc 4.6.3 [edit] oh, I guess you mean the arm compiler, i installed per the directions from here the summon toolchain http://recursive-labs.com/blog/2012/10/28/stellaris-launchpad-gnu-linux-getting-started/ -
ENC28J60 Booster Pack
soccou replied to xpg's topic in Tiva-C, Hercules, CC3XXX Launchpad Booster Packs
Hello, This is pretty new to me, but I have finally made some progress. However, I am stuck again. Any suggestions? Make complains of inability to fit into restrictions: user@ubuntu:~/stellaris-enc28j60-booster$ make arm-none-eabi-gcc -DDTARGET_IS_BLIZZARD_RA2 -DPART_LM4F120H5QR -Dgcc -I/home/user/stellaris-enc28j60-booster/lwip/src/include -I/home/user/stellaris-enc28j60-booster/lwip/src/include/ipv4 -I/home/user/stellaris-enc28j60-booster/lwip/src/include/ipv6 -I./ -I/home/user/stellarisware -std=c99 -fno-common -O0 -g -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=softfp -mthumb -T bo