I have Keil board, MCBSTM32F400. I want to do SPI communication with it, from a device thru ADC, and pass the data to the controller. Pl mention how can I hook the device to the board?
the device could be potentiometer, pressure or temperature transducer, etc.
Babuddin Ahmad said: I want to do SPI communication
Do you understand the basics of how SPI works ?
It's a very long-established and widely-used thing - so plenty of references available; eg,
etc, etc, ...
For getting started with SPI, I recommend one of these:
It's a simple SPI demo board, featuring a number of simple, common SPI slaves
Many thanks for your responses. I have the board as per the picture above. But how can I connect it to the MCBSTM32F400 board or some other board.
I put Blinky project in uVision IDE and compiled it for debug target. Why I am getting the below errors? Only two files are in project, main.c and Blinky.c. Why so many other files are compiled?
compiling EventRecorder.c...compiling stm32f4xx_hal.c...compiling stm32f4xx_hal_adc.c...compiling stm32f4xx_hal_adc_ex.c...compiling stm32f4xx_hal_dma.c...compiling stm32f4xx_hal_cortex.c...compiling stm32f4xx_hal_dma_ex.c...compiling stm32f4xx_hal_pwr.c...compiling stm32f4xx_hal_pwr_ex.c...compiling stm32f4xx_hal_gpio.c...assembling startup_stm32f407xx.s...compiling stm32f4xx_hal_rcc_ex.c...compiling stm32f4xx_hal_rcc.c...compiling system_stm32f4xx.c...linking....\Debug\Blinky.axf: error: L6047U: The size of this image (59988 bytes) exceeds the maximum allowed for this version of the linkerFinished: 0 information, 0 warning, 0 error and 1 fatal error messages.".\Debug\Blinky.axf" - 1 Error(s), 0 Warning(s).Target not created.Build Time Elapsed: 00:00:09
Babuddin Ahmad said:Why I am getting the below errors?
The answer is clearly stated:
Babuddin Ahmad said:The size of this image (59988 bytes) exceeds the maximum allowed for this version of the linker
Presumably, you are using the free "Lite" version - which has a restricted maximum size:
Babuddin Ahmad said:how can I connect it to the MCBSTM32F400 board or some other board
I think you need to spend some more time on the basics of SPI - see links above - the connections are standard.
And, of course, study the User Guides for both boards:
My curiosity is that Blinky project has only two files, main.c and Blinky.c. Why build picks so many files to compile and makes hex file more than 32K. Perhaps I am picking something extra from the Pack installer.
About 6 to 8 months ago. Blinky was built right in less than 32K. But Windows on my laptop got corrupted and had to be reinstalled. So I had to install other apps as well.
If you can point out where I am making mistake?
It will only build the files that are actually included in your Project - so we'd need to see your Project.
For a simple blinky, you should probably just need:
compiling stm32f4xx_hal.c...compiling stm32f4xx_hal_cortex.c...compiling stm32f4xx_hal_gpio.c...assembling startup_stm32f407xx.s...compiling stm32f4xx_hal_rcc_ex.c...compiling stm32f4xx_hal_rcc.c...compiling system_stm32f4xx.c...
You shouldn't need:
compiling EventRecorder.c...compiling stm32f4xx_hal_adc.c...compiling stm32f4xx_hal_adc_ex.c...compiling stm32f4xx_hal_dma.c...compiling stm32f4xx_hal_dma_ex.c...compiling stm32f4xx_hal_pwr.c...compiling stm32f4xx_hal_pwr_ex.c...
Should I use IDE uVision or IAR for working on the board?
You're seriously asking that in the Keil forum ?!
Hi Andy, As per your last response, I am providing Paint files having list of files in blinky project and the compile error I am getting are attached. I have LIte version. I am not getting file size error more than 32K, but a compile error. If I comment out line 157 in main.c, then I get other errors.
Sounds like you really need to start here:
Also see training materials from ST:
View all questions in Keil forum