Keil Linker question for STM32F4 discovery board
Posted: Sat Nov 30, 2013 6:25 pm
Hi all
New to the forum, new to ChibiOS.
First off I am still at the "My first blinking LED level" so please be kind.
(I noticed there are some rough guys on the Keil forum.)
I have done a lot of high level C# programming, though, and wanted to go down to the functional LED level.
I thought using the ChbiOS would be a good way to start with some good init code and functions that are already available.
I looked through both of the ChibiOS and Keil forums and did not find an answer to my problem.
Here it is:
I followed the
"How-To: Cortex-M4 (STM32F4xx) + ChibiOS/RT + Keil uVision" instructions by Dmitri Gorokh
(thank you very much) and after fixing a few missing files I am down to one error message that I don't get:
".\Template.axf: Error: L6218E: Undefined symbol Image$$RW_IRAM2$$Base (referred from chmemcore.o)."
I realize that is has to do with the second part Linker pre-processor line:
__heap_base__=Image$$RW_IRAM1$$ZI$$Limit __heap_end__=Image$$RW_IRAM2$$Base
Two funny things I noticed, but can't explain:
First I thought there might be a typo with the Ram and I changed the second part to "IRAM1", that does compile and LINK, but what does it do?
Second: The ChibiOS examples have the statement above (with IRAM2) and work.... so it's not a typo.
Not sure what I am missing.
Thanks a lot for your help!!!!!
While I am at it: I am planning to use the STM32F4 discovery board.
I am also unsure if I need to buy an ST-LINK/V2, since some of the specs say "built in STLINK"...
Then I find other articles that say that this is only to program other chips, so the Discovery board
becomes the ST Link for those.
Last not least I cannot find one article that clearly shows how to connect the STM32F4 discovery board to the ST-Link/V2.
Odd..
New to the forum, new to ChibiOS.
First off I am still at the "My first blinking LED level" so please be kind.
(I noticed there are some rough guys on the Keil forum.)
I have done a lot of high level C# programming, though, and wanted to go down to the functional LED level.
I thought using the ChbiOS would be a good way to start with some good init code and functions that are already available.
I looked through both of the ChibiOS and Keil forums and did not find an answer to my problem.
Here it is:
I followed the
"How-To: Cortex-M4 (STM32F4xx) + ChibiOS/RT + Keil uVision" instructions by Dmitri Gorokh
(thank you very much) and after fixing a few missing files I am down to one error message that I don't get:
".\Template.axf: Error: L6218E: Undefined symbol Image$$RW_IRAM2$$Base (referred from chmemcore.o)."
I realize that is has to do with the second part Linker pre-processor line:
__heap_base__=Image$$RW_IRAM1$$ZI$$Limit __heap_end__=Image$$RW_IRAM2$$Base
Two funny things I noticed, but can't explain:
First I thought there might be a typo with the Ram and I changed the second part to "IRAM1", that does compile and LINK, but what does it do?
Second: The ChibiOS examples have the statement above (with IRAM2) and work.... so it's not a typo.
Not sure what I am missing.
Thanks a lot for your help!!!!!
While I am at it: I am planning to use the STM32F4 discovery board.
I am also unsure if I need to buy an ST-LINK/V2, since some of the specs say "built in STLINK"...
Then I find other articles that say that this is only to program other chips, so the Discovery board
becomes the ST Link for those.
Last not least I cannot find one article that clearly shows how to connect the STM32F4 discovery board to the ST-Link/V2.
Odd..