I’m adding stuff to a Project, and I did a build to check that what I have so far builds OK.
I knew that I’d referenced a function that I haven’t written yet - so I expected an “undefined reference” error.
But the ‘Problems’ View showed “0 items”
When I checked in the ‘Console’ view, the error was there - as expected:
So why did that not appear in the ‘Problems’ view?!
Does this mean that the ‘Problems’ view cannot be trusted?
I just made a quick try, and I have the same issue: it’s true that’s confusing to have an unsuccessful build without errors reported visually on the project explorer!
By the way, about the task table management, do you know the Code generation feature?
By right-clicking on your project > Open AT > Generate Code, it opens a specific editor where you can setup your task table, and it generates the code for you…
No - I had just clicked on a Project that was not the Active project!
The message could be clearer, though; eg,
But, even when I do it on the Active project, I just get a blank form.
Does this mean that it can’t be used to update an existing project that was started “manually”?
Well, yes and no…
It doesn’t parse existing code to extract Task Table information.
But you can browse to point on your existing functions in order to generate a new Task Table (and don’t forget to delete the old one, to avoid a “multiply defined link” error).
I don’t find it immediately obvious how to “enable the task table”; when I see a button labelled ‘Generate Task Table’, I take that to mean that pressing it will cause a Task Table to be generated.
If its function is to enable the GUI facility, it should say that.
There is also an ambiguity about whether “the task table” refers to the list in the GUI, or the table (array) that is generated in the source code…
Ah - there’s the catch: I didn’t want to add a newtask, so I didn’t consider the ‘newtask’ button!
The secret of really good GUI design is to make it really clear and obvious what each element of the GUI does, while at the same time not getting too verbose and/or cluttered as to obscure things!
But why can’t it just find the existing Task Table? It has to be called adl_InitTasks - so it should be easy to find!
Similarly for the Interrupt Handler stack sizes, wm_apmIRQLowLevelStackSize and wm_apmIRQHighLevelStackSize
Maybe a ‘Search’ button could be added to the form to find potential entries for all the GUI tables, and the user could then choose which one(s) to use…?
Back to the original subject of Linker Messages, I think it would be helpful if Linker messages were somehow distinguished from Compiler messages in the ‘Problems’ view…
Small addition to my answer in the other topic: in the Configure Contents… dialog of the Problems View, you can define new configurations, e.g. to list only “undefined reference” problems.