logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

First CAN project using Keil uVision (Updates in the text).
marinettejoe
#1 Posted : Wednesday, January 02, 2008 8:19:22 AM(UTC)
marinettejoe

Rank: Administration

Groups: Admin2
Joined: 12/3/2007(UTC)
Posts: 515
Points: 611
Location: Aquia, Va

Thanks: 31 times
Was thanked: 39 time(s) in 25 post(s)
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 146 time(s).
Unzinced ships sink at slips. yep
Sponsor
Please Register : To weed out spammers, new members may not post until approved. An email is usually sent after approval. 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 give credit properly.) The site is now fixed with some more Chrysler information. 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://web.me.com/dougmrose/Doug_Roses_Website/Welcome.html

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
#2 Posted : Wednesday, January 02, 2008 8:31:30 AM(UTC)
marinettejoe

Rank: Administration

Groups: Admin2
Joined: 12/3/2007(UTC)
Posts: 515
Points: 611
Location: Aquia, Va

Thanks: 31 times
Was thanked: 39 time(s) in 25 post(s)
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...m/home/data_sheets.html

marinettejoe attached the following image(s):
marinettejoe attached the following image(s): 010_0504.jpg
marinettejoe attached the following image(s): 010_0507.jpg
Unzinced ships sink at slips. yep
marinettejoe
#3 Posted : Wednesday, January 02, 2008 5:22:28 PM(UTC)
marinettejoe

Rank: Administration

Groups: Admin2
Joined: 12/3/2007(UTC)
Posts: 515
Points: 611
Location: Aquia, Va

Thanks: 31 times
Was thanked: 39 time(s) in 25 post(s)
http://www.luminarymicro...net_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. yep
marinettejoe
#4 Posted : Thursday, January 03, 2008 7:03:24 AM(UTC)
marinettejoe

Rank: Administration

Groups: Admin2
Joined: 12/3/2007(UTC)
Posts: 515
Points: 611
Location: Aquia, Va

Thanks: 31 times
Was thanked: 39 time(s) in 25 post(s)
Still gutting it from a sample project... Keeping something working... So far 20 hours invested.

Unzinced ships sink at slips. yep
marinettejoe
#5 Posted : Thursday, January 03, 2008 7:10:40 AM(UTC)
marinettejoe

Rank: Administration

Groups: Admin2
Joined: 12/3/2007(UTC)
Posts: 515
Points: 611
Location: Aquia, Va

Thanks: 31 times
Was thanked: 39 time(s) in 25 post(s)
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. yep
marinettejoe
#6 Posted : Saturday, January 05, 2008 2:07:21 AM(UTC)
marinettejoe

Rank: Administration

Groups: Admin2
Joined: 12/3/2007(UTC)
Posts: 515
Points: 611
Location: Aquia, Va

Thanks: 31 times
Was thanked: 39 time(s) in 25 post(s)
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. yep
marinettejoe
#7 Posted : Sunday, January 06, 2008 7:47:13 AM(UTC)
marinettejoe

Rank: Administration

Groups: Admin2
Joined: 12/3/2007(UTC)
Posts: 515
Points: 611
Location: Aquia, Va

Thanks: 31 times
Was thanked: 39 time(s) in 25 post(s)
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 134 time(s).
marinettejoe attached the following image(s):
marinettejoe attached the following image(s): 100_0525.jpg
Unzinced ships sink at slips. yep
marinettejoe
#8 Posted : Sunday, January 13, 2008 5:25:10 AM(UTC)
marinettejoe

Rank: Administration

Groups: Admin2
Joined: 12/3/2007(UTC)
Posts: 515
Points: 611
Location: Aquia, Va

Thanks: 31 times
Was thanked: 39 time(s) in 25 post(s)
Good paper on the address claim process URL http://www.agen.okstate....papers/Dynadr/dynadr.htm
Unzinced ships sink at slips. yep
marinettejoe
#9 Posted : Saturday, April 26, 2008 1:32:02 AM(UTC)
marinettejoe

Rank: Administration

Groups: Admin2
Joined: 12/3/2007(UTC)
Posts: 515
Points: 611
Location: Aquia, Va

Thanks: 31 times
Was thanked: 39 time(s) in 25 post(s)
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. yep
marinettejoe
#10 Posted : Tuesday, May 13, 2008 2:53:58 PM(UTC)
marinettejoe

Rank: Administration

Groups: Admin2
Joined: 12/3/2007(UTC)
Posts: 515
Points: 611
Location: Aquia, Va

Thanks: 31 times
Was thanked: 39 time(s) in 25 post(s)
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. yep
marinettejoe
#11 Posted : Monday, June 16, 2008 11:56:59 AM(UTC)
marinettejoe

Rank: Administration

Groups: Admin2
Joined: 12/3/2007(UTC)
Posts: 515
Points: 611
Location: Aquia, Va

Thanks: 31 times
Was thanked: 39 time(s) in 25 post(s)
The parts are in.... Wesgarde came through.... Just need time to finish it.
Unzinced ships sink at slips. yep
Users browsing this topic
guest
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.

Powered by YAF 1.9.5.5 | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.543 seconds.