2021-10-30 03:14 PM
Hi everyone ;
I am having a strange issue with IAR . I configured the mcu via cubemx and generated it then I build all the files but I got the errors in the attached files when I try to download the code into the MCU . But I don't get any issuse with the exact same configurations with KEIL . Where do I go wrong ? Any comment and approach would be appreciated so much .
Solved! Go to Solution.
2021-11-02 01:33 AM
Seems issue within the IAR and flash loader. Have you tried the latest IAR v8.5 ?
2021-10-30 05:28 PM
> I configured the mcu via cubemx and generated it then I build all the files but I got the errors in the attached files when I try to download the code into the MCU .
It looks like your main.c file is missing a signification portion of the code that should be in there. For example, a code to HAL_Init is missing. You really didn't modify it? Can you include your IOC file?
2021-10-31 12:06 AM
I don’t wanna use hal driver so I deleted the hal files and it compiles succesfully and it works with keil , but it gives this error with IAR
2021-10-31 07:36 AM
Not real sure, looks to be an IAR issue. Ensure ST-Link connectivity works with STM32CubeProgrammer. Maybe try running it before modifying any code.
2021-10-31 07:38 AM
I already tried the plain untouched cubemx generated code , it gives me the same error
2021-11-02 01:33 AM
Seems issue within the IAR and flash loader. Have you tried the latest IAR v8.5 ?
2021-11-02 11:00 AM
I will immediately try and inform you about the result
2021-11-02 11:30 AM
Yes It worked , I downloaded the latest version of IAR with kickstart edition it worked great ! Thanks !