Simple GPIO problem
Hi,
I’ve just started working with system workbench and am having trouble getting a simple GPIO program working.
I’m using a Nucleo-L152RE and code is attached. Its basically a very slightly tweaked version of a helloworld example. It toggles pin3 portA.
Everything seems to build and run ok, but the GPIO voltage doesn’t change at all.
Any ideas what my problem is? I’m probably just being thick...
12:17:10 **** Incremental Build of configuration Release for project Test ****
make all
‘Building file: ../src/main.c’
‘Invoking: MCU GCC Compiler’
C:\Users\JamesB\workspace\Test\Release
arm-none-eabi-gcc -mcpu=cortex-m3 -mthumb -mfloat-abi=soft -DSTM32L1 -DSTM32L152RETx -DNUCLEO_L152RE -DSTM32 -DUSE_STDPERIPH_DRIVER -DSTM32L1XX_XL -I”C:/Users/JamesB/workspace/nucleo-l152re_stdperiph_lib” -I”C:/Users/JamesB/workspace/Test/inc” -I”C:/Users/JamesB/workspace/nucleo-l152re_stdperiph_lib/CMSIS/core” -I”C:/Users/JamesB/workspace/nucleo-l152re_stdperiph_lib/CMSIS/device” -I”C:/Users/JamesB/workspace/nucleo-l152re_stdperiph_lib/StdPeriph_Driver/inc” -I”C:/Users/JamesB/workspace/nucleo-l152re_stdperiph_lib/Utilities” -O3 -Wall -fmessage-length=0 -ffunction-sections -c -MMD -MP -MF”src/main.d” -MT”src/main.d” -o “src/main.o” “../src/main.c”
‘Finished building: ../src/main.c’
’ ’
‘Building target: Test.elf’
‘Invoking: MCU G++ Linker’
arm-none-eabi-g++ -mcpu=cortex-m3 -mthumb -mfloat-abi=soft -L”C:\Users\JamesB\workspace\nucleo-l152re_stdperiph_lib\Release” -T”C:\Users\JamesB\workspace\Test\LinkerScript.ld” -Wl,-Map=output.map -Wl,--gc-sections -fno-exceptions -fno-rtti -o “Test.elf” @”objects.list” -lnucleo-l152re_stdperiph_lib
‘Finished building target: Test.elf’
’ ’
make --no-print-directory post-build
‘Generating binary and Printing size information:’
arm-none-eabi-objcopy -O binary “Test.elf” “Test.bin” && arm-none-eabi-size -B “Test.elf”
text data bss dec hex filename
1696 1076 1568 4340 10f4 Test.elf
’ ’