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

Usage of I2C on ST_NUCLEO64_F091RC causes execution fail on startup #626

Closed
KiwiBryn opened this issue Jun 17, 2020 · 0 comments · Fixed by nanoframework/nf-interpreter#1677

Comments

@KiwiBryn
Copy link

KiwiBryn commented Jun 17, 2020

Details about Problem

Target: ST_NUCLEO64_F091RC

Firmware image version: 1.5.0-preview.1

Device Capabilities:

System Information
HAL build info: nanoCLR running @ ST_NUCLEO64_F091RC
Target: ST_NUCLEO64_F091RC
Platform: STM32F0

Firmware build Info:
Date: Jun 9 2020
Type: MinSizeRel build with ChibiOS v19.1.4.1
Version: 1.5.0.1
Compiler: GNU ARM GCC v5.4.1

OEM Product codes (vendor, model, SKU): 0, 0, 0

Serial Numbers (module, system):
00000000000000000000000000000000
0000000000000000

AppDomains:

Assemblies:
I2cTestHarness, 1.0.0.0
mscorlib, 1.7.3.5
nanoFramework.Runtime.Events, 1.8.0.3
Windows.Devices.Gpio, 1.5.1.0
Windows.Devices.I2c, 1.4.0.3

Native Assemblies:
mscorlib v100.4.10.0, checksum 0x9D93AC29
nanoFramework.Runtime.Native v100.0.8.0, checksum 0x2307A8F3
nanoFramework.Hardware.Stm32 v100.0.4.4, checksum 0xE171FDE1
nanoFramework.Runtime.Events v100.0.7.1, checksum 0x0EAB00C9
EventSink v1.0.0.0, checksum 0xF32F4C3E
Windows.Devices.Gpio v100.1.2.2, checksum 0xC41539BE
Windows.Devices.I2c v100.2.0.2, checksum 0x79EDBF71
Windows.Devices.Pwm v100.1.3.3, checksum 0xBA2E2251
Windows.Devices.SerialCommunication v100.1.1.1, checksum 0x82260711
Windows.Devices.Spi v100.1.4.1, checksum 0x59B5BFC3

++++++++++++++++++++++++++++++++
++ Memory Map ++
++++++++++++++++++++++++++++++++
Type Start Size
++++++++++++++++++++++++++++++++
RAM 0x20000000 0x00008000
FLASH 0x08000000 0x00040000

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++ Flash Sector Map ++
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Region Start Blocks Bytes/Block Usage
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
0 0x08000000 5 0x000800 nanoBooter
1 0x08002800 79 0x000800 nanoCLR
2 0x0802A000 44 0x000800 Deployment

+++++++++++++++++++++++++++++++++++++++++++++++++++
++ Storage Usage Map ++
+++++++++++++++++++++++++++++++++++++++++++++++++++
Start Size (kB) Usage
+++++++++++++++++++++++++++++++++++++++++++++++++++
0x08000000 0x002800 (10kB) nanoBooter
0x08002800 0x027800 (158kB) nanoCLR
0x0802A000 0x016000 (88kB) Deployment

Deployment Map

Description

including any calls to I2C functionality on ST_NUCLEO64_F091RC causes program to not run.

Detailed repro steps so we can see the same problem

  1. Run provided code in debugger LED flashes

  2. Stop program (can start/stop many times)

  3. Un-comment Debug.WriteLine(I2cDevice.GetDeviceSelector());

  4. Run program, doesn't appear to start

Other suggested things

Sample code attached

Expected behaviour

Should be able to start/stop program multiple times

Screenshot

Additional context

Program.zip
ST_NUCLEO64_F091RCI2C.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants