Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.

smokingfish

Member Since 13 Feb 2013
Offline Last Active Nov 08 2013 04:42 PM
-----

Posts I've Made

In Topic: Serial Monitor on Netduino mini (with LCD+UI & using both ports)

17 March 2013 - 11:50 PM

I fixed some bugs, design and functions.

It now really behaves like a Terminal program on PC and you can enter all characters to send commands to devices.

 

I tested my new https://www.sparkfun.com/products/9555 (ODB2 Interface) with it and it works perfect.

I added a MAX323 breakout in between wich i want to integrate into the main monitor and make it toggable.

You can also get power (only 5V for now) from RTS and DTR to power small interfaces (in this case the MAX323 and the UDB2 Board (it will be powered by the car once its connected though)).

 

It is quiet handy, I added a 9V Battery source and now i can easily move the whole setup into my car tomorrow to test functions for my ODB2 tool :)

 

Posted Image


In Topic: UART Speed

13 March 2013 - 10:22 PM

Found the solution for that:

 

init at 9600

send cmd for new baud 115200

Thread.Sleep(50);

close port

change baud

open port

receive ACK


In Topic: Problem using RS232 for Communication (not deploying)

13 March 2013 - 08:50 PM

Just wanted to post the final result:

It works =D

 

It was quite a trip (as it was my first go using stuff like this) :)

You will need to build your own firmware image (and as i learned you should use MDK or RVDS, GCC and yagarto work  too but the image is too big and you will get problems with your code size and memory maps).

 

MDK5 works quite perfect, but you need a new entry to the targets file!

 

Microsoft.Spot.system.mdk.targets    <CC      Condition="'$(COMPILER_TOOL_VERSION)'=='MDK5'">"$(MDK_TOOL_PATH)ARMCCbinarmcc.exe"</CC>    <CPP     Condition="'$(COMPILER_TOOL_VERSION)'=='MDK5'">"$(MDK_TOOL_PATH)ARMCCbinarmcc.exe"</CPP>    <AS      Condition="'$(COMPILER_TOOL_VERSION)'=='MDK5'">"$(MDK_TOOL_PATH)ARMCCbinarmasm.exe"</AS>    <LINK    Condition="'$(COMPILER_TOOL_VERSION)'=='MDK5'">"$(MDK_TOOL_PATH)ARMCCbinarmlink.exe"</LINK>    <AR      Condition="'$(COMPILER_TOOL_VERSION)'=='MDK5'">"$(MDK_TOOL_PATH)ARMCCbinarmar.exe"</AR>    <FROMELF Condition="'$(COMPILER_TOOL_VERSION)'=='MDK5'">"$(MDK_TOOL_PATH)ARMCCbinfromelf.exe"</FROMELF>

You will also need to change the scatter file for MDK to

        <Set Name="Code_BaseAddress"    Value="0x0010A000"/>        <Set Name="Deploy_BaseAddress"  Value="0x00158000"/>

Im pretty sure that is not a very beautiful solution, but it works:

SecretLabs_NETMF_Diagnostics_SecretLabs_NETMF_Diagnostics_Transport.cpp

Add:

	case TRANSPORT_NONE:	    DeploymentTransport_Set(COM_SOCKET_DBG);	    break;

to:

void Transport::TransportInterface_Set( UINT8 param0, HRESULT &hr )

It changes the Interface to ETH1 wich is not available on the mini, now you can use:

Transport.SetInterface(TransportInterface.None);

in your program, the device resets and GetInterface results in TransportInterface.None!

Also, no more data is being send/received and you can use the port freely. If you want to save time add a function to your program to change it back!  


In Topic: Compiling Netduino mini Firmware

13 March 2013 - 06:58 PM

Hey there, thanks for that.

I used MDK 4.7 (cmp/asm/lnk 5.0.3) (couldnt get it to work on 4.0)

 

I had to add a new entry to the targets file but it works well and the image is just a few kilobytes bigger than the original one.

 

It works just like you would expect it to! No more errors, no more mismatches.

 

Now that that is done I may actually try to modify the firmware :) Still want those 2 ports at once!


In Topic: Compiling Netduino mini Firmware

12 March 2013 - 05:27 PM

I guess i got it working.

Seems i forgot the tinybootcompressor at 0x010a0000.

It also works when i flash tinyCLR at 0x010a000 instead of 0x01010000.

 

I can deploy very small programs but i get Error a3000000 when deploying my rather big solution.

I guess I dont have enough free memory :(

 

The Flash Sector Map Command also lists Deployment start at 0x00158000, its 0x00174000 in the scatter file.

Changing the Code_BaseAddress there works.

 

What Compiler does the offical firmware use?

 

EDIT: managed to scale down my monitor app, remove references etc. it now deploys but cancels at:

Microsoft.SPOT.Hardware.SerialPort 0x4E6685A9!=0x1C1E5B6D

I changed the Version Number of SerialPort from 4.0.0.0 to 4.2.0.0 but still Error: a3000000 (no more mismatch though) - what Version did you actually use?

EDIT: I checked the NETMF source, 4.0.0.0 seems to be correct in the libcatproj files, there is no newer version.

A clean project without Serial works fine, if i add it I dont get the same mismatch error but still a3000000


home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.