Forums » Discussion and support »
I2C controller locks up
Added by HansPeterHaastrup almost 10 years ago
Hello there!
I'm quite new to the laser cutter business so here's my progress:
I'm building a Laser 2.x with metric modifications and have settled for the LAOS controller. I have started out by making a mockup with the Mbed with SD card reader and Ethernet connection. I also have an Arduino Uno with display and a 5-way button as a joystick. I have put a configuration file on the SD card and I can see on the serial terminal that the system starts. I can also see that the display on the Uno gets commands. After init I get the <-----1 main ----> line on the display. However, I can't move around the menus and it seems that the controller is not responding to anything. If I reset the Uno the Mbed resends the display commands but I'm stuck on the 'main' menu item..
Does anybody have a good guess on what I do wrong?
Oh - I'm running the latest build for the Mbed..
Thanks in advance!
Replies (7)
RE: I2C controller locks up - Added by folken over 9 years ago
I have the exact same problem. Did you find a solution meanwhile?
- Folken
RE: I2C controller locks up - Added by HansPeterHaastrup over 9 years ago
No I didn't.
I tried some different firmwares but got stuck on that issue. I'm still very much interested in getting a fix so if you have any progress I'd be glad to know about it!
RE: I2C controller locks up - Added by jaap over 9 years ago
If you see <-----1 main ----> immediately and no startup messages, something is broken in your startup procedure. Most likely, the SD card does not get read.
During a normal boot procedure, you should see several other screens before you enter <-----1 main ---->, for example you should see the IP address displayed a few seconds and the machine should home itself.
Connect a serial terminal for debugging output.
RE: I2C controller locks up - Added by peteruithoven over 9 years ago
Doesn't the display indicate "SD card not ready" in most cases something goes wrong with reading the SD card?
Check if you have the latest version, see the changelog for recent changes:
https://github.com/LaosLaser/Firmware/blob/master/CHANGELOG
RE: I2C controller locks up - Added by folken over 9 years ago
I tried the debugging, while i saw something the first time, i wasn't able to produce anymore output on it
i use
screen /dev/ttyACM0 115200
I tried the 201410XX Firmware aswell as the latest. I'm not sure that either gets loaded.
I put the firmware.bin both on the MBED aswell as on the sdcard. I also edited the config on the MBED to get some reaction, (For example turning the i2c display off completly)
I reformatted the SDCARD with mkfs t vfat /dev/mmc... MAIN ---> It never displays the IP address even though its statically configured. (Does it need to be connected to a switch for it in order to do that?)
Its either stuck at laos laser... or at <--
I don't think it does anything, whetere i add/modfiy files in MBED with emtpy SDCARD, or files on SDCARD.
RE: I2C controller locks up - Added by jaap over 9 years ago
I'm using putty for debugging, maybe that works better.
You should quite a long list, almost every step in main.cpp creates output. Comparing the output with main.cpp should give you a pretty good idea where it gets stuck.
Did you try another SD card?