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: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:
https://ww1.microchip.com/downloads/en/DeviceDoc/51658a.pdf
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:
https://www2.keil.com/mdk5/learn
Also see training materials from ST:
https://community.arm.com/developer/tools-software/tools/f/keil-forum/35918/not-able-to-see-variables-in-memory-window/109675#109675