Skip to content

NUCLEO_L4R5ZI #284

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

Closed
Lannakin opened this issue Jul 24, 2018 · 5 comments
Closed

NUCLEO_L4R5ZI #284

Lannakin opened this issue Jul 24, 2018 · 5 comments
Assignees
Labels
new variant Add support of new bard

Comments

@Lannakin
Copy link
Contributor

Note that the variant files I've worked on aren't working yet, probably because I'm a total newbie and essentially have no clue what I'm doing. I can almost completely guarantee that foolish errors will be present in any code I've touched.

Some blank space formatting will probably still be really inconsistent due to my inexperience and working on these from 2 different computers with different operating systems and just plain carelessness.

https://github.com/Lannakin/STM32-variants

@fpistm fpistm self-assigned this Jul 24, 2018
@fpistm fpistm added the new variant Add support of new bard label Jul 24, 2018
fpistm pushed a commit to fpistm/Arduino_Core_STM32 that referenced this issue Jul 26, 2018
Based on stm32duino#284 from @Lannakin

Signed-off-by: Lann <[email protected]>
Signed-off-by: Frederic.Pillon <[email protected]>
@fpistm
Copy link
Member

fpistm commented Jul 26, 2018

Hi @Lannakin,
Thanks for your work, I've made a PR based on your work.
Feel free to comment/tests.
I've only updated the clock config and fix the analog pins descriptions.
I've also added the Nucleo-L4R5ZI-P board as it is very closed.

I've tested several basics features:
I/O, Serial, ADC, SPI, I2C, RTC, Low Power

fpistm pushed a commit to fpistm/Arduino_Core_STM32 that referenced this issue Jul 26, 2018
Based on stm32duino#284 from @Lannakin

Signed-off-by: Lann <[email protected]>
Signed-off-by: Frederic.Pillon <[email protected]>
@Lannakin
Copy link
Contributor Author

Received this error:

/tmp/arduino_build_521423/core/core.a(uart.c.o): In function uart_init': uart.c:(.text.uart_init+0x14c): undefined reference to HAL_UARTEx_EnableClockStopMode'
uart.c:(.text.uart_init+0x2b8): undefined reference to `HAL_UARTEx_DisableClockStopMode'
collect2: error: ld returned 1 exit status

via compiling this:
`#include <Wire.h>
#include <LiquidCrystal_PCF8574.h>

LiquidCrystal_PCF8574 lcd(0x27); // set the LCD address to 0x27 for a 16 chars and 2 line display

int show;

void setup()
{
int error;

Serial.begin(115200);
Serial.println("LCD...");

while (! Serial);

Serial.println("Dose: check for LCD");

// See http://playground.arduino.cc/Main/I2cScanner
Wire.begin();
Wire.beginTransmission(0x27);
error = Wire.endTransmission();
Serial.print("Error: ");
Serial.print(error);

if (error == 0) {
Serial.println(": LCD found.");

} else {
Serial.println(": LCD not found.");
} // if

lcd.begin(16, 2); // initialize the lcd
show = 0;
} // setup()

void loop()
{
if (show == 0) {
lcd.setBacklight(255);
lcd.home(); lcd.clear();
lcd.print("Hello LCD");
delay(1000);

lcd.setBacklight(0);
delay(400);
lcd.setBacklight(255);

} else if (show == 1) {
lcd.clear();
lcd.print("Cursor On");
lcd.cursor();

} else if (show == 2) {
lcd.clear();
lcd.print("Cursor Blink");
lcd.blink();

} else if (show == 3) {
lcd.clear();
lcd.print("Cursor OFF");
lcd.noBlink();
lcd.noCursor();

} else if (show == 4) {
lcd.clear();
lcd.print("Display Off");
lcd.noDisplay();

} else if (show == 5) {
lcd.clear();
lcd.print("Display On");
lcd.display();

} else if (show == 7) {
lcd.clear();
lcd.setCursor(0, 0);
lcd.print("*** first line.");
lcd.setCursor(0, 1);
lcd.print("*** second line.");

} else if (show == 8) {
lcd.scrollDisplayLeft();
} else if (show == 9) {
lcd.scrollDisplayLeft();
} else if (show == 10) {
lcd.scrollDisplayLeft();
} else if (show == 11) {
lcd.scrollDisplayRight();
} // if

delay(2000);
show = (show + 1) % 12;
} // loop()`

Here's the library that's from.

If I get a chance tomorrow, I'll through my files and make sure I updated everything correctly, as well as look at what all you did and learn some stuff. I am apparently in the process of getting sick so I actually don't know for sure if I updated all of my files or even if I'm currently typing actual words or sentences.

I did check to see if anyone else mentioned this error both here and on the forums. Didn't find anything, but will admit that I might have been too lazy about it since I'm feeling feverish :)

@fpistm
Copy link
Member

fpistm commented Jul 27, 2018

It is fixed in the master based on your feedback.
See #280
3c66de7

@Lannakin
Copy link
Contributor Author

If it's helpful and useful, I can work on making parts of the other variants. As I've demonstrated, I don't know too much about what I'm doing and I'll probably leave a trail of errors in my wake, but it might help me learn more. I wouldn't be able to really test anything since I've only got the Nucleos L432KC, L4R5ZI, and F446RE, but if it's a bigger help than a burden for me to put together the contents for the variant files, I'd love to pitch a hand.

@fpistm
Copy link
Member

fpistm commented Aug 1, 2018

Up to you to contribute, thanks ;)
#285 merged

@fpistm fpistm closed this as completed Aug 1, 2018
xC0000005 pushed a commit to xC0000005/Arduino_Core_STM32 that referenced this issue Nov 27, 2018
Based on stm32duino#284 from @Lannakin

Signed-off-by: Lann <[email protected]>
Signed-off-by: Frederic.Pillon <[email protected]>
benwaffle pushed a commit to benwaffle/Arduino_Core_STM32 that referenced this issue Apr 10, 2019
Based on stm32duino#284 from @Lannakin

Signed-off-by: Lann <[email protected]>
Signed-off-by: Frederic.Pillon <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new variant Add support of new bard
Projects
None yet
Development

No branches or pull requests

2 participants