AnsweredAssumed Answered

Can't write UJA1169 rigesters on S32k144

Question asked by jinxing cui on Nov 4, 2018
Latest reply on Nov 5, 2018 by Razvan-nicolae Tilimpea

I've been using  UJA1169 chip on our PCB board(the CPU is S32k144) via SPI and been able to read  a few registers. But when I try to write to some control register ,the conent of the register don't change .For example,

 I try to write to Mode control register (address 01h) the value 0x03 or 0x07 (MC) to make UJA1169 work in Normal mode or standby mode,but the result return from the  Mode control register is 0.  When I  write my program ,i have refered to the SDK offical program sbc_uja1169_s32k144.  when the pcb board have finished initialization, the uja1169 is in the forced normal mode, in this mode how can I write to some some rigesters? Such as the Mode control register ,CAN control register  and so on?

 

"In Forced Normal mode, only the Main status register, the Watchdog status register, the Identification register and registers stored in non-volatile memory can be read. The non-volatile memory area is fully accessible for writing as long as the UJA1169 is in the factory preset state (for details see Section 7.11)."   In the jua1169 userbook, I  find  these words, and I can read the Main status register, the Watchdog status register, the Identification register and registers stored in non-volatile memory correctly,but as I have mentioned above ,I  can not write to the registers.

 

Please ,I need some answers.

 

Thanks

JinXing Cui.

Outcomes