Closed dbrgn closed 7 years ago
:umbrella: The latest upstream changes (presumably #5) made this pull request unmergeable. Please resolve the merge conflicts.
@dbrgn this needs a rebase
Yep, it's conflicting :) That's easy to solve. But do you know what the problem is with the linking?
Ah, sorry. I totally missed your first comment. I'll take a look.
It seems that that specific symbol is in the libhal.a library, which aren't linking in the photon
crate. I'll add that library later today.
Looking at this further. That function seems to be part of the system API and requires to linking to a bunch of libraries: FreeRTOS, WICED, etc. So I'm not sure if this function is supposed to be called from normal user programs. @dbrgn How would you call this function from C/C++? I can't find it in the firmware reference documentation.
The example links fine if you use deviceId
instead of platformId
.
Ok, I guess I'll update the PR to exclude that function :)
It's fine to land this as it is. It would the task of a highel level abstraction to hide the HAL functions that aren't actually supposed to be exposed / used.
@dbrgn could you add deviceId example to the photon-quickstart template to make sure this works?
It would the task of a highel level abstraction to hide the HAL functions that aren't actually supposed to be exposed / used.
Fair enough.
@dbrgn could you add deviceId example to the photon-quickstart template to make sure this works?
Will do!
Thanks!
@homunkulus r+
:pushpin: Commit 179f8fb has been approved by japaric
:hourglass: Testing commit 179f8fb with merge 179f8fb...
:sunny: Test successful - status-travis Approved by: japaric Pushing 179f8fb82e1a3ba959532ae33ad59eb67f165cfc to master...
It generates successfully, but I couldn't get it to work. With this in a program:
...it doesn't link properly:
(
usbserial.rs
is the name of the example script.)@japaric any ideas? I don't know enough about embedded dev to be able to debug this :) Any pointers are appreciated.