AT91_GPIO.cpp - Netduino Plus 2 (and Netduino Plus 1) - Netduino Forums
   
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.
Photo

AT91_GPIO.cpp


  • Please log in to reply
6 replies to this topic

#1 BlueSky

BlueSky

    Member

  • Members
  • PipPip
  • 13 posts

Posted 07 September 2014 - 05:36 PM

Hi,

 

I’m using Netduino Plus board with firmware 4.1. 

 

I want to change the AT91_GPIO.cpp file but I have some questions about it.

 

I don’t know where this file is using! Is it using in porting board (firmware) or in SDK (for computer and etc)?

 

Has this change an affect on another files?

 

What steps are necessary to make this change?



#2 CW2

CW2

    Advanced Member

  • Members
  • PipPipPip
  • 1592 posts
  • LocationCzech Republic

Posted 07 September 2014 - 05:59 PM

It is in DeviceCode\Targets\Native\AT91\DeviceCode\AT91_GPIO folder. There are two versions: the original included in .NET Micro Framework Porting Kit and the one with Secret Labs modifications in the Netduino firmware source archive.
 

Has this change an affect on another files?

 

Well, it depends on the change. It is possible to change a C++ source file in a way that it does not affect the generated .obj file (e.g. adding a comment).

 

What steps are necessary to make this change?

 

Open the .cpp file in your favorite text editor...  :P

 

But I guess there is something else - what exactly do you want to achieve? Does it involve building the firmware?



#3 BlueSky

BlueSky

    Member

  • Members
  • PipPip
  • 13 posts

Posted 07 September 2014 - 07:34 PM

Hi CW2,

Always, Thanks for your helps! :) 

 

 

It is in DeviceCode\Targets\Native\AT91\DeviceCode\AT91_GPIO folder. There are two versions: the original included in .NET Micro Framework Porting Kit and the one with Secret Labs modifications in the Netduino firmware source archive.

 

This mean AT91_GPIO is using for firmware(porting kit) and using for SDK(secret labs), too?

 

 

Well, it depends on the change. It is possible to change a C++ source file in a way that it does not affect the generated .obj file (e.g. adding a comment).

 

Excuse me, I don’t know about .obj file! Can you explain about it?

 

 

Open the .cpp file in your favorite text editor...   :P

 

But I guess there is something else - what exactly do you want to achieve? Does it involve building the firmware?

 

Yes, I want to building a firmware for my hardware! ;) 

Can you help me, pleas? I don’t know where to start and which files should be changed!



#4 CW2

CW2

    Advanced Member

  • Members
  • PipPipPip
  • 1592 posts
  • LocationCzech Republic

Posted 07 September 2014 - 08:03 PM

This mean AT91_GPIO is using for firmware(porting kit) and using for SDK(secret labs), too?

 

Not really. There are four parts:

  1. .NET Micro Framework Porting Kit
  2. Netduino firmware source by Secret Labs
  3. .NET Micro Framework SDK
  4. Secret Labs SDK (for Netduino boards)

AT91_GPIO.cpp is in 1. and 2. - these two parts you need to build the Netuino firmware. Install the .NET MF Porting Kit, download Netduino Firmware source zip and extract it over Porting Kit, overwriting the files.

 

.NET MF SDK (3.) must be installed to have .NET MF project support in Visual Studio and you also need Secret Labs SDK (4.) to have assemblies (.dll) and project templates for Netduino.

 

Excuse me, I don’t know about .obj file! Can you explain about it?

 

C/C++ source file is compiled into OBJ file, which is then linked with the rest of OBJ files and libraries into final executable, in this particular case (microcontroller) the 'executable' is in ELF format, which is then transformed into HEX (resp. SREC) or BIN suitable for flashing.

 

I don’t know where to start and which files should be changed!

 

Try searching the forum and wiki for 'building firmware' or such, it has been discussed numerous times. You'd need the source code, an ARM Toolchain and a lot of patience - 4.1 is rather old...



#5 BlueSky

BlueSky

    Member

  • Members
  • PipPip
  • 13 posts

Posted 07 September 2014 - 08:47 PM

It is really excellent! :) 
 
Thanks for your perfect description!
 
I need to search about this case. so after that if I have a problem, I will ask it!
 
Thanks a lot for your help!


#6 BlueSky

BlueSky

    Member

  • Members
  • PipPip
  • 13 posts

Posted 27 September 2014 - 07:45 AM

Hi,

I come back! :) 

 

I think if I want to build my firmware for netduino plus board, in the first I should build its firmware (netduinofirmware4.1) and port it again as an assignment!

 

For this aim, I follow two ways:

 

1)  I used this link: http://forums.netdui... +vs2010 +stuck

? 

I’ve download software from the section of CW2’s guides, but when I run cmd, I have some errors like attachment1! This firmware doesn’t have some files so I’ve download netduinofirmware4.2  and copy the required files to their directories! But this way has some errors too and it’s not successfully! I decided to use a new firmware and the latest version of netduinofirmware4.1!

 

2)  So for using new firmware, I used the version 4.1.0.x of it from this link: http://netduino.code...eControl/latest

 

When I run cmd again, I have one error like attachment2!

In BuildOutput folder there is some files for porting board but I think these are not complete because it has an error and bin folder is empty,too!

after that, I tried netduinofirmware4.1.1.x, too! it has an error like attachment2!

 

I don’t know which way is true, The first one or second one! And I don’t know how can solve these errors, especially error MSB3073! Can you help me, please?

 

And I have a question about versions! We have to use same version of software? For example we have to use firmware4.1,pk4.1,etc?

Attached Files



#7 BlueSky

BlueSky

    Member

  • Members
  • PipPip
  • 13 posts

Posted 29 September 2014 - 08:09 PM

Hi, friends!

 

Is there anyone to help me, please?






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

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.