2021-06-24 03:37 PM
Hi All,
I am new to CubeIDE, I've been playing around with it for a few days now, watching some stuff on YouTube, setting up a few modules in the CPU and making it do some basic things to get used to it all.
But from here on I'd like to be able to work in assembler for this small project I'm working on, yeah I know 'but why, just use C' ! ;)
Some of the IDE's I've used in the past have an explicit 'assembler only' option when starting a new project, STM32CubeIDE doesn't seem to, so how would I go about setting up a new project that essentially does nothing more than generate something like the 'startup_stm32xxx.s' file but then allows me to add in my own asm code?
Thanks.
2021-06-24 03:47 PM
Just generate a normal C project and delete the files you don't want.
2021-06-24 08:20 PM
Thanks TDK, is it that simple? Just delete all the 'c' files under 'SRC', remove any other references to them and then just add in my own *.s assembler files to the project?
2021-06-24 08:26 PM
2021-06-24 08:40 PM
Ok thanks, I'll give that a go.
2022-04-20 02:49 AM
Hello,
tried this, but I couldn't debug the project properly through assembly source code.
Does this works or is there any other catch to setup ?
Thanks,
regards.
2022-04-20 07:09 AM
Why couldn't you debug it? Yes, this works, I verified.