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.

blackt1ger's Content

There have been 14 items by blackt1ger (Search limited from 26-April 23)


By content type

See this member's

Sort by                Order  

#60762 The debugging target is not in an initialized state; rebooting...

Posted by blackt1ger on 20 November 2014 - 01:05 AM in Visual Studio

Well, found the issue.  Wouldn't have believed it.

 

USB port on computer.  Switched the port and now 4.2 works and 4.3 works.  I think it was in a USB 3.0 connector.  




#60751 The debugging target is not in an initialized state; rebooting...

Posted by blackt1ger on 19 November 2014 - 05:17 AM in Visual Studio

Okay, so I install Windows XP SP3 32-bit on VMware Workstation (clean install), install Visual Studio 2010 C# Express, netduino sdk 4.2, and MF 4.2.

 

Attach my Netduino to the XP VM machine.

 

Had a known issue with MPP, fixed (didn't install .NET 2, just did the updated manifest).

 

My blinky builds and deploys, but no love in attaching a debugger.....   

 

What could it be?

 

I might have to go all the way back to MF 4.1.




#60748 The debugging target is not in an initialized state; rebooting...

Posted by blackt1ger on 18 November 2014 - 11:10 PM in Visual Studio

I'm sure I've done that at least once.   I did verify that all the references match desired SDK version by using the Properties window.  And they all point to the appropriate locations where everything is installed ( which is all default locations ).

 

The thing is, I did a blinky and it deploys, works, etc.  I would think that a mismatched assembly would just lock it up.

 

The draw to using NetDuino was the integrated debugging.  Might as well go back to MPLAB and doing it on a PIC board, at least there the ICD3 debugger works (fingers crossed, it has been a few months since I've used that, too).




#60739 The debugging target is not in an initialized state; rebooting...

Posted by blackt1ger on 18 November 2014 - 03:35 AM in Visual Studio

Okay, so I  pull out my NetDuino 2 Plus because I need to test some breakout boards via SPI.  Ideal situation, rapid code writing, good testing.

 

First I upgrade everything to VS2013, firmware, sdk, MF.NET to 4.3.  Got the problem that is the topic of this post.

After a day fighting with it, I decide, "Okay, downgrade, everything used to work....". 

 

Now, I'm at VS 2010 with MF 4.2, sdk 4.2, firmware 4.2.2.  Still get the same error message.

 

Steps taken include using NetDuino Update to erase the app image, DFSU (or whatever it's called) works ( I had to reflash to 4.2 with that), NetDuino Update works ( I had to flash to 4.3 with that).....

 

I'm back on MF 4.2 and Visual Studio 2010. 

 

I confirmed that my USB driver is from Secret Labs and has the appropriate version number (4.2) for now.

 

Any suggestions?  Anybody knows what's wrong?




#60731 Porting eLua to the NetDuino

Posted by blackt1ger on 17 November 2014 - 01:52 AM in Netduino 2 (and Netduino 1)

baxter,

 

which binary did you use for the eLua download into Netduino?  Or did they remove it?  I see one for an Atmel based Netduino, but none for the STMicro STM32F4?

 

--Ken




#60728 How to upgrade to the .NET Micro Framework v4.3 SDK

Posted by blackt1ger on 16 November 2014 - 10:32 PM in Beta Firmware and Drivers

Help. 

 

Using Netduino Plus 2.

 

Okay, I got Visual Studio 2013 and Visual Studio 2013 Express for Desktops.  I managed to get everything installed.  Updated the firmware with the Netduino update.  Everything looks okay.

 

Project builds and deploys, but when I want to debug, it reboots the Netduino, and then tries to re-attach the debugger.  It fails.  Subsequent attempts to deploy fails.  Need to remove/insert USB wait for it to detect and I can deploy again, but the same error happens when I try to debug.

 

I erased the app (using the Netduino Update options dialog), but it doesn't make any difference.

 

Just to be clear, the MF experimental is no longer needed, right?  CodePlex has the MF 4.3 - R2-Beta which supports Visual Studio 2013.  But what about the Netduino SDK ? Do we use the experimental version as linked in the beginning of this forum?

-------------

Looking for a device on transport 'USB'
Starting device deployment...
Iteration 0
Opening port \\?\USB#VID_22B1&PID_1000#000000000000#{09343630-a794-10ef-334f-82ea332c49f3}\Operations
Attaching debugger engine...
... debugger engine attached!
Querying device assemblies...
Found Assembly mscorlib 4.3.1.0
Found Assembly Microsoft.SPOT.Native 4.3.1.0
Found Assembly Microsoft.SPOT.Hardware 4.3.1.0
Found Assembly Microsoft.SPOT.Net 4.3.1.0
Found Assembly System 4.3.1.0
Found Assembly Microsoft.SPOT.Hardware.SerialPort 4.3.1.0
Found Assembly Microsoft.SPOT.IO 4.3.1.0
Found Assembly System.IO 4.3.1.0
Found Assembly Microsoft.SPOT.Hardware.PWM 4.3.1.0
Found Assembly Microsoft.SPOT.Hardware.Usb 4.3.1.0
Found Assembly SecretLabs.NETMF.Diagnostics 4.3.1.0
Found Assembly SecretLabs.NETMF.Hardware.Netduino 4.3.1.0
Found Assembly Microsoft.SPOT.Hardware.OneWire 4.3.1.0
Found Assembly Microsoft.SPOT.Time 4.3.1.0
Found Assembly SecretLabs.NETMF.Hardware.NetduinoPlus 4.3.1.0
Found Assembly SecretLabs.NETMF.Hardware.NetduinoMini 4.3.1.0
Found Assembly NetduinoApplication1 1.0.0.0
Found Assembly SecretLabs.NETMF.Hardware.PWM 4.3.1.0
Found Assembly SecretLabs.NETMF.IO 4.3.1.0
Found Assembly SecretLabs.NETMF.Hardware.AnalogInput 4.3.1.0
Found Assembly SecretLabs.NETMF.Hardware 4.3.1.0
Adding pe file C:\Program Files (x86)\Secret Labs\Netduino SDK\Assemblies\v4.3\le\secretlabs.netmf.hardware.netduinoplus.pe to deployment bundle
Adding pe file C:\Program Files (x86)\Secret Labs\Netduino SDK\Assemblies\v4.3\le\secretlabs.netmf.hardware.netduinomini.pe to deployment bundle
Adding pe file C:\dev\TigerTools\Hardware Tools\NetduinoApplication1\NetduinoApplication1\bin\Debug\le\NetduinoApplication1.pe to deployment bundle
Adding pe file C:\Program Files (x86)\Secret Labs\Netduino SDK\Assemblies\v4.3\le\secretlabs.netmf.hardware.pwm.pe to deployment bundle
Adding pe file C:\Program Files (x86)\Secret Labs\Netduino SDK\Assemblies\v4.3\le\secretlabs.netmf.io.pe to deployment bundle
Adding pe file C:\Program Files (x86)\Secret Labs\Netduino SDK\Assemblies\v4.3\le\secretlabs.netmf.hardware.analoginput.pe to deployment bundle
Adding pe file C:\Program Files (x86)\Secret Labs\Netduino SDK\Assemblies\v4.3\le\secretlabs.netmf.hardware.pe to deployment bundle
Attempting deployment...
Incrementally deploying assemblies to device
All assemblies on the device are up to date.  No assembly deployment was necessary.
Assemblies successfully deployed to device.
Restarting interpreter...
Attaching to device...
Waiting for device to initialize...
The debugging target and the debugger engine failed to initialize because of unspecified device errors.
The debugger engine thread has terminated unexpectedly with error 'Object reference not set to an instance of an object.'.



#54489 BSOD

Posted by blackt1ger on 05 December 2013 - 02:57 PM in General Discussion

The bug is me, doing stupid things...

 

Actually, I'm fiddling with the A2D.  For some reason, I can only change the acquisition resolution on the first pin.  Well, I accidently deadlocked the Read..... :)

 

Is there some way to debug the HAL?

 

--Ken




#54481 BSOD

Posted by blackt1ger on 05 December 2013 - 03:49 AM in General Discussion

Well, I've got a pretty darn repeatable BSOD situation.  I remember earlier reading that they wished they could get a repeatable case.

 

Essentially it occurred when I deadlocked the STM in the HAL layer while debugging or attached via MFDeploy.  First, the system disconnects me saying it lost connection.  Then Netduino is dead.  I push-button restart it, and BLAMO - the BSOD.

 

I could probably tighten up the steps a bit, but a) my computer doesn't like the BSOD, B) it takes a reeaaaalllly long time to stabilize after rebooting, c) I keep losing points on my "system reliability", d) I'm afraid the WER is gonna tattle to Microsoft and they will revoke my Operating System license.

 

--Ken

 

 




#54462 Alternate systems for Netduino Plus 2

Posted by blackt1ger on 04 December 2013 - 12:57 PM in General Discussion

Well only that I've got 4.6 working.

I don't want to go to the 4.3 firmware yet, as I'm using VS2010.

 

Now, should I be using 4.7.2?

 

I had major pains getting the firmware built.  Of course, the problem was a flakey usb port.  But to go through another iteration of "it don't work" trial an error is not something I want to do.




#54452 Alternate systems for Netduino Plus 2

Posted by blackt1ger on 04 December 2013 - 06:09 AM in General Discussion

 

 ... I guess it should not be too hard to modify TinyBooter to launch either TinyCLR or your native STM application based on some flag, or implement a managed method that transfers execution to a particular address.

 

Thanks.  I'm okay with having to reflash to switch between systems.  The TinyBooter should just jump to a vector, anyway.  So, If I leave TinyBooter alone, all I really need to worry about is what goes at 0x08020000.  I'll check out WireProtocol.cpp.

 

I just finally got through to the OVP people.  They manually approve registrations and then you still got to wait for a FLEX license.  Even though it is free. I'll see if I can "clone" the boot sequence into an OVP platform.  Sigh - but it means setting up MINGW 1.0.  Never a good thing.  But I'll check it out, - ain't no reason why I couldn't use Yagarto 4.6......




#54437 Alternate systems for Netduino Plus 2

Posted by blackt1ger on 03 December 2013 - 09:42 PM in General Discussion

Okay, excuse my blasphemy, but I'm investigating putting FreeOS (or similar) on my Netduino and building a native app.  Yes, this would be a lot of work.....

 

The way this came about was a need to create/test/build a new STM32 based board.  I took stock of what I had laying around and noticed that the Netduino Plus 2 that I have fits the bill perfectly (well, almost).

 

What I like is there is not a lot of extra junk on the board (accelerometer, LED's, POT's, Kitchen Sinks, etc).  However, I don't want to totally toast the board from running the base MicroFramework.

 

I however, need to understand a few things about flashing.  First, I can DFUSE stuff and I can MFDeploy stuff successfully.  I've built firmware and used MFDeploy to push "BuildOutputTHUMB2GCC4.6leFLASHreleaseNetduinoPlus2bintinyclr.hex" 

 

What I need to understand are the underlying bits - what does DFUSE connect to?  I presume the BootLoader.  Does STM have their own bootloader?  What does MFDeploy connect to? 

 

And most importantly --- what should I NOT do, to keep everything running?  Ideally, I want to move from a Native STM app to a MicroFramework app and back.

 

I'm okay with reading docs, if someone can point me to something that is pertinent.  I don't want to start reading the STM FLASH programming guide and then realize that "Oh, Netduino does something a bit different....." after I totally brick my board, have to solder in the JTAG connector headers and buy the STLink cable.




#54390 Better analog input control

Posted by blackt1ger on 30 November 2013 - 03:22 AM in Netduino Plus 2 (and Netduino Plus 1)

Thanks Mark. 

Little did I know that amount of stress and stupidity I would apply to the problem.

 

Long story short, my USB cable to the Netduino was flakey and would only work intermittently.  I changed cables and ports and all is well.

 

However stupidity kicked in:

 

I made sure I got the correct Yagarto, being very careful to browse to the "older" version.  However, SourceForge in it's infinite wisdom ensure that the "current" version is listed first and highlighted - so I got the wrong gcc build, which totally occupied several hours of my day trying to figure out why it didn't work.

 

My first flash didn't work and I was sure I bricked the board.  I was soo afraid of doing that.  However, once I knew that the board was not working, it sorta relieved my stress for trying different things.

 

DfuSe Demonostrator constantly crashes (mostly when doing 'reads', and I was using 3.03.  However, when trying to downgrade to the 3.02, it wouldn't work at all.  So, now I'm back to the 3.03.

 

I pulled the 4.2.2.2 DFU and tried to flash that.  It would sometimes work and be seen by MFDeploy, but rarely twice in a row.  After my first successful operation with MFDeploy, it would not reconnect for anything.  I would have to either reflash, reboot, or un-plug/re-plug.

 

Finally, decided to change USB cables, the computer port and also remove all other USB devices ( I had two phones charging as well ).

Then, and only then I started to have success.

 

I've managed to reduce the precision of the analog line from 12 to 6 (or so .NET reports it as such)  But seeing the same time latencies.  I'll have to work at it a bit.  I'm probably going to do a lot of work on the analog channels - and do a bunch of reading.

 

But, it is nice to know I can change the firmware a bit, by actually having done it, as opposed to reading that it can be done.

 

However, here's a question:  Is there any place to commit changes?




#54363 Better analog input control

Posted by blackt1ger on 28 November 2013 - 11:48 PM in Netduino Plus 2 (and Netduino Plus 1)

I was wondering if a cheap oscope could be made from the Netduino+2 that I have. 

 

From my understanding at looking at the code, the AnalogPort read function blocks until it finishes acquisition in the full 12-bit mode.  I've timed this to roughly 70us per read which would only give me a less than 14Khz frequency, if I only used 1 channel.

 

The ST manual indicates that a smaller resolution would reduce the read time and that a continuous read is possible.

 

Would if be feasible to modify the Firmware 4.2.2 to a) reduce the analog precision, B) make the analog precision variable, and/or c) support a continuous read capability?

 

I'm new to ST (and ARM) but I think I could have a go at it.

 

Is there a good way to compile the firmware on a Win7 box?




#54362 Does any one needs CAN Bus on Netduino?

Posted by blackt1ger on 28 November 2013 - 11:35 PM in Netduino Plus 2 (and Netduino Plus 1)

 

 If so,i can port it from my board to Netduino,and here's the sample code how to use the CAN bus in .Net Micro Framework.

 

 

 

 

I'm interested.  Let me know.  I'm still on the 4.2.2 firmware, would it just be a patch to that?





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.