Welcome Guest Search | Active Topics | Members | Log In | Register

First CAN project using Keil uVision (Updates in the text). Options · View
marinettejoe
Posted: Wednesday, January 02, 2008 1:19:22 PM

Rank: Administration
Groups: Administration , Member, Other Mods

Joined: 12/3/2007
Posts: 231
Points: 173
Location: Stafford
Code is zipped here.

Program uses the Luminary Micro LM3S8962 board with the evaluation keil compiler and the 2110 board.

The evaluation kit is available from Digikey for $79

Accepts 2 can messages from the board and displays either CAN 1 or CAN 2 depending on which button is pressed.

So far 5536 bytes of the 20K.

File Attachment(s):
NMEACan1.zip (182kb) downloaded 94 time(s).




Unzinced ships sink at slips.
Sponsor
Posted: Wednesday, January 02, 2008 1:19:22 PM
Please Register : New members may not post until approved. An email is sent after approval. We do this to reduce those who use these forums for spamming. This forum is for Marinette Owners and other aluminum boat boaters who wish to share boating information. Aluminum Roamer owners are also welcome. (Do not post content you do not have the right to post and mass (robots) posters are unwelcome. We also have a marine electronics page and lots of Chrysler Engine info. State by what permission, you copy content and accredit properly.) The site is now fixed with some more Chrysler information. I will try to post more information soon. We have space for pictures on the new location. Use shinkpic to autochange size http://www.onthegosoft.com/sp_download.htm

Great Sites - http://www.marinette.com Marinette Company http://www.geocities.com/dougmrose/ Wiring Marinette http://fastjeff.tripod.com/ Repair Tricks and Techniques for Marinettes http://www.greatlakesmarinetteclub.com/

PLEASE post in the appropriate folder. Please, do not post your actual email address in publicly readable websites. The first rule is be a class act.

marinettejoe
Posted: Wednesday, January 02, 2008 1:31:30 PM

Rank: Administration
Groups: Administration , Member, Other Mods

Joined: 12/3/2007
Posts: 231
Points: 173
Location: Stafford
What's next.... I plan to set up the filter on the device to accept (read only) filtered messages (either J1939 or NMEA 2000). Something simple.

Barely readable is the CAN 2 message from pressing the #2 button on the 2110 board.

The 8962 data sheet is 1/2 way down the page.
http://www.luminarymicro.com/home/data_sheets.html


marinettejoe attached the following image(s):
010_0504.jpg
010_0507.jpg



Unzinced ships sink at slips.
marinettejoe
Posted: Wednesday, January 02, 2008 10:22:28 PM

Rank: Administration
Groups: Administration , Member, Other Mods

Joined: 12/3/2007
Posts: 231
Points: 173
Location: Stafford
http://www.luminarymicro.com/products/lm3s8962_can_ethernet_evaluation_kit.html I am using the EKK evaluation copy limited to 20K .

I have the Code Sourcery also, but am finding Keil a lot easier. The kit is $79 bucks from Digikey.

Unzinced ships sink at slips.
marinettejoe
Posted: Thursday, January 03, 2008 12:03:24 PM

Rank: Administration
Groups: Administration , Member, Other Mods

Joined: 12/3/2007
Posts: 231
Points: 173
Location: Stafford
Still gutting it from a sample project... Keeping something working... So far 20 hours invested.



Unzinced ships sink at slips.
marinettejoe
Posted: Thursday, January 03, 2008 12:10:40 PM

Rank: Administration
Groups: Administration , Member, Other Mods

Joined: 12/3/2007
Posts: 231
Points: 173
Location: Stafford
Have decided on the first project requirements. The project will read (only) all can messages and output them to serial/usb. Every 100 ticks or so Both engine Tachometers will be displayed.

Should be simple enough.

Unzinced ships sink at slips.
marinettejoe
Posted: Saturday, January 05, 2008 7:07:21 AM

Rank: Administration
Groups: Administration , Member, Other Mods

Joined: 12/3/2007
Posts: 231
Points: 173
Location: Stafford
I will not be posting those can /NMEA 2000 messages to the serial bus, but will write them to the microSD and a webservice.

Luminary Micro's 8962 kit is great. I have a sprintf memory leak... Time to use snprintf and get the C book out. Really wish I could use Bounds checker on ARM.

Those using new OBDII kits (Elmscan 5) will note that there is a can diagnostic kit. I may pick one up to hack it for NMEA2000.



Unzinced ships sink at slips.
marinettejoe
Posted: Sunday, January 06, 2008 12:47:13 PM

Rank: Administration
Groups: Administration , Member, Other Mods

Joined: 12/3/2007
Posts: 231
Points: 173
Location: Stafford
Here is NMEACAN2.zip.

Fixed the leak in snprintf. I needed to allocate heap of 200 bytes and 500 bytes to the stack) for stdio library calls. Idiot!!! standard lib calls need heap and stack memory. Sheesh. Brick wall

Currently the code is just CAN message handling from button press and is not much more than the LM code. I need to revise it for NMEA 2000 messages, so more protocol work and decoding. This seems to be the only NMEA2000 hobby project in process on the net.

It's design will be to collect CAN messages and allocate them to by PGN handler code as a dispatcher. Most messages will be ignored by the filter.

So far just about 30 hours invested. Faster than I expected.

The blurry pic reads
Hello World! Joe
Canx00000010 (Msg ID)
with Data Byte1 x01 (pressed can button 1).

This is 250K rate. The LM board is very nice.


File Attachment(s):
NMEACAN2.zip (224kb) downloaded 53 time(s).

marinettejoe attached the following image(s):
100_0525.jpg



Unzinced ships sink at slips.
marinettejoe
Posted: Sunday, January 13, 2008 10:25:10 AM

Rank: Administration
Groups: Administration , Member, Other Mods

Joined: 12/3/2007
Posts: 231
Points: 173
Location: Stafford
Good paper on the address claim process URL http://www.agen.okstate.edu/Home/mstone/papers/Dynadr/dynadr.htm

Unzinced ships sink at slips.
marinettejoe
Posted: Saturday, April 26, 2008 6:32:02 AM

Rank: Administration
Groups: Administration , Member, Other Mods

Joined: 12/3/2007
Posts: 231
Points: 173
Location: Stafford
Status Still waiting on parts from wesgarde and an optoisolator from digikey.

I want to get the boat back, install the Maretron Fuel sender and the finish the kvaser test harness, to finish this out.



Unzinced ships sink at slips.
marinettejoe
Posted: Tuesday, May 13, 2008 7:53:58 PM

Rank: Administration
Groups: Administration , Member, Other Mods

Joined: 12/3/2007
Posts: 231
Points: 173
Location: Stafford
marinettejoe wrote:
Status Still waiting on parts from wesgarde and an optoisolator from digikey.

I want to get the boat back, install the Maretron Fuel sender and the finish the kvaser test harness, to finish this out.



And still waiting. Was promised this on the 25th and is was supposedly sent out.



Unzinced ships sink at slips.
marinettejoe
Posted: Monday, June 16, 2008 4:56:59 PM

Rank: Administration
Groups: Administration , Member, Other Mods

Joined: 12/3/2007
Posts: 231
Points: 173
Location: Stafford
The parts are in.... Wesgarde came through.... Just need time to finish it.

Unzinced ships sink at slips.
Users browsing this topic
Guest2


Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Main Forum RSS : RSS

Powered by Yet Another Forum.net version 1.9.1.6 (NET v2.0) - 11/14/2007
Copyright © 2003-2006 Yet Another Forum.net. All rights reserved.
This page was generated in 0.328 seconds.