2023-01-29 12:36 PM
I've a bunch of issues with STM32CubeIDE.
To repeat the "Deleted Source Files" issue in STM32CubeIDE, running on a Mac M2 or Intel (not a Rosetta issue) under MacOS Ventura 13.x. STM32U5 board. Do the following:
File->Import... General:Import STM32Cube Example
Name: Nx_MQTT_Client
Pick Name=Nx_MQTT_Client / Board=B-U5851-IOT02A
Hit "Next" and create the new project by following the prompts.
Do a Project->Build Project (which should succeed even if WiFi info not supplied as per readme).
Since I know what's going to happen next, copy the following files from the newly installed project, perhaps using the following terminal command:
cp ~/STM32CubeIDE/workspace_1.11.0/Nx_MQTT_Client/Middlewares/ST/netxduo/common/src/{nx_ram_network_driver.c,nx_tcp_server_socket_driver_listen.c,nx_tcp_socket_driver_establish.c,nx_tcp_socket_driver_establish.c,nx_tcp_socket_driver_packet_receive.c,nx_udp_socket_driver_packet_receive.c} /tmp
(that's all on one line BTW).
Then do a "Project->Generate Code", followed by a "Project->Build Project". On my setup, the files I copied out to /tmp are now all missing and the "Build Project" fails. The command:
cp /tmp/{nx_ram_network_driver.c,nx_tcp_server_socket_driver_listen.c,nx_tcp_socket_driver_establish.c,nx_tcp_socket_driver_establish.c,nx_tcp_socket_driver_packet_receive.c,nx_udp_socket_driver_packet_receive.c} ~/STM32CubeIDE/workspace_1.11.0/Nx_MQTT_Client/Middlewares/ST/netxduo/common/src
restored the missing files and subsequent "Project->Build Project" succeed until the next "Project->Generate Code".
Any ideas what is causing the file deletion issue?
Solved! Go to Solution.
2023-02-20 06:27 AM
Hello @AShap.3
First let me thank you for having reported :smiling_face_with_smiling_eyes:
This problem is raised internally to be reviewed. I'll keep you posted with the updates.
Internal ticket number: 144381 (This is an internal tracking number and is not accessible or usable by customers).
Thanks for your contribution.
Semer.
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2023-02-20 06:27 AM
Hello @AShap.3
First let me thank you for having reported :smiling_face_with_smiling_eyes:
This problem is raised internally to be reviewed. I'll keep you posted with the updates.
Internal ticket number: 144381 (This is an internal tracking number and is not accessible or usable by customers).
Thanks for your contribution.
Semer.
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2023-02-20 07:57 PM
Thanks for picking this up. There was a spurious space in each of the shell commands (above). I fixed them.
Regards,
--Alen
2023-02-21 08:15 AM
(No... that does not fix the problem... it fixes my work-around report - which is UNIX specific)
2023-02-21 07:05 PM
Try to uncheck in the Cube "delete previously generated files when not re-generated"
2023-02-21 07:21 PM
Thanks for trying but... same problem :(
results in...