--
You received this message because you are subscribed to the Google Groups "NuttX" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nuttx+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nuttx/f871a5c1-f566-4b1a-ad64-928133d7b15d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
- The stm_can.c and stm_can.h are almost (some spaces are there or not) exactly the same as the stm32 port
- There is no stm32_can.c file in the configs/ for the stm32f7*
Does that mean that the port from stm32f4 to stm32f7 has never been done ?
Yes. So you would have to start with STM3 F4.
If we forget the potential memory error (because of the DMA) or a problem in the driver,
I still got the "can't open /dev/can0" error,
-- > the function "stm32_can_setup" (which should start the can pseudo-file) is not in System.map, is this normal ?
Yes…IF you don’t all it. You are probably not calling it because you are missing the configuration settings in the .config file.
Two choices:
(1) Initialize from NSH. Needs
CONFIG_LIB_BOARDCTL=y and
CONFIG_NSH_ARCHINIT=y
Or
(2) Initialized with a custom initialization thread:
CONFIG_LATE_INITIALIZE=y
-- > If it is normal, what can be the reason for the pseudo-file to not be created ?
Same answer
Greg
You should compare the STM32H7 CAN register with the definitions in arch/arm/src/stm32/hardware/stm32_can.h. I thik that the H7 CAN may be different from any other can driver. It is not a CANFD peripheral? I think that would require an all new, original CAN driver. But what do I know, I am not an H7 export.
You need to call the function stm32_can_setup() during the initialization.
BR,
Alan
On 7/18/19, Clancys74 <menoui...@gmail.com> wrote:
> I've compared it and it is a lot different, i am starting fresh from the
> STM32CubeMX fdcan functions to create a new driver.
> Yes, it is FDCAN on the STM32H7 but the interrupt and the register have
> been modified (probably for speed or simplicity purposes i guess).
>
> And last question (i hope ^^) :
> - There is a lot of function in the stm32_can.c file, which ones are
> actually called during the process (for example from the can example) ?
>
> --
> You received this message because you are subscribed to the Google Groups
> "NuttX" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to nu...@googlegroups.com.