Discussion:
[libopencm3-devel] stm32f105/7 ld files
k***@aspodata.se
2017-06-10 09:22:20 UTC
Permalink
ld files for stmf105/7 seems to be missing.

http://www.st.com/resource/en/datasheet/stm32f105r8.pdf p.10:
Flash memory in Kbytes 64 128 256
SRAM in Kbytes 64

lib/stm32/f1 doesn't contain any stm32f10[57]x?.ld files

and

$ fgrep 'stm32f10[57]' ld/devices.data
stm32f10[57]?b* stm32f1 ROM=128K RAM=64K
stm32f10[57]?c* stm32f1 ROM=256K RAM=64K

is missing the line:
stm32f10[57]?8* stm32f1 ROM=64K RAM=64K

Soo, should I provide a patch or what, and if so, how should the
identity of 105 and 107 (re. ld files) be handled in lib/stm32/f1 ?

Regards,
/Karl Hammar

-----------------------------------------------------------------------
Aspö Data
Lilla Aspö 148
S-742 94 Östhammar
Sweden
+46 173 140 57
Karl Palsson
2017-06-10 13:18:57 UTC
Permalink
A pull against devices.dataa would be fine.

The idea of having complete ld files for every part was kinda
unsustainable, as you can see from the size of the devices.data
file. You can use the template ld file and just have a simple
include like this though;

https://github.com/libopencm3/libopencm3-examples/blob/master/examples/stm32/f1/stm32vl-discovery/stm32vl-discovery.ld

You only need those two sections and the include for most parts.

Cheers,
Karl P
Post by k***@aspodata.se
ld files for stmf105/7 seems to be missing.
Flash memory in Kbytes 64 128 256 SRAM in Kbytes 64
lib/stm32/f1 doesn't contain any stm32f10[57]x?.ld files
and
$ fgrep 'stm32f10[57]' ld/devices.data
stm32f10[57]?b* stm32f1 ROM=128K RAM=64K
stm32f10[57]?c* stm32f1 ROM=256K RAM=64K
stm32f10[57]?8* stm32f1 ROM=64K RAM=64K
Soo, should I provide a patch or what, and if so, how should
the identity of 105 and 107 (re. ld files) be handled in
lib/stm32/f1 ?
Regards,
/Karl Hammar
-----------------------------------------------------------------------
Aspö Data
Lilla Aspö 148
S-742 94 Östhammar
Sweden
+46 173 140 57
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
libopencm3-devel mailing list
https://lists.sourceforge.net/lists/listinfo/libopencm3-devel
k***@aspodata.se
2017-06-10 14:57:07 UTC
Permalink
Post by Karl Palsson
A pull against devices.dataa would be fine.
...
...
Post by Karl Palsson
Post by k***@aspodata.se
$ fgrep 'stm32f10[57]' ld/devices.data
stm32f10[57]?b* stm32f1 ROM=128K RAM=64K
stm32f10[57]?c* stm32f1 ROM=256K RAM=64K
stm32f10[57]?8* stm32f1 ROM=64K RAM=64K
Is that something github special like https://developer.github.com/v3/pulls/,
or do you want me to setup a git repo which you can pull from ?

Regards,
/Karl Hammar

-----------------------------------------------------------------------
Aspö Data
Lilla Aspö 148
S-742 94 Östhammar
Sweden
+46 173 140 57
k***@aspodata.se
2017-06-17 17:36:21 UTC
Permalink
Post by Karl Palsson
A pull against devices.dataa would be fine.
...

Found https://help.github.com/articles/creating-a-pull-request/, but
since I don't have a github account, I cannot create it.

Patch attached instead.

Regards,
/Karl Hammar

-----------------------------------------------------------------------
Aspö Data
Lilla Aspö 148
S-742 94 Östhammar
Sweden
+46 173 140 57
Karl Palsson
2017-06-17 22:00:54 UTC
Permalink
http://www.st.com/en/microcontrollers/stm32f105-107.html?querycriteria=productId=LN1564 Doesn't have any F107x8.

I've added the f105x8, and also your other patch. They're both in
my staging branch now:
https://github.com/libopencm3/libopencm3/pull/769

Sincerely,
Karl P
Post by k***@aspodata.se
Post by Karl Palsson
A pull against devices.dataa would be fine.
...
Found
https://help.github.com/articles/creating-a-pull-request/, but
since I don't have a github account, I cannot create it.
Patch attached instead.
Regards,
/Karl Hammar
-----------------------------------------------------------------------
Aspö Data
Lilla Aspö 148
S-742 94 Östhammar
Sweden
+46 173 140 57
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org!
http://sdm.link/slashdot_______________________________________________
libopencm3-devel mailing list
https://lists.sourceforge.net/lists/listinfo/libopencm3-devel
Continue reading on narkive:
Loading...