hii... i am using STMM32L053 chip in keil uvision 5 and i am new to it.
Can i run a simple program for data transmission (USART).. using a simulator...? i configured the pins and USART using STM32Cubemx software. will this code work..->
/* HAL_UART_Transmit((UART_HandleTypeDef *)&huart2, (uint8_t *)"k", 1, 5000); */
they provide the option for using simulator under options->debug i selected those..but received a problem..->
*** error 65: access violation at 0x40021000 : no 'read' permission
i assigned the memory map...and the program is running.. but still there ain't a output..!!
Please provide a solution for this...
(uint8_t *)"k"
I doubt that is what you want to do.
Scrub that.
Must've been spending too much time away at sea drinking the sea water again :(
those reply didn't help me though
The STM32L053 isn't listed in the Chips Supported page:
http://www.keil.com/dd/
the same code worked with the hardware using nucleo board but doesn't support any simulation.... awesome.!! thanks for the info anyway...
The compiler can support much more chips than the simulator can.
It's trivial to get the compiler - thanks to a custom header file - to produce code that reads or writes values to chip-specific special-function registers. But it takes huge amounts of inside knowledge about that specific chip to get the simulator to know what to do when you write to the registers - and what magical actions to perform to produce the data you should see when you read from the registers.
So focus should always be to try to get access to a real chip - and some proper debug adapter - as quickly as possible. If you want a new car, the best way to know if you will like it is to test-drive it. Who can make a web page or computer game where you can simulate the car well enough that it will be just as driving the real car - complete with vibrations, sounds, smells etc?
Lots of algorithms can be tested with the simulator even if the simulator can't simulate your specific chip. In the end, it is an advantage if the program has as few source code files (containing as few lines of code as possible) that are chip-specific.
also refer to "Simulation of Cortex-M Devices with MDK-5": http://www.keil.com/support/docs/3726.htm