-
Notifications
You must be signed in to change notification settings - Fork 966
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
Generic L151C8TxA - CDC does not compile #1451
Comments
Hi @toogooda I've fixed for the Arduino_Core_STM32/variants/STM32L1xx/L151RET_L152RET_L162RET/PeripheralPins.c Lines 241 to 243 in 0686e2d
But forgot the fix one you pointed. |
@fpistm Perfect :) I must say I am impressed that all the pins have now been pre generated I am now considering many other chips for prototyping, it doesn't look difficult to get new ones going. Keep up the good work, STM is becoming more relevant in the prototyping space! |
Using a fix to remove GPIO_AF10_USB from all L1 GPIO config files. Fixes stm32duino#1451 Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
Using a fix to remove GPIO_AF10_USB from all L1 GPIO config files. Fixes #1451 Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
Describe the bug
L151C8TxA does not compile if you chose any of the CDC options
This is the error message:
To Reproduce
The code is not relevant to this issues as a blank .ino fill not compile but here is is anyway:
Steps to reproduce the behavior:
Expected behavior
Compiles
Desktop (please complete the following information):
Board (please complete the following information):
RESOLUTION:
I have solved this with a hack but it needs to be fixed properly in the core:
In the following file :
C:\Users\User\AppData\Local\Arduino15\packages\STMicroelectronics\hardware\stm32\2.0.0\variants\STM32L1xx\L100C6Ux(A)_L151C(6-8-B)(T-U)x(A)_L152C(6-8-B)(T-U)x(A)\PeripheralPins.c
I changed:
I copied this from a working mcu (F103re) but had to replace AFIO_NONE which was undefined with 0 as it was undefined and I eventually found it was element 0 of an enum...
It now shows up as Com22 and works for Serial but I am sure there is a more eloquent permanent fix for the core.
Happy to help with testing if you make a core change.
The text was updated successfully, but these errors were encountered: