![]() This means it is all correct up untill here: if(i2c. One of those 2 as the serial monitor is showing the wrong thing. It seems that I am deciphering the data incorrectly, or displaying it incorrectly. I have scoped the data lines, and I can confirm that the SDA and SCL lines match that of the working Arduino code, so the majority of this is working. When I run my code, I get -1 read on all 3 axis. I have ran the Arduino code on the STM32 hardware and have managed to get the data displayed on a serial monitor. NUCLEO-F303K8 Affordable and flexible platform to ease prototyping using a STM32F303K8T6 microcontroller. I2c.write(addr, config, 1, false) // Read command, followed by ZYX bits set #include "mbed.h"Ĭonfig = 0x3E // Single measurement mode, ZYX enabled Pricing and Availability on millions of electronic components from Digi-Key Electronics. Going through both of these examples, I have attempted to decipher them and convert them for use in mbed and have come up with the following code:ĬODE UPDATED TO CURRENT VERSION USE. NUCLEO-F303K8 STM32F303K8, mbed-Enabled Development Nucleo-32 STM32F3 ARM® Cortex®-M4 MCU 32-Bit Embedded Evaluation Board from STMicroelectronics. I tried the same with the GitHub code, but was unsuccessful with that too. I have attempted to convert it for use with mbed but obviously I have not been successful. The ESP32 one is written for the Arduino, and I don't wan't to be stuck doing Arduino forever, so I'd rather not use that. The problem is, these are both examples for using different equipment. I have been able to find 2 elsewhere, one HERE from GitHub and one HERE for ESP32. I can't even find a library, although their quick start guide (can't find a link, it just auto downloads a PDF) claims there is one on the mbed site. I have looked on the mbed website for example codes to start out with and found none. Descriptions of STMicroelectronics NUCLEO-F303K8 provided by its distributors. ![]() The IDE I am using is mbed (it is free and I have used it before, and its not complicated, and doesn't require anything else other than a PC, Nucleo board and USB cable)įor now, all I want to do is be able to read the data. I am using a standard 16x2 serial LDC to display information. I am using a STM32F303K8 Nucleo board to communicate with the IC. I have read the I2C protocol many times to try and get my head around it and I believe I am starting to. However, I am really struggling with this. I have made sure to progress slowly (started by toggling LEDs, then writing to LCDs etc) and now want to try my hand at sensing. I am still a beginner when it comes to programming, and this is my first time trying to read data via I2C. More specifically, I am using the breakout board by Sparkfun. I am using the MLX90393 Magnetometer IC from Melexis. Supported by wide choice of Integrated Development Environments (IDEs) including IAR, Keil, GCC-based IDEs (AC6 SW4STM32.USB communication (LD1), power LED (LD2), user LED (LD3).On-board ST-LINK/V2-1 debugger/programmer with SWD connector:.Extension with Arduino nano connectivity Download schematic symbols, PCB footprints, pinout & datasheets for the NUCLEO-F303K8 by STMicroelectronics.STM32 microcontrollers in 32-pin packages. ![]() The S32 Nucleo-32 board provides an affordable and flexible way for users to try out new concepts and build prototypes with the S32 microcontroller, choosing from the various combinations of performance, power consumption and features.The Arduino nano connectivity makes it easy to expand the functionality of the S32 Nucleo open development platform with a choice of specialized shields.The S32 Nucleo-32 board does not require any separate probe as it integrates the ST-LINK/V2-1 debugger/programmer and it comes with the S32 comprehensive software HAL library, together with various packaged software examples, as well as direct access to the ARM mbed on-line resources. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |