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

IAR compiler & LED don't blink


  • Please log in to reply
6 replies to this topic

#1 bane

bane

    New Member

  • Members
  • Pip
  • 5 posts

Posted 06 December 2011 - 10:20 AM

Hi, netduino community, I got a netduino plus board and I have some problems. I removed .NETMF from netduino because i want to use IAR compiler ( C language ) to generate .bin file which i download on the board using SAM-BA. And there is a problem. I try to make my led blinking, but it doesn't work. When i rebuild my project, compiler don't report any errors. I used at91sam7x-ek example, which I modify because of LED on different pin. Can I even use IAR compiler or i need to exactly use .NETMF ? Can anyone help me, please?

#2 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 07 December 2011 - 01:49 AM

Hi bane, You can certainly erase your Netduino and deploy native firmware. IAR should work fine. What pin # are you trying to use to illuminate the LED? Chris

#3 bane

bane

    New Member

  • Members
  • Pip
  • 5 posts

Posted 07 December 2011 - 09:06 AM

Hi bane,

You can certainly erase your Netduino and deploy native firmware. IAR should work fine. What pin # are you trying to use to illuminate the LED?

Chris


Hi Chris,

Well, I use pin PB23 to illuminate the LED. In attachment there is SAM-BA window, which I used for downloading of .bin file.
After downloading of .bin file i reconnect cable, but my led still doesn't blinking.

Bane

Attached Files



#4 CW2

CW2

    Advanced Member

  • Members
  • PipPipPip
  • 1592 posts
  • LocationCzech Republic

Posted 07 December 2011 - 10:14 AM

After downloading of .bin file i reconnect cable, but my led still doesn't blinking.

Have you executed "Boot from Flash (GPNVM2)" script (the 'Execute' button)? You need to set GPNVM2 bit to boot from flash, otherwise the board boots from ROM and SAM-BA is being executed again.

#5 bane

bane

    New Member

  • Members
  • Pip
  • 5 posts

Posted 07 December 2011 - 04:23 PM

Hi CW2, Yes, i haven't executed GPNVM2 script, so this was main problem why my led wasn't blinking. Thanks a lot. But now after this it happend something strange. After executed GPNVM2 script everything work fine ( my led is blinking ) but when i reconnect cable i recive message: USB Device Not Recognized and in Device Manager/Ports i can't see any more AT91 USB to serial Converter. My LED is still blinking and work fine but my computer do not recognize netduino attached to computer. Is this normal? In attachment there is error message i recive when reconnect cable. Bane

Attached Files



#6 CW2

CW2

    Advanced Member

  • Members
  • PipPipPip
  • 1592 posts
  • LocationCzech Republic

Posted 07 December 2011 - 05:14 PM

USB Device Not Recognized and in Device Manager/Ports i can't see any more AT91 USB to serial Converter. My LED is still blinking and work fine but my computer do not recognize netduino attached to computer. Is this normal?

Yes, this is normal - you'd need to either implement a USB device in your code (e.g. use one of USB sample projects from the AT91SAM7X-EK software package), or perform full erase so the board boots to SAM-BA, which enumerates as USB virtual serial port. In neither case the board will be detected as Netduino, you'd have to flash the Netduino firmware for that.

#7 Geancarlo

Geancarlo

    Member

  • Members
  • PipPip
  • 24 posts

Posted 07 December 2011 - 05:14 PM

That's normal..if you erase it again Windows and SAM-BA will detect it as usual.




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.