Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix regions on F746ZG (#391) #392

Merged
merged 1 commit into from
Jul 17, 2017
Merged

Fix regions on F746ZG (#391) #392

merged 1 commit into from
Jul 17, 2017

Conversation

piwi1263
Copy link
Member

  • Block regions corrected
  • Memory regions corrected

Set GPIO API to true in cmake-variants, build in VS Code.
Performed a full erase and deploy of generated hex binaries.
Connected an external LED on PC10 to have a small VS17 solution make a blinky.

Signed-off-by: piwi1263 piwi1263@gmail.com

- Block regions corrected
- Memory regions corrected

Set GPIO API to true in cmake-variants, build in VS Code.
Performed a full erase and deploy of generated hex binaries.
Connected an external LED on PC10 to have a small VS17 solution make a blinky.

Signed-off-by: piwi1263 <piwi1263@gmail.com>
@nfbot
Copy link
Member

nfbot commented Jul 17, 2017

Hi @piwi1263,

I'm nanoFramework bot.
Thank you for your contribution!

A human will be reviewing it shortly. 😉

@CLAassistant
Copy link

CLAassistant commented Jul 17, 2017

CLA assistant check
All committers have signed the CLA.

@piwi1263
Copy link
Member Author

piwi1263 commented Jul 17, 2017

Although trivial but for completeness:

using System.Threading;
using Windows.Devices.Gpio;

namespace NFApp2
{
	public class Program
    {
        // For F4-Discovery -> Off board LED is on PB7 = 1 * 16 + 7 = 23 
        // For F769I-DISCO -> LED2_GREEN is on PJ5 = 9 * 16 + 5 = 149
        // For F746ZG-NUCLEO -> Off board LED is on PC10 = 2 * 16 + 10 = 42 
        private const int LED_PIN = 42;
        private const string NAME = "Chewbacca";

        // Set up the LED
        private static GpioPin LED;

        public static void Main()
        {
            var gpio = GpioController.GetDefault();
            LED = gpio.OpenPin(LED_PIN);
            LED.SetDriveMode(GpioPinDriveMode.Output);

            for (;;)
            {
                LED.Write(GpioPinValue.High);
                Thread.Sleep(100);
                LED.Write(GpioPinValue.Low);
                Thread.Sleep(100);
            }
        }
    }
}

image

Copy link
Member

@josesimoes josesimoes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All contributions matter, no matter how small they seem!!
Thank you very much. 😄

@josesimoes josesimoes merged commit c453001 into nanoframework:master Jul 17, 2017
@piwi1263 piwi1263 deleted the F7-Memory-Regions-Fixes branch July 17, 2017 14:35
NemesisXB added a commit to NemesisXB/nf-interpreter that referenced this pull request Sep 3, 2018
The single precision Truncate function in corlib math incorrectly returned the fractional part instead of the integral part.

Fix (issue nanoframework#392 reported in home repo)

Signed-off-by: NemesisXB <485436+NemesisXB@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants