larsbrinkhoff / xForth

Experimental Forth cross compiler for tiny devices
GNU General Public License v3.0
61 stars 13 forks source link

Test the Nucleo STM32 board #25

Closed larsbrinkhoff closed 6 years ago

larsbrinkhoff commented 6 years ago

It's an STM32L011K4T6 device on an STM Nucleo-32 L011K4 board.

MCU datasheet:
http://www.st.com/content/ccc/resource/technical/document/datasheet/42/c0/ab/e5/71/7a/47/0b/DM00206508.pdf/files/DM00206508.pdf/jcr:content/translations/en.DM00206508.pdf
Product line reference manual:
http://www.st.com/content/ccc/resource/technical/document/reference_manual/21/bd/0f/bd/1c/88/40/f0/DM00108282.pdf/files/DM00108282.pdf/jcr:content/translations/en.DM00108282.pdf

Board user manual:
http://www.st.com/content/ccc/resource/technical/document/user_manual/e3/0e/88/05/e8/74/43/a0/DM00231744.pdf/files/DM00231744.pdf/jcr:content/translations/en.DM00231744.pdf

larsbrinkhoff commented 6 years ago

About the LED.

User LD3: the green LED is a user LED connected to Arduino Nano signal D13 corresponding to the STM32 I/O PB3 (pin 26). Refer to Table 8, Tabe 9, Table 10, Table 11 and Table 12 for concerned STM32: • When the I/O is HIGH value, the LED is on • When the I/O is LOW, the LED is of

larsbrinkhoff commented 6 years ago

Is there something special about Port B that makes everyone chose it for the user LED?

larsbrinkhoff commented 6 years ago

Works.

Just have to make the flash start address a parameter. It's 0 in the generic Cortex-M0 reference manual, but hex 8000000 on an STM32L011.