cancel
Showing results for 
Search instead for 
Did you mean: 

CubeL4 Eval USB DEVICE CDC standalone - Truestudio 6

shingadaddy
Senior
Posted on November 25, 2016 at 19:43

Fails to compile:

..\..\..\..\..\..\..\..\Drivers\CMSIS\Device\ST\STM32L4xx\Include/stm32l476xx.h:185:30: fatal error: system_stm32l4xx.h: No such file or directory

compilation terminated.

I've seen this before - Another snipe hunt ensues.

Something about a folder or path name too long or some such. Move the package from downloads to root and it compiles.

4 REPLIES 4
shingadaddy
Senior
Posted on November 26, 2016 at 00:39

http://gcc.gnu.org/onlinedocs/cpp/Defined.html

The code present in cubel4 for CDC standalone where the clock choice can be made can be muddled up in Truestudio. Maybe others too.

This concept:

#if defined (USB_USE_LSE_MSI_CLOCK)

blah blah

#elif defined (USB_USE_HSE_CLOCK)

blah  blah....

Really blows Atollic Truestudios mind as far as how / what code it greys out / includes / compiles.

Probably something pedantic about the definition, macro and it having NOTHING really IN IT.

I changed both to #if 0/#endif. Seemed to make Atollic happy and gives me a little more confidence in what got compiled in.

shingadaddy
Senior
Posted on November 27, 2016 at 17:57

Also I now find if all things are SAVED, in the ''PROJECT'' and then REMOVE the project from TrueStudio or start a new Truestudio session, then IMPORT the existing project back into Truestudio, THEN things appear as you might expect..

FREE = you get what you pay for......

shingadaddy
Senior
Posted on November 29, 2016 at 20:30

Cause: Project Linked resources / files only scanned at IMPORT time. Linked resources (Folders) to blame since they are not actually IN the project. Might be able to avoid by using the option of COPY

FILES

PROJECTS TO

PROJECT

WORKSPACE in the ''import'' function of TrueStudio but I haven't confirmed that yet. I'll put it here if I get to it.

:

Yeah forget that - It certainly isn't doing what I thought ''COPY PROJECTS INTO WORKSPACE'' would mean. I took it literally. Silly me.

It'll be interesting to see what that DOES mean at some point. That will be ANOTHER interesting rtfm - AT SOME POINT.

shingadaddy
Senior
Posted on November 30, 2016 at 17:25

You can find a follow on and conclusion here if interested.:

[DEAD LINK /public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Flat.aspx?RootFolder=/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/HAL%20or%20SPL%20for%20USB&FolderCTID=0x01200200770978C69A1141439FE559EB459D7580009C4E14902C3CDE46A77F0FFD06506F5B&TopicsView=https://my.st.com/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/AllItems.aspx&currentviews=44]https://my.st.com/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Flat.aspx?RootFolder=%2fpublic%2fSTe2ecommunities%2fmcu%2fLists%2fcortex%5fmx%5fstm32%2fHAL%20or%20SPL%20for%20USB&FolderCTID=0x01200200770978C69A1141439FE559EB459D7580009C4E14902C3CDE46A77F0FFD06506F5B&TopicsView=https%3A%2F%2Fmy%2Est%2Ecom%2Fpublic%2FSTe2ecommunities%2Fmcu%2FLists%2Fcortex%5Fmx%5Fstm32%2FAllItems%2Easpx&currentviews=44