Cannot run code: possibly node version issue?
Hi!
I am trying to program an STM32WL custom board from a Raspberry Pi 4B+, and your code seems very promising to that end.
However, I cannot get your code to build/run. I have tried with node versions 8, 9, and 10 with varying results, I can usually only go as far as a "Could not locate the bindings file" error when trying to run the example code. This seems to be due to multiple errors when building the dependencies (the biggest offenders seem to be node-wiring-pi and serialport for some reason).
I know this is a long shot, but do you happen to remember on which version of node you ran this code?
Do you have a newer version of this code you are using somewhere, or do you happen to know an alternative that works on Raspberry Pi to flash an STM32 through UART?
Thanks a lot!
I don't sorry it's been a long time. Hope you can glean something from the code and it helps in someway.
Hi!
I am trying to program an STM32WL custom board from a Raspberry Pi 4B+, and your code seems very promising to that end.
However, I cannot get your code to build/run. I have tried with node versions 8, 9, and 10 with varying results, I can usually only go as far as a "Could not locate the bindings file" error when trying to run the example code. This seems to be due to multiple errors when building the dependencies (the biggest offenders seem to be node-wiring-pi and serialport for some reason).
I know this is a long shot, but do you happen to remember on which version of node you ran this code?
Do you have a newer version of this code you are using somewhere, or do you happen to know an alternative that works on Raspberry Pi to flash an STM32 through UART?
Thanks a lot!
Did did you manage to solve the issue?
@ShahinHaque97 I didn't, however, I found that the stm32flash source code could be modified to handle STM32WL series MCUs.
The file dev_table.c contains the settings for each MCU, but the line for STM32WL is empty and commented.
I did some digging in multiple STM32 documents to find what seems to be appropriate settings (at least, it allows me to flash). The line is the following:
{0x497, "STM32WLE5xx/WL55xx", 0x20002000, 0x20010000, 0x08000000, 0x08040000, 4, p_2k , 0x1FFF7800, 0x1FFF7FFF, 0x1FFF0000, 0x1FFF7000, 0},
But I cannot guarantee that these are all correct.
Then you can recompile the utility and use it on a Raspberry Pi.
Hope that helps, Nara