Can't get it working on win32 or win64
Opened this issue · 2 comments
The canal library is used on windows to access the hardware, but canal expects a serial number like ED000200. I found a serial number for the canalye but its 12 bytes and the canal dll accepts 8. I can't even run 8devs test program. Can I use 8dev firmware, or should I patch your to correct the serial number, etc. I really64. would like to use this on Windows, both 32 and
The STM32Cube firmware lib is now version 1.10.0, and requires that you enable stm32f00xx_hal_can_legacy.h . When I figure out the best way to do that I'll post it.
ok. I added the following to inc/stm3200xx_hal_conf.h.
#define HAL_CAN_LEGACY_MODULE_ENABLED
#ifdef HAL_CAN_LEGACY_MODULE_ENABLED
#include "stm32f0xx_hal_can_legacy.h"
#endif /* HAL_CAN_LEGACY_MODULE_ENABLED */
I commented out
#define HAL_CAN_MODULE_ENABLED
I also had to add \Legacy to the lib driver include path in the makefile. I had to build the legacy version of stm3200xx_hal_can.c manually because I didn't know what or where to update so it get built by make.
Now the device won't update via DFU, freezes at READ or ERASE. It appears as a boot loader device with the right driver.
I ended up having to download and install STM32CubeMX, then use it to download the STM32CubeF0 1.7.0 library.
For those on macOS, you'll have to run java -jar SetupSTM32CubeMX-5.2.1.exe
to install it due to recent macOS security features — use the .exe included in the CubeMX zip. The library was downloaded to:
/Users/{USERNAME}/.stm32cubemx/databases/DB.4.0.200/stm32cube_db_v40200.zip
Extract the zip to the canalyze-fw's lib folder you created and continue from there.
(I installed CubeMX and downloaded the 1.7.0 library with macOS — I compiled and flashed the canalyze firmware with Ubuntu 18.04)