Arduino_core_stm32: Version 1.3.0 the Serial function is not compatible with V1.2.0

Created on 28 Jun 2018  路  7Comments  路  Source: stm32duino/Arduino_Core_STM32

In 1.2.0 I using the config "Serial interface: All(up to 10)"
In code I just using
Serial1.begin();
Serial6.begin();
like this.
But in 1.3.0, This not worked.

Question

All 7 comments

Hi @davidanger
Yes, as mentioned in the release note:
https://github.com/stm32duino/Arduino_Core_STM32/releases/tag/1.3.0
Serial menu has been reviewed, now the menu define only if Serial feature is enable and if default Serial instance is define.
So, by default, only the Serialx linked to Serial is instantiate.

If in your code Serial1 and Serial6 are not defined this is because they are not linked to default Serial instance.
You can define them like this on top of your sketch:

HardwareSerial Serial1(USART1);
HardwareSerial Serial6(USART6);

or add in a file named build_opt.h:
-DENABLE_HWSERIAL1 -DENABLE_HWSERIAL6

Thx @fpistm
I using your way the Serial problem looks solved.
BUT I can't verify the code EVEN Demo Blink!!!!
Here is my ERROR massage:

In file included from C:UsersSongAppDataLocalArduino15packagesSTM32hardwarestm321.3.0coresarduino/wiring.h:23:0,
from C:UsersSongAppDataLocalArduino15packagesSTM32hardwarestm321.3.0coresarduino/Arduino.h:32,
from sketchBlink.ino.cpp:1:
c:userssongappdatalocalarduino15packagesstm32toolsarm-none-eabi-gcc6-2017-q2-updatelibgccarm-none-eabi6.3.1includestdint.h:9:26: fatal error: stdint.h: No such file or directory
/# include_next
^
compilation terminated.
exit status 1

I'm Using NUCLEO-F411RE or What ever other board configuration.
But If I using 1.2.0 every thing is fine!
2018-06-29 15_24_08-m4_bl_pd _ arduino 1 8 5

I've reproduced your issue by deleting the:
arm-none-eabi-gcc/6-2017-q2-update/arm-none-eabi/include/stdint.h
This file is part of arm gcc toolchains and not linked to the core.
arm gcc package has not been changed between 1.3.0 and 1.2.0.
Could you check if the file exist?
Maybe the file is corrupted, issue during update process from 1.2.0 to 1.3.0?
I advice you to remove core and then reinstall it. Maybe armgcc package extraction had an issue...

Thanks @fpistm
I uninstall the core lib and reinstall again this solved!~
Before this I try to change version, it not work. But when I do uninstall and reinstall, it worked!~

Probably an issue during arm gcc archive extraction. Archive was good else you would have crc issue raised.

Note : Change version do not uninstall arm gcc toolchain as it is the same version. only uninstall remove it.
Can we close this issue ?

Thank you very much @fpistm , this can be closed.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kwastek picture kwastek  路  4Comments

davidanger picture davidanger  路  6Comments

pasindu-sandima picture pasindu-sandima  路  5Comments

romainreignier picture romainreignier  路  7Comments

zhaorui4142 picture zhaorui4142  路  4Comments