Closed romychs closed 4 years ago
I think, it is CubeMX issue, not stm32pio...
Yea, I think so, too. Are you able to generate the code from the same configuration using the ordinary GUI version of CubeMX?
I think, it is CubeMX issue, not stm32pio...
I don't think so mate mine was perfectly fine I'm using manjaro
[john@t440s testing]$ stm32pio generate
INFO starting to generate a code from the CubeMX .ioc file...
INFO successful code generation
INFO exiting...
[john@t440s testing]$ tree
.
├── Inc
│ ├── gpio.h
│ ├── i2c.h
│ ├── main.h
│ ├── stm32f1xx_hal_conf.h
│ └── stm32f1xx_it.h
├── lib
│ └── README
├── platformio.ini
├── Src
│ ├── gpio.c
│ ├── i2c.c
│ ├── main.c
│ ├── stm32f1xx_hal_msp.c
│ ├── stm32f1xx_it.c
│ └── system_stm32f1xx.c
├── stm32pio.ini
├── test
│ └── README
├── testing.gpdsc
└── testing.ioc
Maybe some I2C config is not compatible with this setup
OK, I've been able to replicate this issue. This is indeed the stm32pio bug, but... CubeMX doesn't return any error code when it encounters the problem and just always returns 0. So there is a little bit hacky solution to detect when the real error has occurred and when not. Currently, I look for the ERROR
string to appear in the logs to mark the action as failed. Apparently, in your case ERROR is just a part of a normal process so this logic has failed. stm32pio sees it and interrupts the execution. Need to find out the other way of distinguishing the problems, probably the final OK
string is a good indicator. Need to be fixed.
Parsing behavior of CubeMX output is changed in the new version, close.
Thanks for the new release!
Have success with generation code for bluePill board with STM32F103C8T6, but after turning ON I2C 1 in Stm32CubeMX I am get error:
Env: LinuxMint 19, fresh platformio v 4.3.1, fresh Stm32CubeMX v 5.6.1, VS Code v1.44
TEnco.zip